Skip to content

Commit

Permalink
Dokka 2.0.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
ychescale9 committed Dec 18, 2024
1 parent 7c0e139 commit 1fbf837
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import org.gradle.kotlin.dsl.invoke
import org.gradle.kotlin.dsl.register
import org.gradle.kotlin.dsl.the
import org.gradle.kotlin.dsl.withType
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.dokka.gradle.DokkaExtension
import org.jetbrains.dokka.gradle.DokkaPlugin
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JsModuleKind
Expand All @@ -44,11 +44,11 @@ internal class ConventionPlugin : Plugin<Project> {
}

private fun Project.configureRootProject() {
tasks.withType<DokkaMultiModuleTask>().configureEach {
val apiDir = rootDir.resolve("docs/api")
outputDirectory.set(apiDir)
doLast {
apiDir.resolve("-modules.html").renameTo(apiDir.resolve("index.html"))
plugins.withId("org.jetbrains.dokka") {
extensions.configure<DokkaExtension> {
dokkaPublications.configureEach {
outputDirectory.set(layout.buildDirectory.dir("docs/api"))
}
}
}

Expand Down
4 changes: 4 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("cache4k.convention")
}

dependencies {
dokka(project(":cache4k"))
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ kotlin.code.style=official
kotlin.native.binary.gc=cms

kotlin.incremental.native=true

org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
kotlin = "2.1.0"
dokka = "1.9.20"
dokka = "2.0.0"
binaryCompabilityValidator = "0.15.1"
toolchainsResolver = "0.8.0"
detekt = "1.23.7"
Expand Down

0 comments on commit 1fbf837

Please sign in to comment.