Skip to content

Commit e6415fe

Browse files
authored
Change local Mavenizer repo output directory (#1046)
Now outputs in `.gradle` instead of `build`, to allow for conventional task invocations such as `gradlew clean build`
1 parent 89d0364 commit e6415fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static void register(
9292
@Inject
9393
public MinecraftExtensionImpl(ForgeGradlePlugin plugin) {
9494
this.plugin = plugin;
95-
this.mavenizerOutput.convention(plugin.localCaches().dir("mavenizer/output").map(this.problems.ensureFileLocation()));
95+
this.mavenizerOutput.convention(plugin.rootProjectDirectory().dir(".gradle/mavenizer/repo").map(this.problems.ensureFileLocation()));
9696
}
9797

9898
@Override
@@ -393,7 +393,7 @@ public MavenizerInstance dependency(
393393
var minecraftDependency = this.getObjects().newInstance(MinecraftDependencyImpl.class, this.getMavenizerOutput());
394394
this.minecraftDependencies.add(minecraftDependency);
395395
var dep = minecraftDependency.init(value, closure);
396-
var outputJson = this.plugin.localCaches().file("mavenizer/" + name + ".json").get().getAsFile();
396+
var outputJson = this.plugin.rootProjectDirectory().file(".gradle/mavenizer/dependencies/" + name + ".json").get().getAsFile();
397397

398398
var mavenizer = this.getProviders().of(MavenizerValueSource.class, spec -> {
399399
spec.parameters(params -> {

0 commit comments

Comments
 (0)