Skip to content

Commit

Permalink
cleanup build file, spotlessCheck runs on check by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyjames committed Mar 6, 2024
1 parent d2a9eba commit 78ffa01
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,12 @@ publishing {
}

spotless {
// comment out below to run spotless as part of the `check` task
enforceCheck false
format 'misc', {
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
target '.gitignore', '*.gradle'
// define the steps to apply to those files
trimTrailingWhitespace()
indentWithSpaces() // Takes an integer argument if you don't like 4
indentWithSpaces()
endWithNewline()
}
java {
Expand All @@ -73,7 +71,3 @@ spotless {
tasks.register('fmt') {
dependsOn 'spotlessApply'
}

tasks.named('check').configure {
dependsOn 'spotlessCheck'
}

0 comments on commit 78ffa01

Please sign in to comment.