This plugins compiles Java sources to optimized JavaScript using https://github.com/google/j2cl/ and https://github.com/google/closure-compiler/. All Java code in this project will be transpiled to JS, and any source in dependencies will be transpiled as well, and all of that JS will then be optimized with the closure-compiler to produce small, efficient JavaScript.
Goals Overview
Usage
See the usage page for a description of how to integrate this plugin into an existing project, or check out the examples below for already-working samples to explore. Join us for discussion at https://gitter.im/vertispan/j2cl or https://github.com/Vertispan/j2clmavenplugin/discussions to ask questions and make suggestions as we continue to develop this plugin.
Examples
A fully working sample project can be found at https://github.com/treblereel/j2cl-tests. Also consider the Maven Archetypes that are developed in this project, or check out the integration tests used to verify various aspects of the project each build, especially hello-world-single and hello-world-reactor.