eclipsegroovyeclipse-plugin

Compile Groovy files in Eclipse


My java web project includes some Groovy code. But eclipse is not recognizing Groovy files and not generating any classes out of it.

I have installed Groovy plugin in Eclipse. Installed Groovy in my windows machine and setup GROOVY_HOME and include groovyall jar file in my lib folder. But no luck.


Solution

  • You could also use STS, when the dashboard opens up click on the "extensions" tab and click on the Groovy language feature and install it. Then right click on project, -> Spring -> configure groovy nature to use groovy also.

    Another option is create a new Groovy project, the upshot is that you can use any java file within a groovy project since they are so well coupled.