Closed cdietrich closed 3 years ago
At the moment, we have tried with Gradle 7.0 which seems working well. Not sure if there are any difference in Gradle 7.1.
i see the problem also with 7.0
> Task :org.eclipse.xtend.lib.gwt.test:compileGwt FAILED
Loading inherited module 'org.eclipse.xtend.lib.test.Test'
Loading inherited module 'org.eclipse.xtend.lib.Lib'
[ERROR] Unable to find 'org/eclipse/xtend/lib/Lib.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?
somehow it does not find the gtw xml in another jar on the projects classpath
api project(':org.eclipse.xtend.lib.gwt')
but if i add additionally the gwt config
gwt project(':org.eclipse.xtend.lib.gwt')
to the dependencies, then it works.
so it looks like the api is not looked at for gwt compilation
it might also be related to the project doing some custom crap to package the xml into the jar, but it was working with older gradle versions
Looks like related to the Gradle dependency configuration. Not sure if it's something to do with this plugin?
yes i have no idea how the plugin searches the xml
That's managed by the GWT compiler, this plugin is just a wrapper around the GWT SDK so that it works with Gradle. The underlying GWT compiler will do the job.
i see. but it does not seem to use the jar but just output folders
/Users/cdietrich/xtext-master/git/xtext-lib/org.eclipse.xtend.lib.gwt.test/build/resources/main:/Users/cdietrich/xtext-master/git/xtext-lib/org.eclipse.xtend.lib.gwt/build/classes/java/main:/Users/cdietrich/xtext-master/git/xtext-lib/org.eclipse.xtend.lib/build/classes/java/main:/Users/cdietrich/xtext-master/git/xtext-lib/org.eclipse.xtext.xbase.lib.gwt/build/classes/java/main:/Users/cdietrich/xtext-master/git/xtext-lib/org.eclipse.xtend.lib.macro/build/classes/java/main:/Users/cdietrich/xtext-master/git/xtext-lib/org.eclipse.xtext.xbase.lib/build/classes/java/
so i need to do into the project custom stuff to produce the xml ...
somehow the build/resources/main fopr the depending projects it does not look at
where can i find the place in the plugin that populates the classpath?
reconfiguring java sourceset to include the xml seems to work
java {
srcDirs = sourceDirs
include '**/*.java', '**/*.xtend', '*.gwt.xml'
}
need to double check.
nope does not help. maybe its time for us to stop gwt support.
Although it's not documented yet, you can also configure classpath
in gwt { }
. Please see the source code here:
Close for now
Hi, i am not really experienced with Gradle. the following code is working fine with older gradle versions https://github.com/eclipse/xtext-lib/compare/cd_issue387 but not with gradle 7 but it seems to work if i duplicate the dependency like here https://github.com/eclipse/xtext-lib/compare/cd_gradle6CrapExperiments