-
Notifications
You must be signed in to change notification settings - Fork 34
/
build.gradle.kts
29 lines (25 loc) · 928 Bytes
/
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
import org.jetbrains.dokka.gradle.DokkaMultiModuleTask
import org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask
plugins {
alias(libs.plugins.kotlinBinaryCompatibilityValidator)
id("org.jetbrains.dokka")
}
apiValidation {
// https://github.com/Kotlin/binary-compatibility-validator/issues/3
project("samples").subprojects.mapTo(ignoredProjects) { it.name }
project("test").subprojects.mapTo(ignoredProjects) { it.name }
}
tasks.withType<DokkaMultiModuleTask>().configureEach {
outputDirectory.set(rootProject.rootDir.resolve("docs/api"))
pluginsMapConfiguration.set(
mapOf(
"org.jetbrains.dokka.base.DokkaBase" to """{
"footerMessage": "Copyright © 2017 AJ Alt"
}"""
)
)
}
// https://youtrack.jetbrains.com/issue/KT-63014
tasks.withType<KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}