Skip to content

Commit 449fbaf

Browse files
whyolegzoobestik
authored andcommitted
Update to Dokka 2.0.0
1 parent 4ebeb26 commit 449fbaf

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
@@ -383,8 +383,10 @@ tasks.withType<AbstractDokkaLeafTask>().configureEach {
383383
pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to """{ "templatesDir" : "${projectDir.toString().replace('\\', '/')}/dokka-templates" }"""))
384384

385385
failOnWarning.set(true)
386+
dokkaSourceSets.named("commonMain") {
387+
samples.from(kotlin.sourceSets.commonTest.map { it.kotlin.srcDirs })
388+
}
386389
dokkaSourceSets.configureEach {
387-
kotlin.sourceSets.commonTest.get().kotlin.srcDirs.forEach { samples.from(it) }
388390
// reportUndocumented.set(true) // much noisy output about `hashCode` and serializer encoders, decoders etc
389391
skipDeprecated.set(true)
390392
// 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=2025b
99

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

0 commit comments

Comments
 (0)