Skip to content

Commit

Permalink
Provide J2clCommandLineRunner in :transpiler
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroyer committed May 1, 2021
1 parent e8e6ecd commit 5dec379
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions maven/transpiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,31 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<jar destfile="${project.build.directory}/transpiler.jar">
<zipfileset src="../../bazel-bin/transpiler/java/com/google/j2cl/transpiler/libtranspiler_lib.jar" />
<zipfileset src="../../bazel-bin/transpiler/java/com/google/j2cl/transpiler/libcommandlinerunner_lib.jar" />
</jar>
<jar destfile="${project.build.directory}/transpiler-src.jar">
<zipfileset src="../../bazel-bin/transpiler/java/com/google/j2cl/transpiler/libtranspiler_lib-src.jar" />
<zipfileset src="../../bazel-bin/transpiler/java/com/google/j2cl/transpiler/libcommandlinerunner_lib-src.jar" />
</jar>
</target>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand All @@ -28,11 +53,11 @@
<configuration>
<artifacts>
<artifact>
<file>../../bazel-bin/transpiler/java/com/google/j2cl/transpiler/libtranspiler_lib.jar</file>
<file>${project.build.directory}/transpiler.jar</file>
<type>jar</type>
</artifact>
<artifact>
<file>../../bazel-bin/transpiler/java/com/google/j2cl/transpiler/libtranspiler_lib-src.jar</file>
<file>${project.build.directory}/transpiler-src.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
Expand Down Expand Up @@ -87,4 +112,4 @@
<version>${project.version}</version>
</dependency>
</dependencies>
</project>
</project>

0 comments on commit 5dec379

Please sign in to comment.