Add -Dloom.refresh=true option (#508)

* Add -Dloom.refresh=true option

* Use Boolean.getBoolean
dev/0.11
shedaniel 2021-09-28 19:18:08 +08:00 committed by GitHub
parent 676a498e0c
commit c6f51f1dd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.");