Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jiakuan/test-j2cl
Test J2CL with GWT3 Processors
https://github.com/jiakuan/test-j2cl
Last synced: 15 days ago
JSON representation
Test J2CL with GWT3 Processors
- Host: GitHub
- URL: https://github.com/jiakuan/test-j2cl
- Owner: jiakuan
- Created: 2023-08-31T02:53:49.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-01T01:30:11.000Z (about 1 year ago)
- Last Synced: 2023-09-01T19:35:53.086Z (about 1 year ago)
- Language: Java
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This sample is created using the following command:
```shell
mvn archetype:generate -DarchetypeGroupId=com.vertispan.j2cl.archetypes \
-DarchetypeArtifactId=j2cl-archetype-simple \
-DarchetypeVersion=0.21-SNAPSHOT \
-DgroupId=org.docstr.j2cl \
-DartifactId=test-j2cl \
-Dversion=1.0-SNAPSHOT \
-Dmodule=TestJ2CL
```Then add a dependency:
```xml
org.treblereel.j2cl.processors
annotations
0.6org.treblereel.j2cl.processors
processors
0.6
provided```
Rename `org/docstr/j2cl/TestJ2CL.native.js` to `org/docstr/j2cl/TestJ2CL.native.js__` and add `@GWT3EntryPoint` annotation to `org.docstr.j2cl.TestJ2CL` class:
```java
@GWT3EntryPoint
public void onModuleLoad() {
// ...
}
```Then run the following command to build:
```shell
mvn j2cl:build
```The generated JS file is located at `target/test-j2cl-1.0-SNAPSHOT/test-j2cl/test-j2cl.js`.