Groovy version 2.4.2 for Eclipse

Cosa Ya picture Cosa Ya · Mar 21, 2015 · Viewed 9.2k times · Source

How can I make a groovy project in eclipse use a custom Groovy Library?

I'm new to Groovy and I'm confused as to how to use it in Eclipse.

I installed the Groovy Plugin to Eclipse, every time I make a project, the Groovy library used is version 2.3.7.

I downloaded the Groovy SDK version 2.4.2 and want to use it with my eclipse, however I can't seem to do it as when I try to add a new Groovy library, nothing happens.

Answer

Edward picture Edward · Mar 23, 2015

The Groovy-plugin for Eclipse comes with it's own Groovy-compilers. It is not possible to add your own groovy compilers.

Version 2.9.1 of the groovy-eclipse plugin does not have the 2.4.x compiler included. In Version 2.9.2 the compiler 2.4.x is included. In Order to install it, use the update-site http://dist.springsource.org/snapshot/GRECLIPSE/e4.4/ . I tried it, and in it works (there has been a bugfix: https://github.com/groovy/groovy-eclipse/issues/112)