Skip to content

Commit 8599f66

Browse files
committed
build(core): add profile to create empty javadoc jar for release
1 parent a4f8862 commit 8599f66

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

github-crawler-starter/pom.xml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,33 @@
4141
</plugin>
4242
</plugins>
4343
</build>
44+
<profiles>
45+
<profile>
46+
<!-- The starter has no source, so Dokka produces no javadoc jar. Maven Central still
47+
requires one, so we attach an empty javadoc jar for the release build. -->
48+
<id>makeRelease</id>
49+
<build>
50+
<plugins>
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-jar-plugin</artifactId>
54+
<executions>
55+
<execution>
56+
<id>empty-javadoc-jar</id>
57+
<phase>package</phase>
58+
<goals>
59+
<goal>jar</goal>
60+
</goals>
61+
<configuration>
62+
<classifier>javadoc</classifier>
63+
<classesDirectory>${project.build.directory}/empty-javadoc</classesDirectory>
64+
<forceCreation>true</forceCreation>
65+
</configuration>
66+
</execution>
67+
</executions>
68+
</plugin>
69+
</plugins>
70+
</build>
71+
</profile>
72+
</profiles>
4473
</project>

0 commit comments

Comments
 (0)