https://github.com/akman/vscode-tasks
VSCode Tasks Gradle Plugin scans your gradle project and configures VS Code to be able to run all gradle tasks from within VS Code. It will create or update the tasks.json file in the .vscode folder for a workspace.
https://github.com/akman/vscode-tasks
gradle gradle-plugin tasks vscode
Last synced: 2 months ago
JSON representation
VSCode Tasks Gradle Plugin scans your gradle project and configures VS Code to be able to run all gradle tasks from within VS Code. It will create or update the tasks.json file in the .vscode folder for a workspace.
- Host: GitHub
- URL: https://github.com/akman/vscode-tasks
- Owner: Akman
- License: mit
- Created: 2020-02-20T18:19:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-24T18:45:35.000Z (over 6 years ago)
- Last Synced: 2025-02-08T15:32:22.637Z (over 1 year ago)
- Topics: gradle, gradle-plugin, tasks, vscode
- Language: Groovy
- Size: 90.8 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VSCode Tasks Gradle Plugin
[](https://travis-ci.org/akman/vscode-tasks)
[](https://codecov.io/gh/akman/vscode-tasks)
[](https://github.com/akman/vscode-tasks/blob/master/LICENSE)
This plugin scans your gradle project and configures VS Code to be able
to run all gradle tasks from within VS Code. It will create or update
the ***tasks.json*** file in the ***.vscode*** folder for a workspace.
## Applying the plugin
The plugin available through the Gradle plugin exchange and the configuration
for your project is done in the ***build.gradle*** file.
```groovy
plugins {
id "ru.akman.vscode-tasks" version "0.4.0"
}
```
## Tasks
There is one task available in your project:
- **vscodeTasks** - create or update VS Code configuration
```bash
./gradlew vscodeTasks
```
## Configuration
You can edit the almost all of the task's properties, but following properties
are not configurable and set by the plugin itself:
- group
- label
- detail
Below are shown all configurable task's properties with their default values.
They apply to each task added to the VS Code configuration.
[The VS Code customs tasks documentation is available here][see]
```groovy
vscodeTasks {
prefix = ''
type = 'shell'
command = './gradlew'
args = []
options = [
'cwd': '',
'env': [:],
'shell': [:]
]
problemMatcher = []
windows = [:]
linux = [:]
osx = [:]
runOptions = [
'reevaluateOnRerun': true,
'runOn': 'default'
]
promptOnClose = true
isBackground = true
presentation = [
'group': 'gradle',
'echo': true,
'reveal': 'always',
'revealProblems': 'never',
'focus': true,
'panel': 'shared',
'showReuseMessage': true,
'clear': false
]
dependsOn = []
dependsOrder = 'parallel'
}
```
Note that unlike ***json*** syntax, ***groovy*** syntax is used here. Therefore,
do not forget to replace the curly braces (from json) with square brackets in
the maps definitions.
- prefix - the prefix used for a task name,
if prefix is empty the group name will be used as prefix
[see]: https://code.visualstudio.com/docs/editor/tasks#_custom-tasks