From 6064452085b94dfb96b7906d504ab75db51cdf03 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Tue, 18 Jun 2024 23:34:55 +0200 Subject: Add gradle 8.7 support --- .../minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java b/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java index 8b2a536..d7e5123 100644 --- a/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java +++ b/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java @@ -145,6 +145,9 @@ public class GradleRepositoryAdapter extends AbstractArtifactRepository implemen } private static VersionParser getVersionParser(DefaultMavenLocalArtifactRepository maven) { + if (GradleVersion.current().compareTo(GradleVersion.version("8.7")) >= 0) { + return ReflectionUtils.get(ReflectionUtils.get(maven, "repositoryContentDescriptor"), "versionParser"); + } return ReflectionUtils.get(maven, "versionParser"); } -- cgit