Ignore gradle metadata in Mojang's maven repo.
parent
2c5baf95cb
commit
9e46f0d389
|
@ -70,6 +70,13 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
|
||||||
repositories.maven(repo -> {
|
repositories.maven(repo -> {
|
||||||
repo.setName("Mojang");
|
repo.setName("Mojang");
|
||||||
repo.setUrl(MirrorUtil.getLibrariesBase(target));
|
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();
|
repositories.mavenCentral();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue