aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-06-18 23:34:55 +0200
committerLinnea Gräf <nea@nea.moe>2024-06-18 23:34:55 +0200
commit6064452085b94dfb96b7906d504ab75db51cdf03 (patch)
tree473ea76a93d29e6a5ef2ea2d66ea053ac409a8e8 /src
parent9ec3350c3987df6d30310a8c8ae5e3817e4b8bdc (diff)
downloadArtifactural-6064452085b94dfb96b7906d504ab75db51cdf03.tar.gz
Artifactural-6064452085b94dfb96b7906d504ab75db51cdf03.tar.bz2
Artifactural-6064452085b94dfb96b7906d504ab75db51cdf03.zip
Add gradle 8.7 supportHEAD4.0main
Diffstat (limited to 'src')
-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");
}