Groovy-related Configuration Changes

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.

Comments below can no longer be edited.

7 Responses to Groovy-related Configuration Changes

  1. Avatar

    Steve Appling says:

    September 9, 2009

    The proposed changes to the gradle configuration look great! That is much better than requiring the gradle jar in the classpath. The screen shot didn’t show the gradle configuration screen, but it probably needs more than just an installation directory. It should also support a gradlew script. Many projects will just check in a gradlew into VCS to bootstrap their build process. It would be nice to allow selection of either a full gradle installation directory or a gradlew script.

  2. Avatar

    Peter Gromov says:

    September 9, 2009


    Probably there should be a possibility to run Gradle scripts via gradle-wrapper.jar. But in this case IDEA won’t resolve any Gradle’s classes except for those found in that jar. They’ll be red or even wrongly auto-imported (http://www.jetbrains.net/jira/browse/IDEADEV-40264). So IDEA will anyway need to undertstand where the full Gradle distribution is located.

  3. Avatar

    Hans says:

    September 21, 2009

    What if I don’t want the groovy class/script to be compiled? currently I’m having issues with this and Maia.

  4. Avatar

    Peter Gromov says:

    September 22, 2009


    Go to Compiler | Resource patterns settings and add a pattern there that covers your class/script path.

  5. Avatar

    Hans says:

    September 24, 2009

    Thanks, it worked.

  6. Avatar

    marquex says:

    February 21, 2010

    When i create a new application module the option to create a Grails application in not displayed. I’m using the home edition of idea IDE, does it matter?

  7. Avatar

    Peter Gromov says:

    February 25, 2010

    Community Edition doesn’t include Grails support

Discover more