From c6f51f1dd282b6d2f26f7cecfc3b0bcfe369b0ca Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 28 Sep 2021 19:18:08 +0800 Subject: [PATCH] Add -Dloom.refresh=true option (#508) * Add -Dloom.refresh=true option * Use Boolean.getBoolean --- src/main/java/net/fabricmc/loom/LoomGradlePlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java b/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java index e5545b2..63e6e87 100644 --- a/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java +++ b/src/main/java/net/fabricmc/loom/LoomGradlePlugin.java @@ -64,7 +64,7 @@ public class LoomGradlePlugin implements BootstrappedPlugin { public void apply(Project project) { project.getLogger().lifecycle("Fabric Loom: " + LOOM_VERSION); - refreshDeps = project.getGradle().getStartParameter().isRefreshDependencies(); + refreshDeps = project.getGradle().getStartParameter().isRefreshDependencies() || Boolean.getBoolean("loom.refresh"); if (refreshDeps) { project.getLogger().lifecycle("Refresh dependencies is in use, loom will be significantly slower.");