Switch to stable lwjgl 3.4.0 (#303)

This commit is contained in:
Raven Szewczyk authored and GitHub committed 2026-01-21 21:11:19 +00:00
1 parent aea6999d99
commit fa66981180
5 files changed
+33 -6

No files matched your search

+5
View File
@@ -234,6 +234,11 @@ val mmcInstanceFilesZip = tasks.register<MmcZip>("mmcInstanceFiles") {
)
)
}
filesMatching("patches/net.minecraft.json") {
filter {
it.replace("\${lwjglVersion}", lwjglVersion)
}
}
}
val versionJsonPath = layout.buildDirectory.file("libs/version.json").get().asFile
@@ -161,7 +161,9 @@ abstract class Lwjgl3JsonMaker : DefaultTask() {
val downloadUrl = if (urlVersion.contains("-SNAPSHOT")) {
"https://nexus.gtnewhorizons.com/repository/central-sonatype-snapshots/org/lwjgl/${artifact}/${urlVersion}/${artifact}-${fileVersion}${dashClassifier}.jar"
} else {
"https://libraries.minecraft.net/org/lwjgl/${artifact}/${urlVersion}/${artifact}-${fileVersion}${dashClassifier}.jar"
// "https://libraries.minecraft.net/org/lwjgl/${artifact}/${urlVersion}/${artifact}-${fileVersion}${dashClassifier}.jar"
// "https://build.lwjgl.org/release/${urlVersion}/bin/${artifact}/${artifact}${dashClassifier}.jar"
"https://repo1.maven.org/maven2/org/lwjgl/${artifact}/${urlVersion}/${artifact}-${fileVersion}${dashClassifier}.jar"
}
val outObj = mutableMapOf(
"downloads" to JsonObject(
+23 -3
View File
@@ -42,14 +42,34 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
developmentEnvironmentUserName = Developer
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8.
# See https://github.com/bsideup/jabel for details on how this works.
enableModernJavaSyntax = true
# Enables modern Java syntax support. Valid values:
# - false: No modern syntax, Java 8 only
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
# - modern: Native modern Java bytecode, no downgrading
enableModernJavaSyntax = jabel
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
# and should *not* be used in most situations. -1 disables this.
# forceToolchainVersion = -1
# Target JVM version for JVM Downgrader bytecode downgrading.
# Only used when enableModernJavaSyntax = jvmDowngrader
# downgradeTargetVersion = 8
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
# Classes will be available in META-INF/versions/N/ for each version N in this list.
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
# jvmDowngraderMultiReleaseVersions = 21,25
# Specifies how JVM Downgrader API stubs are provided. Options:
# - shade: Shade minimized stubs into the jar
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
# - external: Another dependency provides stubs (no constraint, no warning)
# - (empty): Warning reminding you to configure stubs
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
# jvmDowngraderStubsProvider =
# Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
enableGenericInjection = false
+1 -1
View File
@@ -2,7 +2,7 @@
# https://asm.ow2.io/versions.html
asm = "9.9.1"
# https://central.sonatype.com/repository/maven-snapshots/org/lwjgl/lwjgl/3.4.0-SNAPSHOT/maven-metadata.xml
lwjgl = "3.4.0-20260101.224815-9"
lwjgl = "3.4.0"
[libraries]
asm = { module = "org.ow2.asm:asm", version.ref = "asm" }
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
}
plugins {
id("com.gtnewhorizons.gtnhsettingsconvention") version("2.0.7")
id("com.gtnewhorizons.gtnhsettingsconvention") version("2.0.16")
}
rootProject.name = "lwjgl3ify"