Allow specifying multiple accesstransformers

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-06-30 19:26:03 +08:00
parent f49f0201c3
commit 9729933433
2 changed files with 29 additions and 19 deletions

View File

@@ -87,7 +87,7 @@ public class LoomGradleExtension {
public boolean remapMod = true;
public String customManifest = null;
public File accessWidener = null;
public File accessTransformer = null;
public Set<File> accessTransformers = new HashSet<>();
public Function<String, Object> intermediaryUrl = mcVer -> "https://maven.fabricmc.net/net/fabricmc/intermediary/" + mcVer + "/intermediary-" + mcVer + "-v2.jar";
public boolean shareCaches = false;
public List<String> mixinConfigs = new ArrayList<>(); // FORGE: Passed to Minecraft
@@ -282,7 +282,7 @@ public class LoomGradleExtension {
}
public void accessTransformer(Object file) {
this.accessTransformer = project.file(file);
this.accessTransformers.add(project.file(file));
}
public File getUserCache() {