Thanks for this feedback Colin. I'll update the pom accordingly and do a beta-3 release on Tuesday.
Julien On Wed, Nov 22, 2017 at 5:59 PM Colin Alworth <[email protected]> wrote: > It looks like the poms weren't correctly updated - they still depend on > jsinterop-base 1.0.0-beta-1, tickling > https://github.com/google/elemental2/issues/20 again. The gwt2 compiler > fails on this with this sort of error: > [INFO] [ERROR] Errors in > 'jar:file:/Users/colin/.m2/repository/com/google/elemental2/elemental2-dom/1.0.0-beta-2/elemental2-dom-1.0.0-beta-2.jar!/elemental2/dom/Element.java' > [INFO] [ERROR] Line 260: The method asString(Element. > ReplaceWithNodesUnionType) is undefined for the type Js > [INFO] [ERROR] Line 303: The method asBoolean(Element. > ScrollIntoViewTopUnionType) is undefined for the type Js > [INFO] [ERROR] Line 326: The method asBoolean(Element. > SetAttributeNSValueUnionType) is undefined for the type Js > [INFO] [ERROR] Line 331: The method asDouble(Element. > SetAttributeNSValueUnionType) is undefined for the type Js > [INFO] [ERROR] Line 336: The method asString(Element. > SetAttributeNSValueUnionType) is undefined for the type Js > [INFO] [ERROR] Line 364: The method asBoolean(Element. > SetAttributeValueUnionType) is undefined for the type Js > [INFO] [ERROR] Line 369: The method asDouble(Element. > SetAttributeValueUnionType) is undefined for the type Js > [INFO] [ERROR] Line 374: The method asString(Element. > SetAttributeValueUnionType) is undefined for the type Js > > Simple workaround, manually add excludes on jsinterop-base, and inherit > the correct version in your project: > <dependency> > <groupId>com.google.elemental2</groupId> > <artifactId>elemental2-dom</artifactId> > <version>1.0.0-beta-2</version> > <exclusions> > <exclusion> > <groupId>com.google.jsinterop</groupId> > <artifactId>base</artifactId> > </exclusion> > </exclusions> > </dependency> > <dependency> > <groupId>com.google.jsinterop</groupId> > <artifactId>base</artifactId> > <version>1.0.0-beta-3</version> > </dependency> > > Julien, if you do happen to release an updated beta to solve this, perhaps > also update jsinterop-annotations to 1.0.2, the version that was released > with GWT 2.8.2. > > > > On Wednesday, November 22, 2017 at 7:13:29 PM UTC-6, Julien Dramaix wrote: >> >> The beta version of Elemental2 using the JsInterop specification has been >> released on Sonatype today and is available on Maven central. This release >> should be the last beta release and I expect to release the first RC in few >> weeks. >> >> >> This release introduces -- among others: >> >> - a better granularity for api with numbers. Config files list APIs using >> integer instead of double. >> >> - usage of wildcard type for more flexibility. >> >> - support for javascript constructor function >> >> - static factory methods for dictionary type. >> >> Elemental2 is split into small jar files: >> >> >> Jar file >> >> artifact-id >> >> GWT module >> >> elemental2-core.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-core/1.0.0-beta-2/elemental2-core-1.0.0-beta-2.jar> >> >> elemental2-core >> >> elemental2.core.Core >> >> elemental2-promise.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-promise/1.0.0-beta-2/elemental2-promise-1.0.0-beta-2.jar> >> >> elemental2-promise >> >> elemental2.promise.Promise >> >> elemental2-dom.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-dom/1.0.0-beta-2/elemental2-dom-1.0.0-beta-2.jar> >> >> elemental2-dom >> >> elemental2.dom.Dom >> >> elemental2-svg.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-svg/1.0.0-beta-2/elemental2-svg-1.0.0-beta-2.jar> >> >> elemental2-svg >> >> elemental2.svg.Svg >> >> elemental2-webgl.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-webgl/1.0.0-beta-2/elemental2-webgl-1.0.0-beta-2.jar> >> >> elemental2-webgl >> >> elemental2.webgl.WebGl >> >> elemental2-media.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-media/1.0.0-beta-2/elemental2-media-1.0.0-beta-2.jar> >> >> elemental2-media >> >> elemental2.media.Media >> >> elemental2-indexeddb.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-indexeddb/1.0.0-beta-2/elemental2-indexeddb-1.0.0-beta-2.jar> >> >> elemental2-indexeddb >> >> elemental2.indexeddb.IndexedDb >> >> elemental2-webstorage.jar >> <https://oss.sonatype.org/content/repositories/releases/com/google/elemental2/elemental2-webstorage/1.0.0-beta-2/elemental2-webstorage-1.0.0-beta-2.jar> >> >> elemental2-webstorage >> >> elemental2.webstorage.WebStorage >> >> >> >> You can try them by downloading the jar files or adding Maven >> dependencies: >> >> >> <dependency> >> >> <groupId>com.google.elemental2</groupId> >> >> <artifactId>${artifact-id}</artifactId> >> >> <version>1.0.0-beta-2</version> >> >> </dependency> >> >> >> Then inherit the right gwt module in your gwt.xml file. >> >> >> This beta version works only with the latest HEAD_SNAPSHOT release of GWT >> <https://oss.sonatype.org/content/repositories/google-snapshots/com/google/gwt/gwt/HEAD-SNAPSHOT/> >> . >> >> >> Don’t hesitate to report any bugs, issues, concerns you have on the >> github bug tracker <https://github.com/google/elemental2/issues>. >> >> >> Important note: This is a beta releases and future updates (up until the >> final release) may break code! >> >> >> -Julien >> > -- > You received this message because you are subscribed to the Google Groups > "GWT Contributors" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-web-toolkit-contributors/0860d34a-fca3-4bdd-bde2-e467f8f0bb7c%40googlegroups.com > <https://groups.google.com/d/msgid/google-web-toolkit-contributors/0860d34a-fca3-4bdd-bde2-e467f8f0bb7c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "GWT Contributors" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D4yuqjyV28EFXUzPs0bpG%3DO8krYcLhR2db32nK%2BXTACKA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
