Add -Dloom.refresh=true option ()

* Add -Dloom.refresh=true option

* Use Boolean.getBoolean
This commit is contained in:
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

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