Friday, December 9, 2016

Re: GWT 2.8.0 compile warnings

Perfect, thankyou very much

On Thursday, December 8, 2016 at 6:09:00 PM UTC, Dave Kichler wrote:
The GWT 8 gwt-user jar (com.google.gwt:gwt-user:2.8.0) has a dependency on jsinterop 1.0.1.  The problem is Ivy fails to properly download that transitive dependency (grabs only the sources).  By adding an explicit dependency on jsinterop, and telling Ivy explicitly to download both binaries and sources and everything is good to go.  The explicit dependency looks like this:

<dependency org="com.google.jsinterop" name="jsinterop-annotations" rev="1.0.1" >
  <artifact name="jsinterop-annotations"/>
  <artifact name="jsinterop-annotations" m:classifier="sources"/>
</dependency>

Hope that helps sort you out.

On Thursday, 8 December 2016 09:18:44 UTC-8, Stik wrote:
Hi Dave, how did you resolve this?  I'm not deeply familiar with Ivy, so feeling a bit out of my depth.  Adding an explicit dependency on jsinterop to my ivy.xml file seems to have no effect at my end, so long as gwt-user is in there too it overrides my classifier :\  If i take gwt-user out then it starts downloading the non-source jar too. 

On Monday, November 28, 2016 at 1:23:23 AM UTC, Dave Kichler wrote:
Eventually figured out that the GWT jars downloaded from Google have the jsinterop annotations bundled within the gwt-user.jar, which are the ones referenced by Eclipse and the ones I checked for them.  The GWT jars provided by Maven central, and which my Ant/Ivy build were referencing, do not have the jsinterop package bundled in, and instead reference it as a transitive dependency that Ivy was failing to resolve properly (resolving only sources rather than compiled jar).  An explicit dependency giving Ivy the proper classifiers on jsinterop sorted things out.  Trying the same with Maven or Gradle resolves everything just fine without the explicit reference.

--
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 post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment