gwt-gradle-plugin
gwt-gradle-plugin copied to clipboard
Include support for GWT Code Generators
We use a lot of GWT Code Generators here that need to be compiled prior to the compileGwt task. This classes have to be included into gwt tasks classpath. Is there any common way to do this?
I did the following (but I am still a gradle newbe):
compileGwt.dependsOn { gwtCodeGeneratorsClasses }
and
gwt (
files("$buildDir/classes/gwtCodeGenerators") {
builtBy { gwtCodeGeneratorsClasses }
}
)
``
The dependsOn looks good ... Supposed you defined a source set named "gwtCodeGenerators" you need the following to extend the classpath of compileGwt task:
compileGwt {
classpath += sourceSets.gwtCodeGenerators.output.classesDir
}