mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 05:27:43 -05:00
Ignore gradle metadata in Mojang's maven repo.
This commit is contained in:
@@ -70,6 +70,13 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
|
||||
repositories.maven(repo -> {
|
||||
repo.setName("Mojang");
|
||||
repo.setUrl(MirrorUtil.getLibrariesBase(target));
|
||||
|
||||
// Don't use the gradle module metadata. It has unintended side effects.
|
||||
repo.metadataSources(sources -> {
|
||||
sources.mavenPom();
|
||||
sources.artifact();
|
||||
sources.ignoreGradleMetadataRedirection();
|
||||
});
|
||||
});
|
||||
repositories.mavenCentral();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user