From 879793f3fc9aa7141ce2f8d6844eec0c9c0f1f1c Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 8 Jan 2025 19:49:53 +0100 Subject: build: Make run config generate --- mod/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/build.gradle.kts b/mod/build.gradle.kts index 10f01e1..a989fa5 100644 --- a/mod/build.gradle.kts +++ b/mod/build.gradle.kts @@ -30,6 +30,7 @@ loom { log4jConfigs.from(file("log4j2.xml")) runConfigs { "client" { + isIdeConfigGenerated = true property("ledger.bonusresourcemod", sourceSets.main.get().output.resourcesDir!!.absolutePath) property("mixin.debug", "true") programArgs("--tweakClass", "org.spongepowered.asm.launch.MixinTweaker") @@ -162,6 +163,10 @@ tasks.jar { destinationDirectory.set(layout.buildDirectory.dir("badjars")) } +tasks.runClient { + javaLauncher.set(javaToolchains.launcherFor(java.toolchain)) +} + tasks.assemble.get().dependsOn(tasks.remapJar) buildConfig { -- cgit