Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle Code Editor Suggestions

Tags:

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.

like image 838
vicsz Avatar asked Mar 16 '12 18:03

vicsz


People also ask

Is gradle the best build tool?

In the end, our developers decided that Gradle performed the strongest out of the three tested build tools, with Maven in a close second.

How do you pass arguments in gradle?

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" .

Which programming language can use gradle?

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.

How do I add Buildscript in build gradle?

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.


2 Answers

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.

like image 180
Benjamin Muschko Avatar answered Sep 28 '22 07:09

Benjamin Muschko


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.

like image 32
Matt Avatar answered Sep 28 '22 09:09

Matt