2019-10-21 20:33:13 +03:00
# vscode-gradle
2019-10-20 12:42:47 +03:00
2019-10-31 22:35:30 +03:00
[![Marketplace Version ](https://vsmarketplacebadge.apphb.com/version-short/richardwillis.vscode-gradle.svg )](https://marketplace.visualstudio.com/items?itemName=richardwillis.vscode-gradle)
[![Installs ](https://vsmarketplacebadge.apphb.com/installs-short/richardwillis.vscode-gradle.svg )](https://marketplace.visualstudio.com/items?itemName=richardwillis.vscode-gradle)
2019-10-27 18:54:14 +03:00
2019-10-23 19:18:24 +03:00
Run gradle tasks in VS Code.
2019-10-20 18:53:00 +03:00
2019-10-27 19:02:01 +03:00
![Screencat ](images/screencast.gif )
2019-10-20 19:18:21 +03:00
2019-10-23 19:18:24 +03:00
## Features
2019-10-21 20:58:12 +03:00
2019-11-18 15:22:49 +03:00
- Run [Gradle tasks ](https://gradle.org/ ) as [VS Code tasks ](https://code.visualstudio.com/docs/editor/tasks )
2019-10-30 22:19:30 +03:00
- List & run gradle tasks in the Explorer
2019-11-11 21:51:40 +03:00
- Multi-root workspace folders supported
2019-11-25 23:01:54 +03:00
- Groovy/Kotlin build files supported
2019-11-11 21:51:40 +03:00
- Multi-project builds supported
2019-10-21 20:58:12 +03:00
2019-10-27 18:42:39 +03:00
> **Note:** Local gradle wrapper executables must exist at the root of the workspace folders (either `./gradlew` or `.\gradlew.bat`, depending on your environment).
2019-10-20 19:18:21 +03:00
2019-10-31 21:26:48 +03:00
## Extension Settings
2019-10-20 19:18:21 +03:00
2019-10-31 21:26:48 +03:00
This extension contributes the following settings:
- `gradle.autoDetect` : Automatically detect gradle tasks
- `gradle.enableTasksExplorer` : Enable an explorer view for gradle tasks
2019-10-21 20:33:13 +03:00
2019-11-18 15:22:49 +03:00
## Snippets
This extensions provides snippets for the groovy and kotlin build files:
- `cgt` : Create a new gradle task
2019-11-08 19:46:48 +03:00
## Slow Task Provider Warning
2019-11-27 01:42:12 +03:00
[Since vscode v1.40 ](https://code.visualstudio.com/updates/v1_40#_slow-task-provider-warning ) you will see warning notifications when the gradle task provider takes too long.
2019-11-08 19:46:48 +03:00
2019-11-08 19:48:04 +03:00
< img src = "./images/slow-task-provider-warning.png" width = "400" / >
2019-11-08 19:46:48 +03:00
It can take a while to refresh the gradle tasks, so you should permanently ignore this warning by clicking on "Don't warn again for gradle tasks", or add the following to your `settings.json` :
```json
"task.slowProviderWarning": [
"gradle"
]
```
2019-10-20 18:53:00 +03:00
## Credits
2019-10-31 21:26:48 +03:00
- Originally forked from [Cazzar/vscode-gradle ](https://github.com/Cazzar/vscode-gradle )
- Heavily inspired by the built-in [npm extension ](https://github.com/microsoft/vscode/tree/master/extensions/npm )
## Release Notes
See [CHANGELOG.md ](./CHANGELOG.md )
2019-10-20 18:53:00 +03:00
## License
2019-10-31 21:26:48 +03:00
See [LICENSE.md ](./LICENSE.md )