diff --git a/src/common/java/net/minecraftforge/gradle/common/tasks/SignJar.java b/src/common/java/net/minecraftforge/gradle/common/tasks/SignJar.java index 83a1e1ebd..d9d4e861b 100644 --- a/src/common/java/net/minecraftforge/gradle/common/tasks/SignJar.java +++ b/src/common/java/net/minecraftforge/gradle/common/tasks/SignJar.java @@ -17,7 +17,6 @@ import org.gradle.api.tasks.InputFile; import org.gradle.api.tasks.Internal; import org.gradle.api.tasks.Optional; -import org.gradle.api.tasks.OutputFile; import org.gradle.api.tasks.TaskAction; import org.gradle.api.tasks.util.PatternFilterable; import org.gradle.api.tasks.util.PatternSet; @@ -26,6 +25,8 @@ import com.google.common.io.ByteStreams; import groovy.lang.Closure; import groovy.util.MapEntry; +import org.gradle.work.DisableCachingByDefault; + import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; @@ -40,6 +41,7 @@ import java.util.zip.ZipFile; @NonNullApi +@DisableCachingByDefault(because = "The output file is often the same as the input file and we have to work around Gradle 8 behavior by not marking the output file as an output") public abstract class SignJar extends DefaultTask implements PatternFilterable { private final PatternSet patternSet = new PatternSet(); @TaskAction @@ -147,7 +149,7 @@ private void writeOutputJar(File signedJar, File outputJar, Map