From 902842060f5d9b0a05bb25f5d85743b55668858b Mon Sep 17 00:00:00 2001 From: Pyrofab Date: Sat, 29 May 2021 19:14:51 +0200 Subject: [PATCH] Update proguard task to latest gradle --- .../java/baritone/gradle/task/ProguardTask.java | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/java/baritone/gradle/task/ProguardTask.java b/buildSrc/src/main/java/baritone/gradle/task/ProguardTask.java index 6681c08e..314d6ac0 100644 --- a/buildSrc/src/main/java/baritone/gradle/task/ProguardTask.java +++ b/buildSrc/src/main/java/baritone/gradle/task/ProguardTask.java @@ -26,7 +26,12 @@ import org.gradle.api.tasks.TaskAction; import org.gradle.jvm.tasks.Jar; -import java.io.*; +import java.io.BufferedReader; +import java.io.File; +import java.io.IOException; +import java.io.InputStream; +import java.io.InputStreamReader; +import java.io.PrintStream; import java.net.URL; import java.nio.file.Files; import java.nio.file.Path; @@ -107,7 +112,7 @@ private void extractProguard() throws Exception { } } - protected Path getProguardConfigFile() { + private Path getProguardConfigFile() { return Paths.get(new File(this.getProject().getProjectDir(), ProguardTask.PROGUARD_CONFIG_TEMPLATE).getAbsolutePath()); } @@ -141,6 +146,14 @@ private void cleanup() { } } + public String getUrl() { + return url; + } + + public String getExtract() { + return extract; + } + public void setUrl(String url) { this.url = url; }