Skip to content

Commit

Permalink
update to latest j2cl-m-p
Browse files Browse the repository at this point in the history
  • Loading branch information
vegegoku committed Nov 16, 2023
1 parent 436eb0f commit cff7a61
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 38 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/dominokit/cli/VersionProfile.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private static VersionProfile get(String version) {
ToolVersion.of("quarkus_version", "2.16.7.Final"),
ToolVersion.of("vertx_version", "3.9.4"),
ToolVersion.of("gwt_version", "2.10.0"),
ToolVersion.of("j2cl_maven_plugin_version", "0.21")
ToolVersion.of("j2cl_maven_plugin_version", "0.21.0")
);
case "v2":
return new VersionProfile(version, version,
Expand All @@ -62,7 +62,7 @@ private static VersionProfile get(String version) {
ToolVersion.of("quarkus_version", "2.16.7.Final"),
ToolVersion.of("vertx_version", "3.9.4"),
ToolVersion.of("gwt_version", "2.10.0"),
ToolVersion.of("j2cl_maven_plugin_version", "0.21")
ToolVersion.of("j2cl_maven_plugin_version", "0.21.0")
);
case "dev":
return new VersionProfile(version, "v2",
Expand All @@ -74,7 +74,7 @@ private static VersionProfile get(String version) {
ToolVersion.of("quarkus_version", "2.16.7.Final"),
ToolVersion.of("vertx_version", "3.9.4"),
ToolVersion.of("gwt_version", "2.10.0"),
ToolVersion.of("j2cl_maven_plugin_version", "0.21")
ToolVersion.of("j2cl_maven_plugin_version", "0.21.0")
);

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public void create(Project project){
.add(new TemplatedFile("App.java", "/app/j2cl/basic/client/source/App.java"))
.add(new TemplatedFile("App.native.js", "/app/j2cl/basic/client/source/App.native.js"))
)
.add(new Package("com.google.gwt.core.client")
.add(new TemplatedFile("EntryPoint.java", "/app/j2cl/basic/client/source/EntryPoint.java"))
)
)
.add(new Folder("webapp/WEB-INF")
.add(new TemplatedFile("web.xml", "/app/j2cl/basic/server/webapp/web.xml"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
package ${rootPackage};

import com.google.gwt.core.client.EntryPoint;
import elemental2.dom.DomGlobal;
import elemental2.dom.HTMLDivElement;
import elemental2.dom.HTMLHeadingElement;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;

/**
* Entry point classes define <code>onModuleLoad()</code>.
*/
public class App implements EntryPoint {
@JsType
public class App {

/**
* This is the entry point method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ 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 = App.$create__();
var ep = new App();
// Invoke onModuleLoad to start the app.
ep.m_onModuleLoad__()
ep.onModuleLoad()
}, 0);

This file was deleted.

0 comments on commit cff7a61

Please sign in to comment.