Add run configuration to make things easier

This commit is contained in:
SupremeMortal 2023-04-20 10:46:12 +01:00
parent eaaba44e05
commit 27fcc932c7
No known key found for this signature in database
GPG key ID: DDBB25F8EE4FA29A

View file

@ -26,4 +26,11 @@ tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveBaseName.set("Geyser-Standalone")
transform(Log4j2PluginsCacheFileTransformer())
}
}
tasks.named<JavaExec>("run") {
val dir = projectDir.resolve("run")
dir.mkdirs()
jvmArgs("-Dio.netty.leakDetection.level=PARANOID")
workingDir = dir
}