-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
41 lines (35 loc) · 1.11 KB
/
build.gradle.kts
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
29
30
31
32
33
34
35
36
37
38
39
40
41
import org.jetbrains.dokka.DokkaConfiguration.Visibility.*
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.dokka.gradle.DokkaTaskPartial
plugins {
id("org.jetbrains.dokka") version "1.9.20"
kotlin("jvm")
}
buildscript {
dependencies {
classpath("org.jetbrains.dokka:dokka-base:1.9.20")
}
}
subprojects {
apply(plugin = "org.jetbrains.dokka")
tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets.configureEach {
sourceRoots.from(file("src/main/kotlin"))
sourceRoots.from(file("src/main/java"))
includeNonPublic.set(true)
documentedVisibilities.set(setOf(PUBLIC, PROTECTED, PRIVATE))
}
}
}
repositories {
mavenCentral()
}
tasks.withType<DokkaMultiModuleTask> {
outputDirectory.set(layout.projectDirectory.dir("docs"))
pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
customAssets = listOf(file("docs/logo-icon.svg"))
footerMessage = "(c) 2024 Tecknobit"
}
}