libraries/tools: compile kotlin runtime in maven build

This commit is contained in:
Leonid Shalupov
2012-04-09 22:28:17 +04:00
parent ea1592e8a3
commit 6d47a3c2dc
+23 -11
View File
@@ -15,22 +15,34 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<build> <build>
<sourceDirectory>${project.basedir}/../../../runtime/src</sourceDirectory>
<plugins> <plugins>
<plugin> <plugin>
<artifactId>maven-antrun-plugin</artifactId> <groupId>org.apache.maven.plugins</groupId>
<version>1.7</version> <artifactId>maven-source-plugin</artifactId>
<configuration>
</configuration>
<executions> <executions>
<!-- Use precompiled class files -->
<execution> <execution>
<phase>compile</phase> <phase>package</phase>
<configuration> <id>attach-sources</id>
<tasks>
<unzip src="${kotlin-sdk}/lib/kotlin-runtime.jar"
dest="${project.build.outputDirectory}"/>
</tasks>
</configuration>
<goals> <goals>
<goal>run</goal> <goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<id>attach-javadocs</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>