Tuesday, February 15, 2022

Re: Building a GWT project in Eclipse 2019-03+ with Java 11.

Hi ,

You mention that you are migrating from jdk 1.8 to jdk 17.
We are in the same process, any tips you have?

regards,

Jasper

Op dinsdag 15 februari 2022 om 22:30:30 UTC+1 schreef tequil...@gmail.com:
Hi, 

> You're all set; the plugin will use the GWT dependencies from the Maven project.

The question - can I configure it with gradle?

I'm porting a GWT gradle-based Eclipse project from JDK 1.8 to JDK 17 (and from 2.8.2 to 2.9.0)
In Eclipse, there's typical JDK11+ error "The package org.xml.sax.helpers is accessible from more than one module" and it looks like the org.xml.sax classes shipped in gwt-dev.jar clash with jdk. Eclipse compiler somehow refers gwt-dev.jar. 
Command line gradle build succeeds OK.
If maven-central version of gwt-dev doesn't contain duplicating classes it would save the day. 

Is there a way to configure gradle project to force Eclipse plugin to use GWT version from gradle dependencies?

I have GWT 2.9.0 installed and added in Eclipse. To avoid referring this all-inclusive gwt-dev I removed GWT-2.9.0 from list of GWT SDKs in Eclipse settings, and now after importing/refreshing my gradle project the GWT plugin SDK selection doesn't contain 2.9.0 anymore even if I specify gradle dependency.

thank you

среда, 24 июля 2019 г. в 17:40:21 UTC+2, t.br...@gmail.com:


On Wednesday, July 24, 2019 at 5:14:42 PM UTC+2, Jim Douglas wrote:
> Sure. Use a build tool of your choice and use the maven dependencies. 

I don't know what that means. As far as I've ever known, developing a GWT application in Eclipse implies installing the GWT Plugin for Eclipse and picking a GWT SDK.


Nope.
Install the GWT Eclipse Plugin (https://gwt-plugins.github.io/documentation/gwt-eclipse-plugin/Download.html; note that the SDKs are optional).
You're all set; the plugin will use the GWT dependencies from the Maven project.

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/5093fb0f-be01-4172-b11f-f9612ebb0896n%40googlegroups.com.

No comments:

Post a Comment