home-cert-assistant/gradle/spotless.gradle
CybAtax 56d6b8694a
🎨 Add spotless formatting (#2)
* 🎨 Add spotless formatting

* 🚧 Add formatting check

* 🚧 Fix workflow label, Add build workflow

* 🛠️ Fix typos

* 🏃 Make binaries ~run~executable

* 🔧 Fix step name
2024-11-17 19:25:32 +01:00

14 lines
No EOL
352 B
Groovy

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')
}
}