Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 969
Himanshu Yadav Avatar asked Jul 27 '26 03:07

Himanshu Yadav


1 Answers

Have you converted your project into a groovy project? In order for groovy files to be compiled, they must be in a groovy project. Select Project, right-click -> Configure -> Convert to Groovy Project...

This will set up the groovy dependencies correctly. You can remove the groovy-all jar from your lib folder.

like image 190
Andrew Eisenberg Avatar answered Jul 30 '26 02:07

Andrew Eisenberg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!