Skip to content

Commit

Permalink
build: add dokka-maven-plugin for cffu-kotlin module
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed May 15, 2023
1 parent fd7ca54 commit ccfdcd4
Showing 1 changed file with 73 additions and 0 deletions.
73 changes: 73 additions & 0 deletions cffu-kotlin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
</developer>
</developers>

<properties>
<dokka.version>1.8.10</dokka.version>
</properties>

<dependencies>
<dependency>
<groupId>io.foldright</groupId>
Expand Down Expand Up @@ -91,5 +95,74 @@
</dependency>
</dependencies>
</profile>
<profile>
<id>gen-api-doc</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<!--
https://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html
https://docs.oracle.com/en/java/javase/11/javadoc/javadoc-command.html
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<!--
use dokka-maven-plugin to generate javadoc for kotlin project
https://kotlinlang.org/docs/dokka-maven.html
-->
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>${dokka.version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>dokka</goal>
<goal>javadocJar</goal>
</goals>
</execution>
</executions>
<configuration>
<jdkVersion>19</jdkVersion>
<documentedVisibilities>
<visibility>PUBLIC</visibility>
<visibility>PROTECTED</visibility>
</documentedVisibilities>
<externalDocumentationLinks>
<link>
<url>
https://www.javadoc.io/doc/com.github.spotbugs/spotbugs-annotations/${spotbugs.annotations.version}/
</url>
<packageListUrl>file:/${javadoc.package.list.dir}/spotbugs-annotations/package-list</packageListUrl>
</link>
<link>
<url>https://www.javadoc.io/doc/org.jetbrains/annotations/${jetbrains.annotations.version}/</url>
<packageListUrl>file:/${javadoc.package.list.dir}/jetbrains-annotations/package-list</packageListUrl>
</link>
<link>
<url>https://www.javadoc.io/doc/com.google.code.findbugs/jsr305/${jsr305.version}/</url>
<packageListUrl>file:/${javadoc.package.list.dir}/jsr305/package-list</packageListUrl>
</link>
<link>
<url>https://docs.oracle.com/en/java/javase/19/docs/api/java.base/</url>
<packageListUrl>file:/${javadoc.package.list.dir}/java/package-list</packageListUrl>
</link>
</externalDocumentationLinks>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit ccfdcd4

Please sign in to comment.