Migrate API documentation publisher to Dokka 2.2

Use the current publication task and retain the existing output directory and upload destination. Allocate sufficient memory for Kotlin multiplatform API analysis.
This commit is contained in:
sergeych committed 2026-10-15 08:40:13 +04:00
1 parent 617f22dda1
commit a1f1789d7b
2 files changed
+7 -8

No files matched your search

+2 -1
View File
@@ -10,5 +10,6 @@
#
set -e
./gradlew dokkaHtml
# Dokka needs more Metaspace than the default Gradle daemon on this KMP project.
./gradlew '-Dorg.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=1g' dokkaGeneratePublicationHtml
rsync -avz ./build/dokka/* code.sergeych.net:/bigstore/sergeych_pub/code/docs/kiloparsec
+5 -7
View File
@@ -15,7 +15,7 @@ plugins {
id("org.jetbrains.kotlin.plugin.serialization") version "2.2.21"
id("com.android.library") version "8.7.2" apply true
`maven-publish`
id("org.jetbrains.dokka") version "1.9.20"
id("org.jetbrains.dokka") version "2.2.0"
}
group = "net.sergeych"
@@ -174,15 +174,13 @@ publishing {
}
tasks.dokkaHtml.configure {
outputDirectory.set(buildDir.resolve("dokka"))
dokkaSourceSets {
configureEach {
// includes.from("docs/bipack.md")
}
dokka {
dokkaPublications.html {
outputDirectory.set(layout.buildDirectory.dir("dokka"))
}
}
android {
namespace = "net.sergeych.kiloparsec"
compileSdk = 34