Skip to content

Commit

Permalink
Add empty source jars to kotlin-build-common Maven artifacts
Browse files Browse the repository at this point in the history
Maven Central requires all artifacts to have sources and javadocs
  • Loading branch information
udalov committed May 12, 2016
1 parent ddadef7 commit e5fd456
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
19 changes: 19 additions & 0 deletions libraries/tools/kotlin-build-common-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>empty-sources-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<skipIfEmpty>false</skipIfEmpty>
<classifier>sources</classifier>
<classesDirectory>${basedir}/sources</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand Down
21 changes: 20 additions & 1 deletion libraries/tools/kotlin-build-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,26 @@
</executions>
</plugin>
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>empty-sources-jar</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<skipIfEmpty>false</skipIfEmpty>
<classifier>sources</classifier>
<classesDirectory>${basedir}/sources</classesDirectory>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
Expand All @@ -68,7 +88,6 @@
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>

0 comments on commit e5fd456

Please sign in to comment.