From 874fe38d3aa06ff38b95f97bfceee86fb31bc622 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Thu, 14 Dec 2023 18:43:36 +0100 Subject: [PATCH] Disable Caching for ArtifactFromOutput, since all it does is copy a file, which is the same as the cache restore would do. --- .../net/neoforged/gradle/common/tasks/ArtifactFromOutput.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/net/neoforged/gradle/common/tasks/ArtifactFromOutput.java b/common/src/main/java/net/neoforged/gradle/common/tasks/ArtifactFromOutput.java index 80097ee6c..a204eea50 100644 --- a/common/src/main/java/net/neoforged/gradle/common/tasks/ArtifactFromOutput.java +++ b/common/src/main/java/net/neoforged/gradle/common/tasks/ArtifactFromOutput.java @@ -5,8 +5,9 @@ import org.apache.commons.io.FileUtils; import org.gradle.api.file.RegularFileProperty; import org.gradle.api.tasks.*; +import org.gradle.work.DisableCachingByDefault; -@CacheableTask +@DisableCachingByDefault(because = "a simple file-copy is not worthwhile to cache") public abstract class ArtifactFromOutput extends NeoGradleBase implements WithOutput { public ArtifactFromOutput() {