From 89de874efbc3369097e03b85493f4a3beb8e1a44 Mon Sep 17 00:00:00 2001 From: Ben Liblit Date: Sat, 22 Apr 2023 17:44:27 -0400 Subject: [PATCH] Work around Spotless conflict with Gradle configuration cache --- build.gradle.kts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index d5fd6b12de..fc22e774f2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,7 @@ // plugin configuration must precede everything else // +import com.diffplug.spotless.LineEnding.PLATFORM_NATIVE import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask buildscript { dependencies.classpath(libs.commons.io) } @@ -99,6 +100,11 @@ shellcheck { tasks.named("shellcheck") { group = "verification" } +// Workaround for +// using idea found at +// . +spotless.lineEndings = PLATFORM_NATIVE + // install Java reformatter as git pre-commit hook tasks.register("installGitHooks") { from("config/hooks/pre-commit-stub")