Wednesday, July 24, 2019

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

not Jenkins, Jetty webapp I mean.

On Wed, 24 Jul 2019 at 12:45, Juan Pablo Gardella <gardellajuanpablo@gmail.com> wrote:
Hi Jim,

I am working with GWT 2.8.2 + Java11 in a multi module maven project. You can use https://tbroyer.github.io/gwt-maven-plugin/ to create a simple archetype from it and start putting your classes according it usage (that information is described in the links shared by Thomas).  To run/debug the project, I execte mvn gwt:codeserver from parent project (pom artifact) and I created a Eclipse launcher at server artifact (it starts a Jenkins webapp). Let me know if it is clear. 

In my case, the server is a spring boot application. There are some tricks to handle the static content, but you workaround them by adding some properties. I could provide a simple sample if you want.

Juan


On Wed, 24 Jul 2019 at 12:40, Thomas Broyer <t.broyer@gmail.com> wrote:


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/1659e95f-d41b-4dc4-9787-95d50bc5a120%40googlegroups.com.

--
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/CA%2BkiFsfjGPz9m0yN-6ywt6OMLXijwCr8HkjCVU4mnvhzdFJ2BQ%40mail.gmail.com.

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

Hi Jim,

I am working with GWT 2.8.2 + Java11 in a multi module maven project. You can use https://tbroyer.github.io/gwt-maven-plugin/ to create a simple archetype from it and start putting your classes according it usage (that information is described in the links shared by Thomas).  To run/debug the project, I execte mvn gwt:codeserver from parent project (pom artifact) and I created a Eclipse launcher at server artifact (it starts a Jenkins webapp). Let me know if it is clear. 

In my case, the server is a spring boot application. There are some tricks to handle the static content, but you workaround them by adding some properties. I could provide a simple sample if you want.

Juan


On Wed, 24 Jul 2019 at 12:40, Thomas Broyer <t.broyer@gmail.com> wrote:


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/1659e95f-d41b-4dc4-9787-95d50bc5a120%40googlegroups.com.

--
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/CA%2BkiFsdDxNkOBiBLoRX78w8g2QKKAvqb_QQ3rCwea-zgK5M4Vw%40mail.gmail.com.

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



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/1659e95f-d41b-4dc4-9787-95d50bc5a120%40googlegroups.com.

Re: GWT code splitting and generics

GIN has a AsyncProvider<T> class which calls GWT.runAsync(...) internally to code split T with T being something concrete that GIN can inject.

Have you tried that AsyncProvider instead? 

-- J.

--
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/08939072-4862-46f8-b46d-9da4d772d877%40googlegroups.com.

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

> 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.

http://www.gwtproject.org/usingeclipse.html

On Wednesday, July 24, 2019 at 8:05:16 AM UTC-7, Jens wrote:

Is there currently any way to develop a GWT application in Eclipse without using the GWT SDK?

Sure. Use a build tool of your choice and use the maven dependencies. 

If I remember correctly the GWT plugin for eclipse will pick up the gwt-user/gwt-dev jar from the class path if you have a maven/gradle project in eclipse. Alternatively you can launch GWT SDM / Compiler using Maven/Gradle plugins. Or you use your build tool to download all dependencies and then launch GWT SDM / Compiler using a shell script.

-- J.

--
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/d006b922-927b-49f2-94cf-432c0cc537de%40googlegroups.com.

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


Is there currently any way to develop a GWT application in Eclipse without using the GWT SDK?

Sure. Use a build tool of your choice and use the maven dependencies. 

If I remember correctly the GWT plugin for eclipse will pick up the gwt-user/gwt-dev jar from the class path if you have a maven/gradle project in eclipse. Alternatively you can launch GWT SDM / Compiler using Maven/Gradle plugins. Or you use your build tool to download all dependencies and then launch GWT SDM / Compiler using a shell script.

-- J.

--
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/6b48f65c-32e0-47b1-956b-fc06f725ac01%40googlegroups.com.

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

> Ideally, people should stop using the "GWT SDK" uberjars to begin with

Is there currently any way to develop a GWT application in Eclipse without using the GWT SDK?

On Wednesday, July 24, 2019 at 7:03:08 AM UTC-7, Thomas Broyer wrote:
Ideally, people should stop using the "GWT SDK" uberjars to begin with; because the JAR that's deployed to the Central Repository does not have these packages: https://github.com/gwtproject/gwt/blob/4d36d55d26aabc12e4429faf0603c539a54a13cd/maven/lib-gwt.sh#L109

On Wednesday, July 24, 2019 at 9:10:46 AM UTC+2, Jens wrote:

When I configure Eclipse 2019-06 to use this modified GWT 2.8.2 SDK, i am able to more or less get it to build, eventually, but with a flood of obscure "Validating GWT Components" errors that have to be tediously clicked through:

An internal error occurred during: "Validating GWT components".

class org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding cannot be cast to class org.eclipse.jdt.internal.compiler.lookup.PackageBinding (org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding and org.eclipse.jdt.internal.compiler.lookup.PackageBinding are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @57cd77e1)


So...first question: Did I miss an important step when I stripped those classes out of gwt-dev.jar? Or is there a way to make "Validating GWT components" stop complaining?


I don't think so. IMHO it looks like an Eclipse bug or the GWT plugin needs to be updated.


If we plan to announce that GWT 2.9 will be Java 11 compatible (syntax) then contributors will probably also sit down and make sure it works in IDEs either out of the box or by providing instructions how to configure Eclipse to make it work. In general all those 3rd party classes are included in gwt-dev.jar to just have a single dependency that needs to be added by the GWT plugin. The Maven release of GWT pulls those in as transitive dependencies. 

I think going forward GWT SDK release (non Maven release) should repackage all those dependencies into com.google.gwt.thirdparty as it already does for some dependencies. That way we can also make sure that no dependency version conflicts exist on class path.


-- J.

--
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/f3bd66e2-2e80-4605-9306-78544afd8f6f%40googlegroups.com.