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:
Alexander Udalov
2015-05-28 18:11:47 +03:00
parent ee811136d2
commit 9cc156c67f
4 changed files with 38 additions and 46 deletions
+8
View File
@@ -827,6 +827,14 @@
<fileset dir="${output}/core.src" includes="**/*"/>
</jar-content>
</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 name="runtime"
-1
View File
@@ -45,7 +45,6 @@
<asm.version>3.3.1</asm.version>
<dart.name>dart-r3300</dart.name>
<guava.version>11.0.2</guava.version>
<protobuf.version>2.5.0</protobuf.version>
<junit-version>4.11</junit-version>
<kotlin-maven-plugin.version>0.2.3.8</kotlin-maven-plugin.version>
<kotlin-dist>${project-root}/dist</kotlin-dist>
+29 -45
View File
@@ -21,44 +21,44 @@
<artifactId>kotlin-stdlib</artifactId>
<version>${project.version}</version>
</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>
<build>
<sourceDirectory>target/copied-sources</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<id>copy-sources</id>
<phase>process-sources</phase>
<id>empty-javadoc-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<target>
<delete dir="${basedir}/target/copied-sources" failonerror="false" />
<copy todir="${basedir}/target/copied-sources">
<fileset dir="${basedir}/../../../core/descriptor.loader.java/src"/>
<fileset dir="${basedir}/../../../core/descriptors/src"/>
<fileset dir="${basedir}/../../../core/descriptors.runtime/src"/>
<fileset dir="${basedir}/../../../core/deserialization/src"/>
<fileset dir="${basedir}/../../../core/reflection.jvm/src"/>
<fileset dir="${basedir}/../../../core/util.runtime/src"/>
</copy>
</target>
<classifier>javadoc</classifier>
<classesDirectory>${basedir}/javadoc</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<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>
<goals>
<goal>run</goal>
@@ -66,22 +66,6 @@
</execution>
</executions>
</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>
</build>
</project>
+1
View File
@@ -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.reflect=Kotlin Reflect
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.spec.title.kotlin.javascript.lib=Kotlin JavaScript Lib