I am using grails 2.3.4
with the eclipse grails plugin(GGTS)
. However, after installation I created a project and got:
Description Resource Path Location Type
Groovy: compiler mismatch Project level is: 2.1 Workspace level is 1.8
Groovy compiler level expected by the project does not match workspace compiler level.
Go to Project properties -> Groovy compiler to set the Groovy compiler level for this project test test Groovy compiler mismatch problem
I tried to change the compiler preferences but nothing changes...
I really appreciate your answer!
You can also add an extension from the Spring Dashboard and keep using the "same" workspace.
On the sidebar of Dashboard click on "IDE EXTENSIONS".
Choose the groovy compiler that you need and click install.
After that you can customize each project to compile with a version of your choice.
Click on a project and then Project>Properties>Groovy Compiler and choose the version from the dropdown menu.
For example the latest version of Grails(2.4.0) is "buggy" under GGTS(3.5.1) until you install Groovy 2.3 Compiler extension and change your Projects properties accordingly.
UPDATE for Grails 3.0
For Grails 3.0.x you should install and use Groovy 2.4 Compiler