fix kotlin-js-library maven project
This commit is contained in:
@@ -1,23 +0,0 @@
|
|||||||
<project name="maven-antrun-" default="main">
|
|
||||||
|
|
||||||
<import file="${basedir}/jslib_files.xml"/>
|
|
||||||
|
|
||||||
<target name="main">
|
|
||||||
<delete dir="${project.build.directory}/classes" failonerror="false" />
|
|
||||||
<delete dir="${project.build.directory}/generated-js-library" failonerror="false" />
|
|
||||||
|
|
||||||
<copy todir="${project.build.directory}/generated-js-library">
|
|
||||||
<resources refid="js.lib.files" />
|
|
||||||
</copy>
|
|
||||||
|
|
||||||
<copy tofile="${project.build.directory}/generated-js-library/kotlin-maps.js"
|
|
||||||
file="${basedir}/js/js.translator/testData/maps.js"/>
|
|
||||||
<copy tofile="${project.build.directory}/generated-js-library/kotlin-long.js"
|
|
||||||
file="${basedir}/js/js.translator/testData/long.js"/>
|
|
||||||
<copy tofile="${project.build.directory}/generated-js-library/kotlin-lib.js"
|
|
||||||
file="${basedir}/js/js.translator/testData/kotlin_lib.js"/>
|
|
||||||
<copy tofile="${project.build.directory}/generated-js-library/kotlin-lib-ecma5.js"
|
|
||||||
file="${basedir}/js/js.translator/testData/kotlin_lib_ecma5.js"/>
|
|
||||||
|
|
||||||
</target>
|
|
||||||
</project>
|
|
||||||
@@ -20,15 +20,16 @@
|
|||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
<version>1.7</version>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>copy-sources</id>
|
<id>copy-jar</id>
|
||||||
<phase>process-sources</phase>
|
<phase>package</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<tasks>
|
||||||
<ant antfile="${basedir}/build.xml" dir="${project-root}"/>
|
<copy file="${kotlin-dist}/kotlinc/lib/kotlin-jslib.jar"
|
||||||
</target>
|
tofile="${basedir}/target/${project.artifactId}-${project.version}.jar"
|
||||||
|
overwrite="true" verbose="true"/>
|
||||||
|
</tasks>
|
||||||
</configuration>
|
</configuration>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>run</goal>
|
<goal>run</goal>
|
||||||
@@ -36,25 +37,29 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>kotlin-maven-plugin</artifactId>
|
<artifactId>maven-install-plugin</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>2.3.1</version>
|
||||||
<configuration>
|
|
||||||
<librarySourceDir>${basedir}/target/generated-js-library</librarySourceDir>
|
|
||||||
<definitionSourceDir>${basedir}/target/generated-js-definitions</definitionSourceDir>
|
|
||||||
</configuration>
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>jslib</id>
|
<id>install-library</id>
|
||||||
|
<phase>install</phase>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>jslib</goal>
|
<goal>install-file</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<file>${kotlin-dist}/kotlinc/lib/kotlin-jslib-sources.jar</file>
|
||||||
|
<classifier>sources</classifier>
|
||||||
|
<groupId>${groupId}</groupId>
|
||||||
|
<artifactId>${artifactId}</artifactId>
|
||||||
|
<version>${version}</version>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<generatePom>false</generatePom>
|
||||||
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
# This file is here in order to force creating sources archive.
|
||||||
Reference in New Issue
Block a user