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
1 changed files with 8 additions and 1 deletions

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
}