We are trying to convert to using Buildship. After some troubles with v1.x and an early success with v2.0.0.v20160714-1015-s (inside Eclipse Neon) and Gradle 2.14 we are facing a problem launching a GWT Super Dev Mode code server - the runtime classpath is not complete. It starts but fails to load various *.gwt.xml files that are inside the jars that are transitive dependencies of our projects. These jars are downloaded from a Maven repository and contain both *.class and *.java (source) files in them - there is no separate resources/sources jar. For example:
Turning off precompile in incremental mode. Super Dev Mode starting up workDir: C:\Users\...AppData\Local\Temp\gwt-codeserver-541360710207059603.tmp Loading inherited module '... our project 1 ...' Loading inherited module '... our project #2 ...' Loading inherited module '... our project #3 ...' Loading inherited module 'com.googlecode.gwt.crypto.Crypto' [ERROR] Unable to find 'com/googlecode/gwt/crypto/Crypto.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
GWT code server expects the source code to be available on the classpath, same as the compiled version (bytecode). This is how we have been using it so far. The problem is now that, even though the jar is listed in classpath of one of the projects that is itself listed in the launch/runtime classpath, it is not visible. When I explicitly (manually) add it, I move on to the next problem of the same kind. Problem is that I cannot manually add these dependencies as they come from the Gradle cache and change all the time.
I tried checking the checkbox of “Project and external dependencies” in the “Order and Export” tab in Eclipse Java build path properties (for all projects) but that didn’t help either. I did not restart Eclipse but I do not expect that I have to. I also have not found the way to automatically mark these dependencies as exported - and I am not sure that I should do this either. I also tried removing all classpath entries and adding them again, assuming that something different may be done with Buildship, but that did not help.
Any recommendations as to what I should do?