Skip to content

Commit

Permalink
Update proguard task to latest gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed May 29, 2021
1 parent 46c6448 commit 9028420
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions buildSrc/src/main/java/baritone/gradle/task/ProguardTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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());
}

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 9028420

Please sign in to comment.