Skip to content

Commit 5820ec8

Browse files
committed
fix(build): fix dokka plugin
1 parent f8fbdaf commit 5820ec8

File tree

3 files changed

+35
-2
lines changed

3 files changed

+35
-2
lines changed

clients/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,5 @@
5353
<artifactId>logback-core</artifactId>
5454
</dependency>
5555
</dependencies>
56+
5657
</project>

examples/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,5 @@
2424
<scope>compile</scope>
2525
</dependency>
2626
</dependencies>
27+
2728
</project>

pom.xml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868

6969
<properties>
7070
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
71+
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
7172
<kotlin.version>1.3.72</kotlin.version>
7273
<kotlinx.version>1.3.8</kotlinx.version>
7374
<kotlin.code.style>official</kotlin.code.style>
@@ -110,7 +111,7 @@
110111
<plugin>
111112
<groupId>org.apache.maven.plugins</groupId>
112113
<artifactId>maven-source-plugin</artifactId>
113-
<version>2.2.1</version>
114+
<version>3.2.1</version>
114115
<executions>
115116
<execution>
116117
<id>attach-sources</id>
@@ -126,12 +127,42 @@
126127
<version>${dokka.version}</version>
127128
<executions>
128129
<execution>
129-
<phase>pre-site</phase>
130+
<phase>prepare-package</phase>
130131
<goals>
131132
<goal>dokka</goal>
133+
<!-- not work with JDK 11 (https://github.com/Kotlin/dokka/issues/294)
134+
<goal>javadoc</goal>
135+
<goal>javadocJar</goal>
136+
-->
132137
</goals>
133138
</execution>
134139
</executions>
140+
<configuration>
141+
<dokkaPlugins>
142+
<plugin>
143+
<groupId>org.jetbrains.dokka</groupId>
144+
<artifactId>kotlin-as-java-plugin</artifactId>
145+
<version>${dokka.version}</version>
146+
</plugin>
147+
</dokkaPlugins>
148+
</configuration>
149+
</plugin>
150+
<plugin>
151+
<groupId>org.apache.maven.plugins</groupId>
152+
<artifactId>maven-jar-plugin</artifactId>
153+
<executions>
154+
<execution>
155+
<id>javadoc-jar</id>
156+
<phase>package</phase>
157+
<goals>
158+
<goal>jar</goal>
159+
</goals>
160+
<configuration>
161+
<classifier>javadoc</classifier>
162+
<classesDirectory>${project.basedir}/target/dokka</classesDirectory>
163+
</configuration>
164+
</execution>
165+
</executions>
135166
</plugin>
136167
</plugins>
137168
</build>

0 commit comments

Comments
 (0)