gwt-gradle-plugin icon indicating copy to clipboard operation
gwt-gradle-plugin copied to clipboard

Include support for GWT Code Generators

Open dfreis opened this issue 11 years ago • 1 comments

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 }
         }
      )
``

dfreis avatar Feb 07 '14 08:02 dfreis

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
}

steffenschaefer avatar Feb 18 '14 20:02 steffenschaefer