From 1be8874f5a7b45f7572c5fce1d615db714dba5f4 Mon Sep 17 00:00:00 2001 From: "Blue (Lukas Rieger)" Date: Sun, 19 Sep 2021 22:08:48 +0200 Subject: [PATCH] Enable spotless --- build.gradle | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/build.gradle b/build.gradle index 66183c4f..409bc52c 100644 --- a/build.gradle +++ b/build.gradle @@ -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/**' + } + } +}