Ignore gradle metadata in Mojang's maven repo.

dev/0.11
modmuss50 2022-01-20 20:25:45 +00:00
parent 2c5baf95cb
commit 9e46f0d389
1 changed files with 7 additions and 0 deletions

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