diff options
author | Linnea Gräf <nea@nea.moe> | 2024-06-18 23:34:55 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-06-18 23:34:55 +0200 |
commit | 6064452085b94dfb96b7906d504ab75db51cdf03 (patch) | |
tree | 473ea76a93d29e6a5ef2ea2d66ea053ac409a8e8 | |
parent | 9ec3350c3987df6d30310a8c8ae5e3817e4b8bdc (diff) | |
download | Artifactural-6064452085b94dfb96b7906d504ab75db51cdf03.tar.gz Artifactural-6064452085b94dfb96b7906d504ab75db51cdf03.tar.bz2 Artifactural-6064452085b94dfb96b7906d504ab75db51cdf03.zip |
-rw-r--r-- | src/gradlecomp/java/net/minecraftforge/artifactural/gradle/GradleRepositoryAdapter.java | 3 |
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"); } |