Posts Tagged ‘gradle’

Keen to try Gradle integration in IntelliJ IDEA?

Thursday, September 8th, 2011

You asked us to add Gradle support to IntelliJ IDEA. And when you ask hard we usually respond. So, we’ve been working hard on that lately. The job is still in progress but the most impatient ones can already try what is done.

The most valuable thing IntelliJ IDEA does now is setting up the project (modules, libraries, etc.) on the basis of a Gradle project file. The process is rather simple:

1. Choose the target Gradle project:

2. Check and, if necessary, adjust its settings prior to import:

3. Voila, the project is ready to use:

The plugin will be available when IntelliJ IDEA 11 EAP opens but if you really can’t wait, check this wiki page for instructions on how to build IntelliJ IDEA and Gradle plugin from the sources. It also shows current development status.

Your feedback is much appreciated on the discussion forum or in IntelliJ IDEA issue tracker.

I'm off to a vacation for 2 weeks and hope to get your feedback when I return refreshed to take care about it :) 

Groovy-related Configuration Changes

Tuesday, September 8th, 2009

The next Maia EAP brings you massive changes in Groovy, Grails, Griffon, Gant & Gradle support, mostly affecting framework configuration.

First, Grails/Griffon application options are available when you create a project or a module:

You may also choose to import an application from existing sources:

Earlier, you needed Gant & Gradle in module dependencies to run build scripts — quite awkward, because the way you are building your project should not affect its classpath. Now, we have per-project settings for Gant & Gradle:

Also, you can now write Groovy code and get full coding assistance with compilation as long as you have Groovy jars anywhere in a module classpath. Together with the new compiler Resource patterns path constraints feature (/ - path separator; /**/ - any number of directories) this made Groovy facet obsolete. So, there is no Groovy facet anymore.

You can still add any Gr8 libraries to a module via Add Framework Support context action:

Everything you’ve just read about will be available in the next EAP.

Gradle Support

Friday, August 21st, 2009

The latest Maia EAP features lightweight support for Gradle build framework. You can add Gradle library to a Groovy facet:

You can also run Gradle scripts via Ctrl+Shift+F10 in a script file: