Hilfe für GWT-Setup in libGDX?

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:

<module rename-to="html">
    <inherits name='com.badlogic.gdx.backends.gdx_backends_gwt'/>
    <inherits name='org.yeb.YebGame' />
    <entry-point class='org.yeb.client.HtmlLauncher'/>
    <set-configuration-property name='xsiframe.failIfScriptTag' value='FALSE'/>
    <set-configuration-property name="gdx.assetpath" value="../core/assets"/>
</module>

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:

project(":html") {
    apply plugin: "gwt"
    apply plugin: "war"

    dependencies {
        compile project(":core")
        ... 
     }
}

Darüber hinaus wird das core-Source-Verzeichnis in der build.gradle des html-Moduls dem Klassenpfad hinzugefügt:

task addSource {
    doLast {
        sourceSets.main.compileClasspath += files(project(':core').sourceSets.main.allJava.srcDirs)
    }
}

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.

Hat jemand eine Idee?

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.

Und wenn du das mal explizit versuchst als Source im modul anzugeben?

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)