Skip to content

Commit

Permalink
Actually updated LWJGL
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Oct 17, 2024
1 parent 5afce9d commit 61ecfab
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 17 deletions.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ blossom {
}

repositories {
maven("https://repo.polyfrost.cc/releases")
maven("https://repo.polyfrost.org/releases")
maven("https://repo.polyfrost.org/snapshots")
}

val relocated = registerRelocationAttribute("relocate") {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ deencapsulation = "42b829f373"
caffeine = "2.9.3"
mixin = "0.7.11-SNAPSHOT"

lwjgl = "1.0.0-alpha26"
lwjgl = "1.0.0-alpha29"
fabric-asm = "v2.3"

[libraries]
Expand Down
22 changes: 7 additions & 15 deletions versions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@ loom {
}

repositories {
maven("https://repo.polyfrost.cc/releases")
maven("https://repo.polyfrost.org/releases")
maven("https://repo.polyfrost.org/snapshots")
}

val relocatedCommonProject = registerRelocationAttribute("common-lwjgl") {
Expand Down Expand Up @@ -165,20 +166,11 @@ dependencies {
}
}

val repackedVersions = when (platform.mcVersion) {
in 10809..11202 -> listOf(RepackedVersion.LEGACY)
in 11203..11802 -> listOf(RepackedVersion.PRE119NOARM, RepackedVersion.PRE119ARM)
else -> listOf(RepackedVersion.POST119)
}

repackedVersions.forEachIndexed { index, version ->
val configuration = configurations.create("tempLwjglConfiguration$index")

compileOnly(configuration("cc.polyfrost:lwjgl-$version:${libs.versions.lwjgl.get()}"){
isTransitive = false
})
shadeNoPom(implementationNoPom(prebundle(configuration, "lwjgl-$version.jar"))!!)
}
val configuration = configurations.create("tempLwjglConfiguration0")
compileOnly(configuration("cc.polyfrost:lwjgl-legacy:${libs.versions.lwjgl.get()}") {
isTransitive = false
})
shadeNoPom(implementationNoPom(prebundle(configuration, "lwjgl-legacy.jar"))!!)

modRuntimeOnly("me.djtheredstoner:DevAuth-" +
(if (platform.isForge) { if (platform.isLegacyForge) "forge-legacy" else "forge-latest" } else "fabric")
Expand Down

0 comments on commit 61ecfab

Please sign in to comment.