Small cleanup + Use MappingsUtils for reordering

Signed-off-by: shedaniel <daniel@shedaniel.me>
This commit is contained in:
shedaniel
2021-05-08 19:15:21 +08:00
parent 017e09cf52
commit 9d19ab4c2e
5 changed files with 14 additions and 12 deletions

View File

@@ -57,7 +57,7 @@ public class LoomGradlePlugin implements Plugin<Project> {
project.getLogger().lifecycle("Architectury Loom: " + loomVersion);
}
refreshDeps = project.getGradle().getStartParameter().isRefreshDependencies();
refreshDeps = project.getGradle().getStartParameter().isRefreshDependencies() || "true".equals(System.getProperty("loom.refresh"));
if (refreshDeps) {
MappingsCache.INSTANCE.invalidate();