From 72a9f494f31873f775496b4a1c4fd472fbbbd0a5 Mon Sep 17 00:00:00 2001 From: Jerome Prinet Date: Tue, 29 Nov 2022 16:40:43 +0100 Subject: [PATCH] Document that SystemTestPlugin output should never be cached See gh-33411 --- .../org/springframework/boot/build/test/SystemTestPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/buildSrc/src/main/java/org/springframework/boot/build/test/SystemTestPlugin.java b/buildSrc/src/main/java/org/springframework/boot/build/test/SystemTestPlugin.java index 242c4938ae..777e94fafc 100644 --- a/buildSrc/src/main/java/org/springframework/boot/build/test/SystemTestPlugin.java +++ b/buildSrc/src/main/java/org/springframework/boot/build/test/SystemTestPlugin.java @@ -84,6 +84,7 @@ public class SystemTestPlugin implements Plugin { systemTest.shouldRunAfter(JavaPlugin.TEST_TASK_NAME); if (isCi()) { systemTest.getOutputs().upToDateWhen(NEVER); + systemTest.getOutputs().doNotCacheIf("System tests are always rerun on CI", (task) -> true); } }