...
If you would like to install the 1.8.x compiler (currently 1.8.RC2), then you must add one of the development update sites to your install manager:
...
Then click Next > and follow the instructions to complete the installation. A restart is necessary.
| Table of Contents |
|---|
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 Groovy 1.7 when running Eclipse:
| Code Block |
|---|
-groovy.compiler.level 17
|
Or to force Groovy 1.8:
| Code Block |
|---|
-groovy.compiler.level 17
|
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.
Alternatively, you can add the arguments to the eclipse.ini file (must be on separate lines and before the -vmargs entry.
Switching compiler levels in the preference page
You can switch between the 1.7 and 1.8 compilers for your Eclipse workspace in the Preferences -> Groovy -> Compiler page:
...