Skip to content

Commit 3bbbda4

Browse files
authored
Force Mavenizer to ignore cache on --refresh-dependencies, closes #1044 (#1070)
1 parent d77df5a commit 3bbbda4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/net/minecraftforge/gradle/internal/MinecraftExtensionImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,9 @@ public MavenizerInstance dependency(
418418
"--output-json", outputJson.getAbsolutePath()
419419
));
420420

421+
if (getProject().getGradle().getStartParameter().isRefreshDependencies())
422+
ret.add("--ignore-cache");
423+
421424
// If we are finding the access transformer from sourcesets, just find from any source set
422425
// We can't filter by configurations becase the config cache doesn't like that.
423426
// So if users fuck up, then we can output a warning, or they can manually set the AT file.

0 commit comments

Comments
 (0)