Setting the Groovy compiler to compile Groovy AND Java

Is there a way to do that?

When I go to Compiler -> Java Compiler, the drop down for "Use compiler:" shows Javac, Eclipse & Ajc.
BTW, the Groovy and Cucumber for Groovy plugins are enabled.

Thanks!
--
Gerardo Blanco

2 comments
Comment actions Permalink

I have groovy and java in the same project and I have never had to mess with compiler settings.

Are you having a problme of some kind?

0
Comment actions Permalink

No specific problems. I read advice to compile both java and groovy code with the groovy compiler just because that way you don't care about compilation order, and avoid some other problems.
Now, after posting, I found this page:

http://www.jetbrains.com/idea/features/groovy_grails.html

Notice the following section:

Advanced Mixed-Language compiler

IntelliJ IDEA supports the smart Groovy compiler, which understands both Groovy and Java code and lets you         seamlessly compile mixed-language projects.




Do I assume this is the "out of the box" behavior?


Thanks for your help,
--
llappall
0

Please sign in to leave a comment.