Ignore gradle metadata in Mojang's maven repo.

This commit is contained in:
modmuss50 2022-01-20 20:25:45 +00:00
parent 2c5baf95cb
commit 9e46f0d389

View file

@ -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();