Skip to content

Commit

Permalink
fix lwjgl on legacy
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Jun 29, 2024
1 parent d210e7f commit 4cc90e2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion versions/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Shared build logic for all versions of OneConfig.

import org.polyfrost.gradle.util.noServerRunConfigs
import org.polyfrost.gradle.util.prebundle
import java.text.SimpleDateFormat

plugins {
Expand Down Expand Up @@ -53,7 +54,9 @@ dependencies {
modApi("org.polyfrost:universalcraft-$platform:${libs.versions.universalcraft.get()}")

if (platform.isLegacyForge || platform.isLegacyFabric) {
implementation(project(":modules:dependencies:legacy"))
val configuration = configurations.create("tempLwjglConfigurationLegacy")
implementation(configuration(project(":modules:dependencies:legacy")) {})
implementationNoPom(prebundle(configuration, "lwjgl-legacy.jar"))
} else {
implementation(project(":modules:dependencies:modern"))
}
Expand Down

0 comments on commit 4cc90e2

Please sign in to comment.