The Groovy-Eclipse team is proud to announce the release of Groovy-Eclipse 2.7.2. This is a service refresh of Groovy-Eclipse and it now contains support for the 2.0.6 Groovy compiler as well as Eclipse 4.2.1 and 3.8.1.  Our primary focus with this release has been to improve the @CompileStatic experience in the IDE.  

You can use the following update sites to install this release:

For Eclipse 3.8 and 4.2 (Juno):
http://dist.springsource.org/release/GRECLIPSE/e4.2/

For Eclipse 3.7 (Indigo):
http://dist.springsource.org/release/GRECLIPSE/e3.7/

 

The Groovy 2.0 compiler is not installed by default.  If you want to install it, you can do so from the Extra Compilers category in the update site.

And a zipped version of the update site is available at:

For Eclipse 3.8 and 4.2 (Juno):
http://dist.springsource.org/release/GRECLIPSE/e4.2/archive-2.7.2.xx-RELEASE-20121219-0800-e42.zip

For Eclipse 3.7 (Indigo):
http://dist.springsource.org/release/GRECLIPSE/e3.7/archive-2.7.2.xx-RELEASE-20121219-0800-e37.zip

You can install from the zip by pointing your Eclipse update manager to the downloaded zip file and following the installation instructions.  Do not unzip into your Eclipse dropins folder.

Upgrade to Groovy 2.0.6

Groovy-Eclipse now contains Groovy 2.0.6 as an optional add-on from the update site.  See Compiler Switching within Groovy-Eclipse for more information on how to do this.

Compile static fixes

Groovy-Eclipse's internal representation of generics has been completely overhauled to be more aligned with that of the groovy compiler's representation.  This has fixed many small problems with using the @CompileStatic annotation.  Your experience using this annotation in the IDE will be greatly improved.

Memory Footprint

We have put in some initial work on reducing the memory footprint of your Groovy projects.  Now, full and incremental builds will consume less memory than before.

Better handling of built-in AST transforms

Groovy-Eclipse now has editing support for the following built-in AST transforms: @Bindable, @Vetoable, @ListenerList, @Log, and @AutoExternalize.

Formatter improvements

Now you have more explicit control over how lists are formatted. Long lists are wrapped so that each element is on a single line and short lists are all on one line. From the Groovy -> Formatter preferences page, you can define the number of characters a long list.

Below, you can see the preferences page where you can set this option:

And by setting the long list length to be 30 characters, the following is formatted, with the upper list being wrapped, with the lower list staying on the same line:

Additionally, we have fixed other bugs in this area and your formatting experiences should be greatly improved.

Building Eclipse plugins written in Groovy using Maven Tycho

It is now possible to build Eclipse plugins written in Groovy using Tycho and the groovy-eclipse-compiler.  For more information on how to do this and an archetype project. see the groovy-eclipse-plugin-archetype github project.

Compatibility

Groovy-Eclipse 2.7.2 uses Groovy 1.8.6. Groovy 1.7.10 can be enabled optionally, and Groovy 2.0.6 can be installed through the extra compilers section on the update site.

This version of Groovy-Eclipse is recommended to be installed on STS versions 3.0.0 - 3.2.0.M1, Eclipse 3.7.2, 3.8.1, and 4.2.1.

Shout outs

And thank you to the following contributors for help with this release:

Bug fixes

See the details on our issue tracker.