Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Groovy-Eclipse supports both the 2.0, 1.8 compiler , and the 1.7 compiler for Groovy. However, due to Groovy-Eclipse's tight integration with the compiler, only one version of the compiler can be used in the workspace at one time. Switching compiler levels requires a restart.

By default, Groovy-Eclipse comes installed with a 1.7 and 1.8 compiler. This is the compiler that is   These are the compilers that are installed when you select the Groovy-Eclipse feature from the Groovy update site:

Image RemovedImage Added

If you would like to install the 12.80.x compiler, then you must add one of the development update sites to your install manager:For Eclipse 3.6: go to the Eclipse install manager and select the Groovy 2.0 compiler from the extra compilers section of the update site:

Image Added

Then click Next and follow the instructions to complete the installation. A restart is necessary.

Here are the release update sites for Groovy-Eclipse:

Eclipse levelRelease update site
4.2 (Juno)http://dist.

...

...

...

...

(Indigo)http://dist.

...

...

...

...

To perform the installation, you must install the latest dev snapshot of

Table of Contents

Compiler levels

After installing Groovy-Eclipse as well as the Groovy Compiler without the extra compilers, the Groovy 1.8 feature (the SDK and m2eclipse integration are optional):

Image Removed

Then click Next > and follow the instructions to complete the installation. A restart is necessary.

Table of Contents

compiler is active by default.  And the Groovy 2.0 compiler becomes active after installing the extra compiler.

Specifying compiler level on the command line

As of Groovy-Eclipse 2.5.2, it is possible to specify the compiler level when starting Eclipse from the command line. Just add the following arguments to the command line to start a particular Groovy 1.7 version when running Eclipse:

...

Groovy 1.7
-groovy.compiler.level 17

...

...

Groovy 1.8

...

...

-groovy.compiler.level 18
Groovy 2.0
-groovy.compiler.level 20

It is possible to run multiple instances of Eclipse at the same time targeting different compiler levels as long as they point to different workspaces.

...

Simply click the button and Eclipse will restart automatically. The hyperlink shown on the preference page will navigate you to this wiki page.

Uninstalling the

...

2.

...

0 compiler

You can uninstall the 12.8 0 compiler through the update manager. In the lower right corner of the update manager, there is a link that says What is already installed?:

...

Click the link, select the Groovy 12.8 0 compiler, and then click Uninstall...:

Image RemovedImage Added

Then follow the instructions and restart to complete the uninstallation process. Once the 12.8 0 compiler is uninstalled, you can follow the steps above to reinstall it.

...

There are several possibilities for getting support on your Groovy-Eclipse installation. See here for your support options.