Skip to content

Commit bc86f3e

Browse files
committed
🔨 streamline Dokka plugin application and add docs task for multi-module documentation
1 parent da0ffb0 commit bc86f3e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

build.gradle.kts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ allprojects {
1616
}
1717

1818
subprojects {
19-
if (name in listOf("qs-kotlin", "qs-kotlin-android")) {
20-
plugins.withId("org.jetbrains.kotlin.jvm") { apply(plugin = "org.jetbrains.dokka") }
21-
plugins.withId("org.jetbrains.kotlin.android") { apply(plugin = "org.jetbrains.dokka") }
19+
if (name in listOf("qs-kotlin")) {
20+
apply(plugin = "org.jetbrains.dokka")
2221
}
2322
}
2423

24+
tasks.register("docs") { dependsOn("dokkaHtmlMultiModule") }
25+
2526
nexusPublishing {
2627
repositories {
2728
sonatype {

0 commit comments

Comments
 (0)