Ich habe jetzt schon eine Weile hin- und herprobiert, habe aber das Gefühl, dass ich im Nebel herumstochere. Also, die Projektstruktur ist so, dass das html-Modul auf das core-Modul verweist
Im html-Modul gibt es in org.yeb die Datei GdxDefinition.gwt.xml als Einstiegspunkt:
org.yeb.Yebgame verweist auf core, wo es (ebenfalls unter org.yeb) eine Datei YebGame.gwt.xml gibt. Ich glaube, deren Inhalt ist unwichtig, denn sie wird gar nicht erst gefunden:
[ERROR] Unable to find 'YebGame.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
In der build.gradle des gesamten Projekts ist core als Abhängigkeit für html definiert:
Meine IDE scheint diese Variante nicht zu mögen, ich habe auch “direktere” Versionen probiert, also files("../core/src") u.s.w., aber ohne Erfolg, core bleibt für GWT unauffindbar.
Ich bin einen Schritt weiter, er findet das Modul für core. Jetzt hat er ein Problem mit Vavr (was ja schon ein GWT Modul anbietet):
:html:compileGwt
Compiling module org.yeb.GdxDefinition
Tracing compile failure path for type 'io.vavr.match.model.ParameterModel'
[ERROR] Errors in 'jar:file:/C:/Users/Daniel/.gradle/caches/modules-2/files-2.1/io.vavr/vavr-match/0.9.0/ca1419f1605b58015bc4dc09c0a353928256816d/vavr-match-0.9.0-sources.jar!/io/vavr/match/model/ParameterModel.java'
[ERROR] Line 21: No source code is available for type javax.lang.model.element.VariableElement; did you forget to inherit a required module?
[ERROR] Line 29: No source code is available for type javax.lang.model.type.DeclaredType; did you forget to inherit a required module?
[ERROR] Line 20: No source code is available for type javax.lang.model.util.Elements; did you forget to inherit a required module?
[ERROR] Errors in 'jar:file:/C:/Users/Daniel/.gradle/caches/modules-2/files-2.1/io.vavr/vavr-match/0.9.0/ca1419f1605b58015bc4dc09c0a353928256816d/vavr-match-0.9.0-sources.jar!/io/vavr/match/model/ClassModel.java'
[ERROR] Line 24: No source code is available for type javax.lang.model.util.Elements; did you forget to inherit a required module?
[ERROR] Line 54: No source code is available for type javax.lang.model.element.ExecutableElement; did you forget to inherit a required module?
[ERROR] Line 25: No source code is available for type javax.lang.model.type.DeclaredType; did you forget to inherit a required module?
[ERROR] Line 27: No source code is available for type javax.lang.model.element.TypeElement; did you forget to inherit a required module?
u.s.w.
Kann das ein Konflikt mit der Java-Version sein? Ich habe überall Java 1.8 eingestellt, wo ich es finden konnte.
Ich habe erst mal vavr rausgeschmissen. Und den Eintrag src = files(file("src/")) in gradle hart um file("../core/src/") erweitert, das scheint zu funktionieren (keine Ahnung, ob das so gedacht ist)