Skip to content

Commit

Permalink
GH-51 - Add Javadoc generation for kmolecules-ddd.
Browse files Browse the repository at this point in the history
Kotlin modules need to use Dokka o generate the Javadoc JAR required to publish an artifact on Maven Central. We're now generating that during the release build.
  • Loading branch information
odrotbohm committed May 23, 2022
1 parent 1cb4923 commit c0c0450
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion kmolecules-ddd/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,40 @@
</execution>
</executions>
</plugin>
</plugins>
</plugins>

</build>

<profiles>
<profile>
<id>sonatype</id>
<build>
<plugins>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>javadocJar</goal>
</goals>
</execution>
</executions>
<configuration>
<dokkaPlugins>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>kotlin-as-java-plugin</artifactId>
<version>${kotlin.version}</version>
</plugin>
</dokkaPlugins>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit c0c0450

Please sign in to comment.