I am building a system using a multi-project build of Gradle. So far, we have worked with several projects using Java and Eclipse plugins. I am really impressed with how simple it was and the fact that Eclipse and Gradle play so well together.
We need to add the user interface to our system and decided to go with the GWT project, so I want to add this as another subproject of my Gradle assembly.
I played with GWT using its Eclipse plugin and building it from the command line using the Ant build scripts generated by GWT. All this works fine, but when I try to combine Eclipse, GWT and Gradle, I cannot figure out how to do this.
I want Gradle to manage my dependencies both from the command line and from the eclipse, because I will have dependencies on other subprojects. But when I find online solutions for creating Gradle GWT assemblies, they usually involve moving the src structure away from the GWT structure to match Gradle, this breaks the GWT plugin for eclipse.
Can someone tell me a way to create a new GWT project that can be created using Gradle and use its dependency management system and this will work in Eclipse so that the eclipse class path is updated to reflect the dependencies in Gradle and I still Can I use the GWT plugin to launch and debug the application?
source
share