File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed
build-logic/src/main/kotlin/io/github/reactivecircus/cache4k/buildlogic/convention Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import org.gradle.kotlin.dsl.invoke
2121import org.gradle.kotlin.dsl.register
2222import org.gradle.kotlin.dsl.the
2323import org.gradle.kotlin.dsl.withType
24- import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
24+ import org.jetbrains.dokka.gradle.DokkaExtension
2525import org.jetbrains.dokka.gradle.DokkaPlugin
2626import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
2727import org.jetbrains.kotlin.gradle.dsl.JsModuleKind
@@ -44,11 +44,11 @@ internal class ConventionPlugin : Plugin<Project> {
4444}
4545
4646private fun Project.configureRootProject () {
47- tasks.withType< DokkaMultiModuleTask >().configureEach {
48- val apiDir = rootDir.resolve( " docs/api " )
49- outputDirectory.set(apiDir)
50- doLast {
51- apiDir.resolve( " -modules.html " ).renameTo(apiDir.resolve( " index.html " ))
47+ plugins.withId( " org.jetbrains.dokka " ) {
48+ extensions.configure< DokkaExtension > {
49+ dokkaPublications.configureEach {
50+ outputDirectory.set(layout.buildDirectory.dir( " docs/api " ))
51+ }
5252 }
5353 }
5454
Original file line number Diff line number Diff line change 11plugins {
22 id(" cache4k.convention" )
33}
4+
5+ dependencies {
6+ dokka(project(" :cache4k" ))
7+ }
Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ kotlin.code.style=official
2222kotlin.native.binary.gc =cms
2323
2424kotlin.incremental.native =true
25+
26+ org.jetbrains.dokka.experimental.gradle.pluginMode =V2Enabled
Original file line number Diff line number Diff line change 11[versions ]
22kotlin = " 2.1.0"
3- dokka = " 1.9.20 "
3+ dokka = " 2.0.0 "
44binaryCompabilityValidator = " 0.15.1"
55toolchainsResolver = " 0.8.0"
66detekt = " 1.23.7"
You can’t perform that action at this time.
0 commit comments