From dae525d51c0811f69f3087b38f24fa9053a31d36 Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Sun, 11 Aug 2024 14:53:44 +0200 Subject: [PATCH] Disable caching of some Spotless tasks due to negative avoidance savings --- .../kotlin/junitbuild.spotless-conventions.gradle.kts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts b/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts index b0b9cfc9314d..362e883b2d83 100644 --- a/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts +++ b/gradle/plugins/common/src/main/kotlin/junitbuild.spotless-conventions.gradle.kts @@ -48,3 +48,12 @@ spotless { } } } + +tasks { + named("spotlessDocumentation") { + outputs.doNotCacheIf("negative avoidance savings") { true } + } + named("spotlessMisc") { + outputs.doNotCacheIf("negative avoidance savings") { true } + } +}