It appears the groovy plugin delegates any *.java files to the java compiler even though I explicitly do
sourceSets {
main{
java {
srcDirs = []
}
groovy {
srcDirs += ['src/main/java']
}
}
I want to use groovyc so that the metaclass is added for later testing reasons.
Is there anyway to get the groovy plugin to treat all java classes as groovy classes when compiling?