diff options
author | Linnea Gräf <nea@nea.moe> | 2024-08-11 14:57:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-11 14:57:30 +0200 |
commit | 12f434e64c9dc86ccbd1d120e156eae5ec983026 (patch) | |
tree | 84c5b3a895951a7e23fdd845f0e25d1eb2bcb257 | |
parent | fae0e04865eaad9111d994b7d5810c296ecae371 (diff) | |
download | skyhanni-12f434e64c9dc86ccbd1d120e156eae5ec983026.tar.gz skyhanni-12f434e64c9dc86ccbd1d120e156eae5ec983026.tar.bz2 skyhanni-12f434e64c9dc86ccbd1d120e156eae5ec983026.zip |
Fix generateRepoPatterns task (#2330)
-rw-r--r-- | build.gradle.kts | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index 773c7ac28..e8464ada2 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,6 +3,7 @@ import at.skyhanni.sharedvariables.MultiVersionStage import at.skyhanni.sharedvariables.ProjectTarget import at.skyhanni.sharedvariables.SHVersionInfo import at.skyhanni.sharedvariables.versionString +import net.fabricmc.loom.task.RunGameTask import org.jetbrains.kotlin.gradle.dsl.JvmTarget import org.jetbrains.kotlin.gradle.tasks.KotlinCompile @@ -216,16 +217,10 @@ tasks.processResources { } if (target == ProjectTarget.MAIN) { - val generateRepoPatterns by tasks.creating(JavaExec::class) { + tasks.create("generateRepoPatterns", RunGameTask::class, loom.runs.named("client").get()).apply { javaLauncher.set(javaToolchains.launcherFor(java.toolchain)) - mainClass.set("net.fabricmc.devlaunchinjector.Main") dependsOn(tasks.configureLaunch) - workingDir(project.file(runDirectory)) - classpath(sourceSets.main.map { it.runtimeClasspath }, sourceSets.main.map { it.output }) jvmArgs( - "-Dfabric.dli.config=${project.file(".gradle/loom-cache/launch.cfg").absolutePath}", - "-Dfabric.dli.env=client", - "-Dfabric.dli.main=net.minecraft.launchwrapper.Launch", "-Dorg.lwjgl.opengl.Display.allowSoftwareOpenGL=true", "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006", "-javaagent:${headlessLwjgl.singleFile.absolutePath}", |