Add actual sources to compiler and daemon client jars

This commit is contained in:
Ilya Chernikov
2017-03-29 16:57:05 +02:00
parent 88652154c9
commit a309511adf
3 changed files with 57 additions and 19 deletions
@@ -24,22 +24,34 @@
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>empty-sources-jar</id>
<phase>package</phase>
<id>attach-artifacts</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
<goal>attach-artifact</goal>
</goals>
<configuration>
<skipIfEmpty>false</skipIfEmpty>
<classifier>sources</classifier>
<classesDirectory>${basedir}/sources</classesDirectory>
<artifacts>
<artifact>
<file>${kotlin-dist}/kotlin-compiler-client-embeddable-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
<execution>
<id>attach-empty-javadoc</id>
<phase>prepare-package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
</execution>
</executions>
</plugin>
+21 -9
View File
@@ -25,22 +25,34 @@
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>empty-sources-jar</id>
<phase>package</phase>
<id>attach-artifacts</id>
<phase>compile</phase>
<goals>
<goal>jar</goal>
<goal>attach-artifact</goal>
</goals>
<configuration>
<skipIfEmpty>false</skipIfEmpty>
<classifier>sources</classifier>
<classesDirectory>${basedir}/sources</classesDirectory>
<artifacts>
<artifact>
<file>${kotlin-dist}/kotlin-daemon-client-sources.jar</file>
<type>jar</type>
<classifier>sources</classifier>
</artifact>
</artifacts>
</configuration>
</execution>
<execution>
<id>attach-empty-javadoc</id>
<phase>prepare-package</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
</execution>
</executions>
</plugin>