Any suggestions for editing Gradle Scripts? It would be nice to have some sort of IDE support with autocompletion (at-least at the Groovy level).
Currently the best thing that I can think of is just using Groovy Syntax Hightlighing with any standard editor such as TextPad, etc.
In the end, our developers decided that Gradle performed the strongest out of the three tested build tools, with Maven in a close second.
If the task you want to pass parameters to is of type JavaExec and you are using Gradle 5, for example the application plugin's run task, then you can pass your parameters through the --args=... command line option. For example gradle run --args="foo --bar=true" .
It is popular for its ability to build automation in languages like Java, Scala, Android, C/C++, and Groovy. The tool supports groovy based Domain Specific Language over XML. Gradle provides building, testing, and deploying software on several platforms.
If your build script needs to use external libraries, you can add them to the script's classpath in the build script itself. You do this using the buildscript() method, passing in a block which declares the build script classpath. The block passed to the buildscript() method configures a ScriptHandler instance.
I think the only IDE that actually has rudimentary DSL autocomplete support for Gradle is SpringSource STS. You will need to install the Gradle plugin.
Intellij 11 supports gradle, see their webhelp for details.
An enhanced plugin appears to be scheduled for 11.1 in Q2 2012, their wiki has a page that acts as a worklog for the developer who is implementing it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With