From f8b0dc1fc0e4fa67b6aa97f50d66bf9528c55c39 Mon Sep 17 00:00:00 2001 From: Google Team Member Date: Fri, 18 Sep 2026 04:16:19 -0700 Subject: [PATCH] build(tokt): generate sources and javadoc jars in release profile Set to src/main/kotlin so maven-source-plugin packages Kotlin sources into -sources.jar, and run dokka-maven-plugin javadocJar in the release profile so Maven Central publishing receives -javadoc.jar. PiperOrigin-RevId: 983783396 --- pom.xml | 1 + tokt/pom.xml | 42 +++++++++++++++++++++++++++++++++++++----- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 87b5a0246..5f8f0ebac 100644 --- a/pom.xml +++ b/pom.xml @@ -73,6 +73,7 @@ 3.1.12 2.1.20 + 2.2.0 1.11.0 1.1.0 3.7.0 diff --git a/tokt/pom.xml b/tokt/pom.xml index 10a8f450f..df429f0a9 100644 --- a/tokt/pom.xml +++ b/tokt/pom.xml @@ -99,6 +99,7 @@ + ${project.basedir}/src/main/kotlin @@ -119,11 +120,6 @@ compile - - - ${project.basedir}/src/main/kotlin - - test-compile @@ -144,4 +140,40 @@ + + + + release + + + + + org.apache.maven.plugins + maven-javadoc-plugin + + true + + + + org.jetbrains.dokka + dokka-maven-plugin + ${dokka.version} + + ${project.build.directory}/dokkaJavadocJar + + + + attach-dokka-javadocs + package + + javadocJar + + + + + + + +