-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
31 lines (28 loc) · 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
import com.diffplug.gradle.spotless.SpotlessExtension
import com.diffplug.gradle.spotless.SpotlessPlugin
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.compose.multiplatform) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.spotless) apply false
alias(libs.plugins.maven.publish)
}
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,
),
)
}
}
}