Add -Dloom.refresh=true option (#508)
* Add -Dloom.refresh=true option * Use Boolean.getBooleandev/0.11
parent
676a498e0c
commit
c6f51f1dd2
|
@ -64,7 +64,7 @@ public class LoomGradlePlugin implements BootstrappedPlugin {
|
||||||
public void apply(Project project) {
|
public void apply(Project project) {
|
||||||
project.getLogger().lifecycle("Fabric Loom: " + LOOM_VERSION);
|
project.getLogger().lifecycle("Fabric Loom: " + LOOM_VERSION);
|
||||||
|
|
||||||
refreshDeps = project.getGradle().getStartParameter().isRefreshDependencies();
|
refreshDeps = project.getGradle().getStartParameter().isRefreshDependencies() || Boolean.getBoolean("loom.refresh");
|
||||||
|
|
||||||
if (refreshDeps) {
|
if (refreshDeps) {
|
||||||
project.getLogger().lifecycle("Refresh dependencies is in use, loom will be significantly slower.");
|
project.getLogger().lifecycle("Refresh dependencies is in use, loom will be significantly slower.");
|
||||||
|
|
Loading…
Reference in New Issue