Skip to content

Commit af78fb3

Browse files
adds dokka support to generate javadocs for the kotlin only projects (#118)
adds dokka support to generate javadocs for the kotlin only projects, needed by maven central
1 parent 7a5402e commit af78fb3

4 files changed

Lines changed: 66 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
out
22
node_modules
3-
target
3+
target/
44

55
dependency-reduced-pom.xml
66
classpath.txt

debug/service/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,36 @@
3131
<artifactId>jul-to-slf4j</artifactId>
3232
</dependency>
3333
</dependencies>
34+
<profiles>
35+
<profile>
36+
<id>release</id>
37+
<build>
38+
<plugins>
39+
<plugin>
40+
<groupId>org.apache.maven.plugins</groupId>
41+
<artifactId>maven-javadoc-plugin</artifactId>
42+
<executions>
43+
<execution>
44+
<id>attach-javadocs</id>
45+
<phase>none</phase>
46+
</execution>
47+
</executions>
48+
</plugin>
49+
<plugin>
50+
<groupId>org.jetbrains.dokka</groupId>
51+
<artifactId>dokka-maven-plugin</artifactId>
52+
<executions>
53+
<execution>
54+
<phase>prepare-package</phase>
55+
<goals><goal>javadocJar</goal></goals>
56+
</execution>
57+
</executions>
58+
</plugin>
59+
</plugins>
60+
</build>
61+
</profile>
62+
</profiles>
63+
3464
<build>
3565
<plugins>
3666
<plugin>

ls/service/pom.xml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,36 @@
3131
</dependency>
3232
</dependencies>
3333

34+
<profiles>
35+
<profile>
36+
<id>release</id>
37+
<build>
38+
<plugins>
39+
<plugin>
40+
<groupId>org.apache.maven.plugins</groupId>
41+
<artifactId>maven-javadoc-plugin</artifactId>
42+
<executions>
43+
<execution>
44+
<id>attach-javadocs</id>
45+
<phase>none</phase>
46+
</execution>
47+
</executions>
48+
</plugin>
49+
<plugin>
50+
<groupId>org.jetbrains.dokka</groupId>
51+
<artifactId>dokka-maven-plugin</artifactId>
52+
<executions>
53+
<execution>
54+
<phase>prepare-package</phase>
55+
<goals><goal>javadocJar</goal></goals>
56+
</execution>
57+
</executions>
58+
</plugin>
59+
</plugins>
60+
</build>
61+
</profile>
62+
</profiles>
63+
3464
<build>
3565
<plugins>
3666
<plugin>

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,11 @@
395395
<artifactId>maven-shade-plugin</artifactId>
396396
<version>3.2.4</version>
397397
</plugin>
398+
<plugin>
399+
<groupId>org.jetbrains.dokka</groupId>
400+
<artifactId>dokka-maven-plugin</artifactId>
401+
<version>1.9.20</version>
402+
</plugin>
398403
<plugin>
399404
<groupId>org.apache.maven.plugins</groupId>
400405
<artifactId>maven-enforcer-plugin</artifactId>

0 commit comments

Comments
 (0)