Copy kotlin-reflect.jar from dist to publish to Maven
Also build sources jar in build.xml to publish as kotlin-reflect's sources, and create an empty javadoc
This commit is contained in:
@@ -827,6 +827,14 @@
|
|||||||
<fileset dir="${output}/core.src" includes="**/*"/>
|
<fileset dir="${output}/core.src" includes="**/*"/>
|
||||||
</jar-content>
|
</jar-content>
|
||||||
</pack-runtime-jar>
|
</pack-runtime-jar>
|
||||||
|
|
||||||
|
<pack-runtime-jar jar-dir="${output}" jar-name="kotlin-reflect-sources-for-maven.jar"
|
||||||
|
implementation-title="${manifest.impl.title.kotlin.jvm.reflect.sources}">
|
||||||
|
<jar-content>
|
||||||
|
<fileset dir="${basedir}/core/reflection.jvm/src" includes="**/*"/>
|
||||||
|
<fileset dir="${output}/core.src" includes="**/*"/>
|
||||||
|
</jar-content>
|
||||||
|
</pack-runtime-jar>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="runtime"
|
<target name="runtime"
|
||||||
|
|||||||
@@ -45,7 +45,6 @@
|
|||||||
<asm.version>3.3.1</asm.version>
|
<asm.version>3.3.1</asm.version>
|
||||||
<dart.name>dart-r3300</dart.name>
|
<dart.name>dart-r3300</dart.name>
|
||||||
<guava.version>11.0.2</guava.version>
|
<guava.version>11.0.2</guava.version>
|
||||||
<protobuf.version>2.5.0</protobuf.version>
|
|
||||||
<junit-version>4.11</junit-version>
|
<junit-version>4.11</junit-version>
|
||||||
<kotlin-maven-plugin.version>0.2.3.8</kotlin-maven-plugin.version>
|
<kotlin-maven-plugin.version>0.2.3.8</kotlin-maven-plugin.version>
|
||||||
<kotlin-dist>${project-root}/dist</kotlin-dist>
|
<kotlin-dist>${project-root}/dist</kotlin-dist>
|
||||||
|
|||||||
@@ -21,44 +21,44 @@
|
|||||||
<artifactId>kotlin-stdlib</artifactId>
|
<artifactId>kotlin-stdlib</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${project.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.protobuf</groupId>
|
|
||||||
<artifactId>protobuf-java</artifactId>
|
|
||||||
<!-- Do not use ${protobuf.version} because it couldn't be resolve in gradle -->
|
|
||||||
<version>2.5.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>javax.inject</groupId>
|
|
||||||
<artifactId>javax.inject</artifactId>
|
|
||||||
<version>1</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<sourceDirectory>target/copied-sources</sourceDirectory>
|
|
||||||
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-antrun-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<version>1.7</version>
|
|
||||||
|
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>copy-sources</id>
|
<id>empty-javadoc-jar</id>
|
||||||
<phase>process-sources</phase>
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>jar</goal>
|
||||||
|
</goals>
|
||||||
<configuration>
|
<configuration>
|
||||||
<target>
|
<classifier>javadoc</classifier>
|
||||||
<delete dir="${basedir}/target/copied-sources" failonerror="false" />
|
<classesDirectory>${basedir}/javadoc</classesDirectory>
|
||||||
<copy todir="${basedir}/target/copied-sources">
|
</configuration>
|
||||||
<fileset dir="${basedir}/../../../core/descriptor.loader.java/src"/>
|
</execution>
|
||||||
<fileset dir="${basedir}/../../../core/descriptors/src"/>
|
</executions>
|
||||||
<fileset dir="${basedir}/../../../core/descriptors.runtime/src"/>
|
</plugin>
|
||||||
<fileset dir="${basedir}/../../../core/deserialization/src"/>
|
|
||||||
<fileset dir="${basedir}/../../../core/reflection.jvm/src"/>
|
<plugin>
|
||||||
<fileset dir="${basedir}/../../../core/util.runtime/src"/>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
</copy>
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
</target>
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>copy-jar</id>
|
||||||
|
<phase>package</phase>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<copy file="${kotlin-dist}/kotlinc/lib/kotlin-reflect.jar"
|
||||||
|
tofile="${basedir}/target/${project.artifactId}-${project.version}.jar"
|
||||||
|
overwrite="true" verbose="true"/>
|
||||||
|
<copy file="${kotlin-dist}/kotlin-reflect-sources-for-maven.jar"
|
||||||
|
tofile="${basedir}/target/${project.artifactId}-${project.version}-sources.jar"
|
||||||
|
overwrite="true" verbose="true"/>
|
||||||
|
</tasks>
|
||||||
</configuration>
|
</configuration>
|
||||||
<goals>
|
<goals>
|
||||||
<goal>run</goal>
|
<goal>run</goal>
|
||||||
@@ -66,22 +66,6 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.jetbrains.kotlin</groupId>
|
|
||||||
<artifactId>kotlin-maven-plugin</artifactId>
|
|
||||||
<version>${project.version}</version>
|
|
||||||
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>compile</id>
|
|
||||||
<phase>process-sources</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>compile</goal>
|
|
||||||
</goals>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ manifest.impl.title.kotlin.compiler.ant.task=Kotlin Compiler Ant Tasks
|
|||||||
manifest.impl.title.kotlin.jvm.runtime=Kotlin Runtime
|
manifest.impl.title.kotlin.jvm.runtime=Kotlin Runtime
|
||||||
manifest.impl.title.kotlin.jvm.reflect=Kotlin Reflect
|
manifest.impl.title.kotlin.jvm.reflect=Kotlin Reflect
|
||||||
manifest.impl.title.kotlin.jvm.runtime.sources=Kotlin Runtime Sources
|
manifest.impl.title.kotlin.jvm.runtime.sources=Kotlin Runtime Sources
|
||||||
|
manifest.impl.title.kotlin.jvm.reflect.sources=Kotlin Reflect Sources
|
||||||
|
|
||||||
manifest.impl.title.kotlin.javascript.stdlib=Kotlin JavaScript StdLib
|
manifest.impl.title.kotlin.javascript.stdlib=Kotlin JavaScript StdLib
|
||||||
manifest.spec.title.kotlin.javascript.lib=Kotlin JavaScript Lib
|
manifest.spec.title.kotlin.javascript.lib=Kotlin JavaScript Lib
|
||||||
|
|||||||
Reference in New Issue
Block a user