aboutsummaryrefslogtreecommitdiff
path: root/src/gradlecomp/java/net/minecraftforge/artifactural
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/gradlecomp/java/net/minecraftforge/artifactural
parent9ec3350c3987df6d30310a8c8ae5e3817e4b8bdc (diff)
downloadArtifactural-main.tar.gz
Artifactural-main.tar.bz2
Artifactural-main.zip
Add gradle 8.7 supportHEAD4.0main
Diffstat (limited to 'src/gradlecomp/java/net/minecraftforge/artifactural')
-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");
}