31 lines
669 B
Groovy
31 lines
669 B
Groovy
|
|
spotless {
|
||
|
|
format 'misc', {
|
||
|
|
target '**/*.gradle', '**/*.md', '**/.gitignore'
|
||
|
|
|
||
|
|
trimTrailingWhitespace()
|
||
|
|
indentWithSpaces()
|
||
|
|
endWithNewline()
|
||
|
|
}
|
||
|
|
|
||
|
|
kotlin {
|
||
|
|
target '**/*.kt'
|
||
|
|
|
||
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
||
|
|
trimTrailingWhitespace()
|
||
|
|
indentWithSpaces()
|
||
|
|
endWithNewline()
|
||
|
|
ktfmt().kotlinlangStyle()
|
||
|
|
}
|
||
|
|
|
||
|
|
java {
|
||
|
|
target '**/*.java'
|
||
|
|
|
||
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
||
|
|
trimTrailingWhitespace()
|
||
|
|
indentWithSpaces()
|
||
|
|
endWithNewline()
|
||
|
|
removeUnusedImports()
|
||
|
|
googleJavaFormat().aosp()
|
||
|
|
}
|
||
|
|
}
|