generated from yahyatinani/jetpack-compose-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
36 lines (34 loc) · 904 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
plugins {
alias(deps.plugins.spotless)
alias(deps.plugins.androidApplication) apply false
alias(deps.plugins.kotlin.jvm) apply false
alias(deps.plugins.kotlin.serialization) apply false
}
spotless {
groovyGradle {
target("**/*.gradle")
trimTrailingWhitespace()
endWithNewline()
greclipse().configFile("./greclipse.properties")
}
val config = mapOf(
"indent_size" to "2",
"max_line_length" to "80",
"indent_style" to "space",
"charset" to "utf-8",
"end_of_line" to "lf",
"disabled_rules" to "filename,enum-entry-name-case,annotation",
"trim_trailing_whitespace" to "true",
"insert_final_newline" to "true"
)
kotlin {
target("**/*.kt")
targetExclude("buildSrc/build/")
ktlint().editorConfigOverride(config)
trimTrailingWhitespace()
endWithNewline()
}
kotlinGradle {
ktlint().editorConfigOverride(config)
}
}