Skip to content

Commit

Permalink
spotlessの設定を追加 #19
Browse files Browse the repository at this point in the history
  • Loading branch information
jiro4989 committed Nov 24, 2021
1 parent 1d89308 commit dc8748a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,21 @@ task versionSet(type: Copy) {
expand(version: version, commitHash: commitHash)
}

spotless {
java {
googleJavaFormat('1.13.0')

trimTrailingWhitespace()
endWithNewline()
removeUnusedImports()
}

// groovyGradle {
// target '*.gradle'
// greclipse().configFile("$rootDir/greclipse.properties")
// }
}

// 実行順序の明示
// clean -> spotlessApply (code format) -> [ versionSet -> compileJava | test ]
spotlessApply.dependsOn(['clean'])
Expand Down

0 comments on commit dc8748a

Please sign in to comment.