Skip to content

Commit 83f3c78

Browse files
committed
Update to Dokka 2.0.0
1 parent e69f92f commit 83f3c78

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/build.gradle.kts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,10 @@ tasks.withType<AbstractDokkaLeafTask>().configureEach {
408408
pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to """{ "templatesDir" : "${projectDir.toString().replace('\\', '/')}/dokka-templates" }"""))
409409

410410
failOnWarning.set(true)
411+
dokkaSourceSets.named("commonMain") {
412+
samples.from(kotlin.sourceSets.commonTest.map { it.kotlin.srcDirs })
413+
}
411414
dokkaSourceSets.configureEach {
412-
kotlin.sourceSets.commonTest.get().kotlin.srcDirs.forEach { samples.from(it) }
413415
// reportUndocumented.set(true) // much noisy output about `hashCode` and serializer encoders, decoders etc
414416
skipDeprecated.set(true)
415417
// Enum members and undocumented toString()

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ versionSuffix=SNAPSHOT
88
tzdbVersion=2025a
99

1010
defaultKotlinVersion=1.9.21
11-
dokkaVersion=1.9.20
11+
dokkaVersion=2.0.0
1212
serializationVersion=1.6.2
1313
benchmarksVersion=0.7.2
1414

0 commit comments

Comments
 (0)