mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-01 21:17:46 -05:00
Fix part of #72
That was caused by two places resolving the configurations too early before the mod processing had completed: 1. Forge sources remapper in Loom 2. Architectury plugin's runtime transformer file generation (see architectury/architectury-plugin#25)
This commit is contained in:
@@ -233,6 +233,19 @@ public final class CompileConfiguration {
|
||||
}
|
||||
|
||||
configureDecompileTasks(project);
|
||||
|
||||
if (extension.isForge()) {
|
||||
// TODO: Find a better place for this?
|
||||
// This has to be after dependencyManager.handleDependencies() above
|
||||
// because of https://github.com/architectury/architectury-loom/issues/72.
|
||||
if (!OperatingSystem.isCIBuild()) {
|
||||
try {
|
||||
ForgeSourcesRemapper.addBaseForgeSources(project);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
finalizedBy(p, "idea", "genIdeaWorkspace");
|
||||
@@ -299,15 +312,6 @@ public final class CompileConfiguration {
|
||||
final SrgMinecraftProvider<?> srgMinecraftProvider = jarConfiguration.getSrgMinecraftProviderBiFunction().apply(project, minecraftProvider);
|
||||
extension.setSrgMinecraftProvider(srgMinecraftProvider);
|
||||
srgMinecraftProvider.provide(true);
|
||||
|
||||
// TODO: Find a better place for this?
|
||||
if (!OperatingSystem.isCIBuild()) {
|
||||
try {
|
||||
ForgeSourcesRemapper.addBaseForgeSources(project);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user