J2CL Maven Plugin

j2clmavenplugin -- alpha

License

License

Categories

Categories

Maven Build Tools GWT (Google Web Toolkit) User Interface Web Frameworks
GroupId

GroupId

org.treblereel.gwt.j2cl
ArtifactId

ArtifactId

j2cl-maven-plugin
Last Version

Last Version

0.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

J2CL Maven Plugin
j2clmavenplugin -- alpha
Project URL

Project URL

https://github.com/treblereel
Project Organization

Project Organization

Treblereel
Source Code Management

Source Code Management

https://github.com/treblereel/j2clmavenplugin

Download j2cl-maven-plugin

How to add to project

<plugin>
    <groupId>org.treblereel.gwt.j2cl</groupId>
    <artifactId>j2cl-maven-plugin</artifactId>
    <version>0.1</version>
</plugin>

Dependencies

compile (12)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.6.0
org.apache.maven.shared : maven-artifact-transfer jar 0.10.0
org.apache.maven.resolver : maven-resolver-api jar 1.3.1
org.apache.maven.resolver : maven-resolver-impl jar 1.3.1
org.apache.maven.shared : maven-dependency-tree jar 3.0.1
com.vertispan.j2cl : transpiler jar 0.2-SNAPSHOT
com.vertispan.j2cl : gwt-incompatible-stripper jar 0.2-SNAPSHOT
org.treblereel.gwt.javascript : closure-compiler-unshaded jar 0.1
commons-codec : commons-codec jar 1.11
org.apache.maven : maven-core jar 3.6.0
org.eclipse.sisu : org.eclipse.sisu.plexus jar 0.3.3
junit : junit jar 4.12

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.6.0

test (4)

Group / Artifact Type Version
org.apache.maven : maven-compat jar 3.6.0
org.apache.maven : maven-model jar 3.6.0
io.takari.maven.plugins : takari-plugin-testing jar 2.9.2
io.takari.maven.plugins : takari-plugin-integration-testing pom 2.9.2

Project Modules

There are no modules declared in this project.

J2CL Maven plugin

This plugin includes the code original developed as

    com.vertispan.j2cl:build-tools

built from here:

https://github.com/gitgabrio/j2cl-devmode-strawman

The plugin has three goals

  1. build: it executes a single compilation

  2. run: it starts in listening mode detecting file changing and eventually recompiling them

  3. clean: it cleans up all the plugin-specific directories


To test it:

use snapshot repo:

1 download archetype:

mvn dependency:get -Dartifact=org.treblereel.gwt.j2cl:j2cl-maven-plugin:0.1-SNAPSHOT -DremoteRepositories=sonatype-snapshots::::https://oss.sonatype.org/content/repositories/snapshots

2 generate simple j2cl application

mvn archetype:generate -DarchetypeGroupId=org.treblereel.gwt.j2cl -DarchetypeArtifactId=j2cl-maven-plugin -DarchetypeVersion=0.1-SNAPSHOT

to run dev mode:

mvn clean package -Pdevmode

build war

mvn clean package -build

build local:

git clone clone https://github.com/treblereel/j2clmavenplugin.git
mvn clean install -DskipTests

The connected project has been modified so that

1 all the dependencies and compiled classes/js ends up inside target/webapp

2 the jetty server listen for modification and serves target/webapp

Versions

Version
0.1