Skip to content

TDesjardins/gwt-knowledge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 

Repository files navigation

GWT Knowledge

Collection of GWT knowledge and resources

GWT 3

Modules

Module Migration

Resources

J2CL

J2CL Maven Plugin

Maven Central

Source code

https://github.com/Vertispan/j2clmavenplugin

Repo

https://repo.vertispan.com/j2cl/com/vertispan/j2cl/j2cl-maven-plugin/

Configuration

<plugin>
  <groupId>com.vertispan.j2cl</groupId>
    <artifactId>j2cl-maven-plugin</artifactId>
    <version>0.16-SNAPSHOT</version>
    <executions>
      <execution>
        <id>build-js</id>
        <phase>process-classes</phase>
          <goals>
            <goal>build</goal>
          </goals>
        </execution>
    </executions>
    <configuration>
      <entrypoint>com.example.my.EntryPoint</entrypoint>
    </configuration>
</plugin>

Entrypoint

MyEntryPoint.native.js

setTimeout(function(){
  // Call the java "constructor" method, `new` will only work if it is a @JsType, or maybe
  // once optimized. Without this, in BUNDLE mode, `new` doesn't include the clinit, so
  // static imports haven't been resolved yet.
  var ep = MyEntryPoint.$create__();
  // Invoke onModuleLoad to start the app.
  ep.m_onModuleLoad__()
}, 0);

Links

JsInterop

Elemental2

Miscellaneous

About

Collection of GWT knowledge and resources

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published