aboutsummaryrefslogtreecommitdiff
path: root/src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java')
-rw-r--r--src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java3
1 files changed, 3 insertions, 0 deletions
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");
}