On 11/21/2011 10:34 PM, Peter Niederwieser wrote:
> The simplest solution is to use joint compilation. Either put both Java and
> Groovy code into src/main/groovy, or add the following configuration:
> 
> sourceSets.main.java.srcDirs = []
> sourceSets.main.groovy.srcDir 'src/main/java'
> 
> In both cases, groovyc will now be in charge of compiling both Java and
> Groovy code.

Yeah, I ended up setting the CompileJava task to skip, and added the
src/main/java to the groovy srcDir.

Is this the ideal convention?

Why not have the groovy plug in do this by default?

Thanks,
David

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to