31 lines
639 B
Groovy
31 lines
639 B
Groovy
spotless {
|
|
ratchetFrom 'origin/development'
|
|
|
|
format 'misc', {
|
|
target '**/*.gradle', '**/*.md', '**/.gitignore'
|
|
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces()
|
|
endWithNewline()
|
|
}
|
|
|
|
kotlin {
|
|
target '**/*.kt'
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces()
|
|
endWithNewline()
|
|
}
|
|
|
|
java {
|
|
target '**/*.java'
|
|
|
|
licenseHeaderFile rootProject.file('spotless.license')
|
|
trimTrailingWhitespace()
|
|
indentWithSpaces()
|
|
endWithNewline()
|
|
removeUnusedImports()
|
|
}
|
|
}
|