mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-04-02 13:37:45 -05:00
Fix checkstyle
This commit is contained in:
@@ -78,10 +78,12 @@ public final class CompileConfiguration {
|
||||
addMavenRepo(project, "Forge", "https://files.minecraftforge.net/maven/", repo -> {
|
||||
repo.metadataSources(sources -> {
|
||||
sources.mavenPom();
|
||||
|
||||
try {
|
||||
MavenArtifactRepository.MetadataSources.class.getDeclaredMethod("ignoreGradleMetadataRedirection")
|
||||
.invoke(sources);
|
||||
} catch (Throwable ignored) {
|
||||
// Method not available
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user