3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-11-16 04:50:07 +01:00
Geyser/bootstrap/standalone/build.gradle.kts

43 Zeilen
1.1 KiB
Plaintext

2022-02-27 23:38:55 +01:00
import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
val terminalConsoleVersion = "1.2.0"
val jlineVersion = "3.21.0"
2022-02-27 23:38:55 +01:00
dependencies {
2024-02-25 19:57:04 +01:00
api(projects.api)
2022-02-27 23:38:55 +01:00
api(projects.core)
implementation(libs.terminalconsoleappender) {
2023-06-17 17:47:42 +02:00
exclude("org.apache.logging.log4j")
exclude("org.jline")
2022-02-27 23:38:55 +01:00
}
implementation(libs.bundles.jline)
2022-02-27 23:38:55 +01:00
implementation(libs.bundles.log4j)
2022-02-27 23:38:55 +01:00
}
application {
mainClass.set("org.geysermc.geyser.platform.standalone.GeyserStandaloneBootstrap")
}
tasks.named<Jar>("jar") {
manifest {
// log4j provides multi-release java 9 code which resolves https://github.com/GeyserMC/Geyser/issues/3693
attributes("Multi-Release" to true)
}
}
2022-02-27 23:38:55 +01:00
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
archiveBaseName.set("Geyser-Standalone")
2022-02-27 23:38:55 +01:00
transform(Log4j2PluginsCacheFileTransformer())
}
tasks.named<JavaExec>("run") {
val dir = projectDir.resolve("run")
dir.mkdirs()
jvmArgs("-Dio.netty.leakDetection.level=PARANOID")
workingDir = dir
}