🎨 Add spotless formatting
This commit is contained in:
parent
e75ac48743
commit
de7b7c3b02
3 changed files with 26 additions and 0 deletions
14
gradle/spotless.gradle
Normal file
14
gradle/spotless.gradle
Normal file
|
@ -0,0 +1,14 @@
|
|||
import java.nio.charset.StandardCharsets
|
||||
|
||||
spotless {
|
||||
enforceCheck(false)
|
||||
ratchetFrom "origin/main"
|
||||
|
||||
java {
|
||||
target "src/**/java/**/*.java"
|
||||
encoding(StandardCharsets.UTF_8)
|
||||
removeUnusedImports()
|
||||
prettier(['prettier': '3.0.3', 'prettier-plugin-java': '2.3.0'])
|
||||
.configFile('.prettierrc.yml')
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue