Enable spotless

This commit is contained in:
Blue (Lukas Rieger) 2021-09-19 22:08:48 +02:00
parent b797887e7e
commit 1be8874f5a
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800

View File

@ -4,7 +4,7 @@ plugins {
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'com.github.hierynomus.license' version '0.16.1'
id 'com.palantir.git-version' version '0.12.3'
// id 'com.diffplug.spotless' version '5.14.2'
id 'com.diffplug.spotless' version '5.14.2'
}
allprojects {
@ -65,14 +65,14 @@ subprojects {
}
//spotless {
// java {
// indentWithSpaces()
// trimTrailingWhitespace()
//
// target fileTree(project.rootDir) {
// include '**/*.java'
// exclude '**/build/**'
// }
// }
//}
spotless {
java {
indentWithSpaces()
trimTrailingWhitespace()
target fileTree(project.rootDir) {
include '**/*.java'
exclude '**/build/**'
}
}
}