-
-
Notifications
You must be signed in to change notification settings - Fork 45
/
build.gradle.kts
32 lines (27 loc) · 1019 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
30
31
32
import org.jetbrains.dokka.gradle.DokkaTaskPartial
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.jetbrainsKotlinAndroid) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.jetbrainsDokka)
id("maven-publish")
id("org.jlleitschuh.gradle.ktlint") version "12.1.1" apply true
}
rootProject.ext["PUBLISH_GROUP_ID"] = "com.github.shogo4405"
rootProject.ext["PUBLISH_VERSION"] = "0.14.1"
subprojects {
apply(plugin = "org.jlleitschuh.gradle.ktlint")
tasks.withType<DokkaTaskPartial>().configureEach {
dokkaSourceSets.configureEach {
val moduleDocsFile = "module-docs.md"
if (file(moduleDocsFile).exists()) {
includes.from(moduleDocsFile)
}
}
}
}
tasks.dokkaHtmlMultiModule.configure {
outputDirectory.set(File("docs"))
includes.from("README.md")
}