Fallback to maven central for artifacts such as sources or javadocs that are not mirrored on Mojang's repo.

Fixes #1032
This commit is contained in:
modmuss50
2024-02-03 23:30:13 +00:00
parent 8250b509a4
commit b2376a0981

View File

@@ -117,6 +117,10 @@ public class LoomRepositoryPlugin implements Plugin<PluginAware> {
sources.artifact();
sources.ignoreGradleMetadataRedirection();
});
// Fallback to maven central for artifacts such as sources or javadocs that are not mirrored on Mojang's repo.
// See: https://github.com/FabricMC/fabric-loom/issues/1032
repo.artifactUrls(ArtifactRepositoryContainer.MAVEN_CENTRAL_URL);
});
}