Include additional Sources for recompile in gwtSuperDev Task
I have a second project which I included in my main project with:
dependencies {
compile(project(':core-project')) {
transitive = false
}
}
The core-project is a library project. When I run gradle gwtSuperDev and change files in my main project recompile takes place but not if I change files in my core-project.
How can I make that the core-project sources are also recompiled in SuperDevMode when they have changed?
I think, the following should work:
dependencies {
compile project(':core-project')
}
gwt {
src += files(project(':core-project').sourceSets.main.allJava.srcDirs) + files(project(':core-project').sourceSets.main.output.resourcesDir)
}
Thanks - that solution works for me, but it's a bit clunky. Not only do I have to list all of my dependencies twice, but I also have to list any transitive dependencies that my project wouldn't otherwise know about in order to see changes to them.
It would be great if the plugin could somehow automatically figure out all of the sources that might affect the current project.