[build] Add Spotless for JSON (#4956)

This commit is contained in:
Starlight220
2023-01-16 18:26:46 +02:00
committed by GitHub
parent 5cb0340a8c
commit bd6479dc29
19 changed files with 1054 additions and 912 deletions

View File

@@ -41,6 +41,14 @@ if (!project.hasProperty('skipJavaFormat')) {
trimTrailingWhitespace()
endWithNewline()
}
json {
target fileTree('.') {
include '**/*.json'
exclude '**/build/**', '**/build-*/**'
}
gson()
.indentWithSpaces(2)
}
format 'xml', {
target fileTree('.') {
include '**/*.xml'