2022-02-27 22:38:55 +00:00
|
|
|
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
|
|
|
|
|
|
|
|
val terminalConsoleVersion = "1.2.0"
|
2022-07-02 16:50:16 +00:00
|
|
|
val jlineVersion = "3.21.0"
|
2022-02-27 22:38:55 +00:00
|
|
|
|
|
|
|
dependencies {
|
|
|
|
api(projects.core)
|
|
|
|
|
2022-09-26 15:43:17 +00:00
|
|
|
implementation(libs.terminalconsoleappender) {
|
2022-02-27 22:38:55 +00:00
|
|
|
exclude("org.apache.logging.log4j", "log4j-core")
|
|
|
|
exclude("org.jline", "jline-reader")
|
|
|
|
exclude("org.jline", "jline-terminal")
|
|
|
|
exclude("org.jline", "jline-terminal-jna")
|
|
|
|
}
|
|
|
|
|
2022-09-26 15:43:17 +00:00
|
|
|
implementation(libs.bundles.jline)
|
2022-02-27 22:38:55 +00:00
|
|
|
|
2022-09-26 15:43:17 +00:00
|
|
|
implementation(libs.bundles.log4j)
|
2022-02-27 22:38:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
application {
|
|
|
|
mainClass.set("org.geysermc.geyser.platform.standalone.GeyserStandaloneBootstrap")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
2022-09-19 15:26:47 +00:00
|
|
|
archiveBaseName.set("Geyser-Standalone")
|
2022-02-27 22:38:55 +00:00
|
|
|
|
|
|
|
transform(Log4j2PluginsCacheFileTransformer())
|
2023-04-20 09:46:12 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.named<JavaExec>("run") {
|
|
|
|
val dir = projectDir.resolve("run")
|
|
|
|
dir.mkdirs()
|
|
|
|
jvmArgs("-Dio.netty.leakDetection.level=PARANOID")
|
|
|
|
workingDir = dir
|
|
|
|
}
|