File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed
build-logic/src/main/kotlin/kotlinx/io/conventions Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change 33 * Use of this source code is governed by the Apache 2.0 license that can be found in the LICENCE file.
44 */
55
6- import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
7- import org.jetbrains.dokka.gradle.DokkaTaskPartial
6+ import org.jetbrains.dokka.gradle.*
87import java.net.URL
98
109plugins {
1110 id(" org.jetbrains.dokka" )
1211}
1312
14- tasks.withType<DokkaTaskPartial >().configureEach {
13+ // shared configuration for all dokka tasks (both partial and multi-module)
14+ tasks.withType<AbstractDokkaTask >().configureEach {
1515 pluginsMapConfiguration.set(
1616 mapOf (
1717 " org.jetbrains.dokka.base.DokkaBase" to """ { "templatesDir" : "${
18- projectDir.resolveSibling (" dokka-templates" )
18+ rootDir.resolve (" dokka-templates" )
1919 } """
2020 )
2121 )
22+ }
2223
24+ tasks.withType<DokkaTaskPartial >().configureEach {
2325 dokkaSourceSets.configureEach {
2426 includes.from(" Module.md" )
2527
@@ -43,15 +45,3 @@ tasks.withType<DokkaTaskPartial>().configureEach {
4345 )
4446 }
4547}
46-
47- tasks.withType(DokkaMultiModuleTask ::class .java) {
48- pluginsMapConfiguration.set(
49- mapOf (
50- " org.jetbrains.dokka.base.DokkaBase" to """ { "templatesDir" : "${
51- projectDir.resolve(
52- " dokka-templates"
53- )
54- } " }"""
55- )
56- )
57- }
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ import kotlinx.validation.ExperimentalBCVApi
88
99plugins {
1010 id(" kotlinx-io-publish" ) apply false
11+ id(" kotlinx-io-dokka" )
1112
1213 alias(libs.plugins.kover)
1314 alias(libs.plugins.bcv)
14- alias(libs.plugins.dokka)
1515}
1616
1717allprojects {
You can’t perform that action at this time.
0 commit comments