-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
36 lines (32 loc) · 1.13 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
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.gradle.spotless.SpotlessPlugin
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.publish)
alias(libs.plugins.dokka)
}
subprojects {
apply<SpotlessPlugin>()
extensions.configure<SpotlessExtension> {
kotlin {
target("**/*.kt")
val ktlintVersion = libs.versions.ktlint.get()
targetExclude("**/build/**/*.kt")
ktlint(ktlintVersion)
.editorConfigOverride(
mapOf(
"ktlint_code_style" to "android",
"ij_kotlin_allow_trailing_comma" to true,
"ij_kotlin_allow_trailing_comma_on_call_site" to true,
),
)
}
}
}
tasks.dokkaHtmlMultiModule {
moduleVersion.set("1.0.0-alpha01")
outputDirectory.set(rootDir.resolve("docs"))
}