mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-18 08:05:20 +01:00
30 lines
798 B
Groovy
30 lines
798 B
Groovy
|
apply plugin: "com.diffplug.gradle.spotless"
|
||
|
spotless {
|
||
|
java {
|
||
|
target "**/*.java"
|
||
|
trimTrailingWhitespace()
|
||
|
removeUnusedImports()
|
||
|
googleJavaFormat()
|
||
|
endWithNewline()
|
||
|
}
|
||
|
kotlin {
|
||
|
target "**/*.kt"
|
||
|
ktlint().userData(['indent_size': '4', 'continuation_indent_size': '2', 'disabled_rules': 'no-wildcard-imports'])
|
||
|
licenseHeaderFile '../spotless.license.kt'
|
||
|
trimTrailingWhitespace()
|
||
|
endWithNewline()
|
||
|
}
|
||
|
format 'misc', {
|
||
|
target '**/*.gradle', '**/*.md', '**/.gitignore'
|
||
|
indentWithSpaces()
|
||
|
trimTrailingWhitespace()
|
||
|
endWithNewline()
|
||
|
}
|
||
|
|
||
|
format 'xml', {
|
||
|
target '**/*.xml'
|
||
|
indentWithSpaces()
|
||
|
trimTrailingWhitespace()
|
||
|
endWithNewline()
|
||
|
}
|
||
|
}
|