-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
39 lines (35 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
33
34
35
36
37
38
39
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
dependencies {
classpath(libs.android.gradle.plugin)
classpath(libs.kotlin.gradle.plugin)
classpath(libs.dokka.plugin)
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.spotless)
alias(libs.plugins.mavenPublish) apply false
}
spotless {
kotlin {
target("**/*.kt")
targetExclude("**/build/**/*.kt")
ktlint(libs.versions.ktlint.get()).userData(
mapOf(
"android" to "true",
"disabled_rules" to "no-wildcard-imports",
)
).editorConfigOverride(
mapOf("max_line_length" to "off")
)
trimTrailingWhitespace()
indentWithSpaces()
}
kotlinGradle {
target("**/*.gradle.kts")
targetExclude("**/build/**/*.kts")
ktlint()
}
}