You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible for groovy-eclipse-compiler to compile just groovy code rather than both java and groovy?
I want the regular java compiler to be invoked for java (src/main/java, src/test/java), and the groovy-eclipse-compiler used exclusively for anything in src/main/groovy or src/test/groovy. I can't find an example of this on the wiki. <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId> </configuration> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId> <version>2.9.1-01</version> </dependency> <!-- for 2.8.0-01 and later you must have an explicit dependency on groovy-eclipse-batch --> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-batch</artifactId> <version>2.3.7-01</version> </dependency> </dependencies> </plugin>
The text was updated successfully, but these errors were encountered:
Groovy does not compile Java. It delegates this task to javac in a typical command-line or Ant setting and to ecj in an Eclipse or maven setting. If you want total isolation in a maven setting, you should put Java sources in src/main/java and Groovy/Java interdependent sources in src/main/groovy.
Is it possible for groovy-eclipse-compiler to compile just groovy code rather than both java and groovy?
I want the regular java compiler to be invoked for java (src/main/java, src/test/java), and the groovy-eclipse-compiler used exclusively for anything in src/main/groovy or src/test/groovy. I can't find an example of this on the wiki.
<plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <compilerId>groovy-eclipse-compiler</compilerId> </configuration> <dependencies> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-compiler</artifactId> <version>2.9.1-01</version> </dependency> <!-- for 2.8.0-01 and later you must have an explicit dependency on groovy-eclipse-batch --> <dependency> <groupId>org.codehaus.groovy</groupId> <artifactId>groovy-eclipse-batch</artifactId> <version>2.3.7-01</version> </dependency> </dependencies> </plugin>
The text was updated successfully, but these errors were encountered: