From 6890cb4d940e469aa7ebb1320d2a63246c71ecdf Mon Sep 17 00:00:00 2001 From: Su5eD Date: Sun, 9 Jun 2024 15:42:08 +0200 Subject: [PATCH] Update to 1.21-pre4 --- build.gradle.kts | 33 +++++++++++++++++++++------------ gradle.properties | 6 +++--- 2 files changed, 24 insertions(+), 15 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index d57236e..3f73421 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -81,6 +81,14 @@ repositories { name = "NeoForged" url = uri("https://maven.neoforged.net/releases") } + maven { + name = "Maven for PR #1076" // https://github.com/neoforged/NeoForge/pull/1076 + url = uri("https://prmaven.neoforged.net/NeoForge/pr1076") + content { + includeModule("net.neoforged", "testframework") + includeModule("net.neoforged", "neoforge") + } + } } dependencies { @@ -105,18 +113,19 @@ val downloadMojmaps by tasks.registering { doLast { val cache = project.layout.buildDirectory.dir("tmp/$name").get() - val provider = MinecraftMetadataProvider::class.java.declaredConstructors[0].apply { isAccessible = true }.newInstance( - MinecraftMetadataProvider.Options( - versionMc, - Constants.VERSION_MANIFESTS, - Constants.EXPERIMENTAL_VERSIONS, - null, - cache.file("version_manifest.json").asFile.toPath(), - cache.file("experimental_version_manifest.json").asFile.toPath(), - cache.file("minecraft-info.json").asFile.toPath() - ), - Function { Download.create(it) } - ) as MinecraftMetadataProvider + val provider = + MinecraftMetadataProvider::class.java.declaredConstructors[0].apply { isAccessible = true }.newInstance( + MinecraftMetadataProvider.Options( + versionMc, + Constants.VERSION_MANIFESTS, + Constants.EXPERIMENTAL_VERSIONS, + null, + cache.file("version_manifest.json").asFile.toPath(), + cache.file("experimental_version_manifest.json").asFile.toPath(), + cache.file("minecraft-info.json").asFile.toPath() + ), + Function { Download.create(it) } + ) as MinecraftMetadataProvider val clientMappingsPath = cache.file("mojang/client.txt").asFile.toPath() val serverMappingsPath = cache.file("mojang/server.txt").asFile.toPath() diff --git a/gradle.properties b/gradle.properties index d4993df..1e64c1d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ # This is required to provide enough memory for the Minecraft decompilation process. org.gradle.jvmargs=-Xmx3G -versionMc=1.20.6 -versionForge=20.6.63-beta +versionMc=1.21-pre4 +versionForge=21.0.0-alpha.1.21-pre4.20240609.093716 versionLoaderUpstream=0.15.10 -versionYarn=1.20.6+build.1 \ No newline at end of file +versionYarn=1.21-pre4+build.3 \ No newline at end of file