Instead of using some not clear tasks like compile or copy use straightforward way like antlk plugin custom task which create own folder for generated sources and add it to java compile source list!
Refactor build.groovy
Merge remote-tracking branch 'origin/master'
Enhance plugin to generate SQLJ -> java files within separated java process, this allows to have difference SQLJ classpath for different subprojects.