blob: da7b382e312bc1b3309b8671392ee09ad2ede3bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import org.jetbrains.dokka.DokkaConfiguration.Visibility
import org.jetbrains.dokka.gradle.DokkaTaskPartial
plugins {
kotlin("jvm")
id("org.jetbrains.dokka")
}
// You can apply and configure Dokka in each subproject
// individially or configure all subprojects at once
subprojects {
apply(plugin = "org.jetbrains.dokka")
tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets.configureEach {
documentedVisibilities.set(setOf(
Visibility.PUBLIC,
Visibility.PROTECTED
))
}
}
}
// Configures only the parent MultiModule task,
// this will not affect subprojects
tasks.dokkaHtmlMultiModule {
moduleName.set("Dokka MultiModule Example")
}
|