Add viaproxy jvm flags

This commit is contained in:
Nassim Jahnke 2024-10-30 21:07:30 +01:00
parent 7b5ee01929
commit d6c27add17
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -36,6 +36,11 @@ tasks.register<JavaExec>("runViaProxy") {
mainClass.set("net.raphimc.viaproxy.ViaProxy")
classpath = viaProxyConfiguration
workingDir = file("run")
jvmArgs = listOf("-DskipUpdateCheck")
if (System.getProperty("viaproxy.gui.autoStart") != null) {
jvmArgs("-Dviaproxy.gui.autoStart")
}
doFirst {
val jarsDir = file("$workingDir/jars")