[Env] Support kotlin javadoc (#333)

This commit is contained in:
qianmoQ 2023-04-27 08:07:03 +08:00 committed by GitHub
commit 8e760c7068
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 2 deletions

View File

@ -76,6 +76,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

View File

@ -81,6 +81,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

View File

@ -76,6 +76,10 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
</plugin>
</plugins>
</build>

30
pom.xml
View File

@ -134,6 +134,7 @@
<plugin.maven.javadoc.version>3.5.0</plugin.maven.javadoc.version>
<plugin.maven.gpg.version>1.6</plugin.maven.gpg.version>
<plugin.maven.nexus.version>1.6</plugin.maven.nexus.version>
<plugin.maven.dokka.version>1.8.10</plugin.maven.dokka.version>
<environment.compile.java.version>1.8</environment.compile.java.version>
</properties>
@ -266,11 +267,11 @@
<plugins>
<plugin>
<artifactId>kotlin-maven-plugin</artifactId>
<groupId>org.jetbrains.kotlin</groupId>
<version>${kotlin.version}</version>
<configuration>
<jvmTarget>1.8</jvmTarget>
</configuration>
<groupId>org.jetbrains.kotlin</groupId>
<version>${kotlin.version}</version>
<executions>
<execution>
<id>compile</id>
@ -452,6 +453,31 @@
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!-- Fixed Missing: no javadoc jar found in folder -->
<plugin>
<groupId>org.jetbrains.dokka</groupId>
<artifactId>dokka-maven-plugin</artifactId>
<version>${plugin.maven.dokka.version}</version>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>dokka</goal>
</goals>
</execution>
<execution>
<phase>package</phase>
<id>attach-javadocs-dokka</id>
<goals>
<goal>javadocJar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
<distributionManagement>

View File

@ -126,6 +126,15 @@
</execution>
</executions>
</plugin>
<!-- <plugin>-->
<!-- <groupId>org.sonatype.plugins</groupId>-->
<!-- <artifactId>nexus-staging-maven-plugin</artifactId>-->
<!-- <version>${plugin.maven.nexus.version}</version>-->
<!-- <extensions>true</extensions>-->
<!-- <configuration>-->
<!-- <skipNexusStagingDeployMojo>true</skipNexusStagingDeployMojo>-->
<!-- </configuration>-->
<!-- </plugin>-->
</plugins>
</build>

View File

@ -0,0 +1,5 @@
package io.edurt.datacap.shaded.ydb;
public class Main
{
}