Skip to content

Commit

Permalink
Change SignJar output to be marked Internal
Browse files Browse the repository at this point in the history
Signed-off-by: SizableShrimp <[email protected]>
  • Loading branch information
SizableShrimp committed Jun 8, 2023
1 parent 5503d77 commit 651e43f
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -147,7 +149,7 @@ private void writeOutputJar(File signedJar, File outputJar, Map<String, Entry<by
@InputFile
public abstract RegularFileProperty getInputFile();

@OutputFile
@Internal
public abstract RegularFileProperty getOutputFile();

@Input
Expand Down

0 comments on commit 651e43f

Please sign in to comment.