-
Notifications
You must be signed in to change notification settings - Fork 83
/
build.gradle.kts
42 lines (35 loc) · 1.1 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
42
/*
* Copyright 2021 Readium Foundation. All rights reserved.
* Use of this source code is governed by the BSD-style license
* available in the top-level LICENSE file of the project.
*/
import org.jetbrains.dokka.gradle.DokkaTaskPartial
plugins {
alias(libs.plugins.dokka)
alias(libs.plugins.ktlint)
alias(libs.plugins.compose.compiler) apply false
}
subprojects {
if (name != "test-app") {
apply(plugin = "org.jetbrains.dokka")
}
apply(plugin = "org.jlleitschuh.gradle.ktlint")
ktlint {
android.set(true)
}
}
tasks.register("cleanDocs", Delete::class).configure {
delete("${project.rootDir}/docs/readium", "${project.rootDir}/docs/index.md", "${project.rootDir}/site")
}
tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets {
configureEach {
reportUndocumented.set(false)
skipEmptyPackages.set(false)
skipDeprecated.set(true)
}
}
}
tasks.named<org.jetbrains.dokka.gradle.DokkaMultiModuleTask>("dokkaGfmMultiModule").configure {
outputDirectory.set(file("${projectDir.path}/docs"))
}