88 lines
3.4 KiB
Diff
88 lines
3.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: AlphaKR93 <dev@alpha93.kr>
|
|
Date: Sun, 14 Jan 2024 19:51:19 +0900
|
|
Subject: [PATCH] Use Gradle Version Catalogs
|
|
|
|
|
|
diff --git a/build.gradle.kts b/build.gradle.kts
|
|
index 1cad0728d..b97182b80 100644
|
|
--- a/build.gradle.kts
|
|
+++ b/build.gradle.kts
|
|
@@ -19,21 +19,38 @@ dependencies {
|
|
exclude("io.papermc.paper", "paper-api")
|
|
}
|
|
// Purpur end
|
|
+ // Plazma start - Use Gradle version catalogs
|
|
+ /*
|
|
// Paper start
|
|
implementation("org.jline:jline-terminal-jansi:3.21.0")
|
|
implementation("net.minecrell:terminalconsoleappender:1.3.0")
|
|
implementation("net.kyori:adventure-text-serializer-ansi:4.14.0") // Keep in sync with adventureVersion from Paper-API build file
|
|
implementation("net.kyori:ansi:1.0.3") // Manually bump beyond above transitive dep
|
|
- /*
|
|
- Required to add the missing Log4j2Plugins.dat file from log4j-core
|
|
- which has been removed by Mojang. Without it, log4j has to classload
|
|
- all its classes to check if they are plugins.
|
|
- Scanning takes about 1-2 seconds so adding this speeds up the server start.
|
|
- */
|
|
implementation("org.apache.logging.log4j:log4j-core:2.19.0") // Paper - implementation
|
|
log4jPlugins.annotationProcessorConfigurationName("org.apache.logging.log4j:log4j-core:2.19.0") // Paper - Needed to generate meta for our Log4j plugins
|
|
+ */
|
|
+ log4jPlugins.annotationProcessorConfigurationName(common.log4j.core)
|
|
+
|
|
+ implementation(common.log4j.core)
|
|
+ implementation(common.log4j.iostreams)
|
|
+ implementation(common.snakeyaml)
|
|
+ implementation(common.bundles.asm)
|
|
+ implementation(common.commons.lang2)
|
|
+ implementation(common.adventure.serializer.ansi)
|
|
+ implementation(server.ansi)
|
|
+ implementation(server.bundles.implementation)
|
|
+
|
|
+ runtimeOnly(common.bundles.maven)
|
|
+ runtimeOnly(common.maven.provider)
|
|
+ runtimeOnly(server.bundles.runtime)
|
|
runtimeOnly(log4jPlugins.output)
|
|
+
|
|
alsoShade(log4jPlugins.output)
|
|
+
|
|
+ testImplementation(common.bundles.test)
|
|
+ testImplementation(server.bundles.test)
|
|
+
|
|
+ /*
|
|
implementation("io.netty:netty-codec-haproxy:4.1.97.Final") // Paper - Add support for proxy protocol
|
|
// Paper end
|
|
implementation("org.apache.logging.log4j:log4j-iostreams:2.19.0") // Paper - remove exclusion
|
|
@@ -46,8 +63,11 @@ dependencies {
|
|
runtimeOnly("com.lmax:disruptor:3.4.4") // Paper
|
|
// Paper start - Use Velocity cipher
|
|
implementation("com.velocitypowered:velocity-native:3.1.2-SNAPSHOT") {
|
|
+ */
|
|
+ implementation(server.velocity) {
|
|
isTransitive = false
|
|
}
|
|
+ /*
|
|
// Paper end - Use Velocity cipher
|
|
|
|
runtimeOnly("org.apache.maven:maven-resolver-provider:3.9.6")
|
|
@@ -57,8 +77,11 @@ dependencies {
|
|
// Pufferfish start
|
|
implementation("org.yaml:snakeyaml:1.32")
|
|
implementation ("com.github.carleslc.Simple-YAML:Simple-Yaml:1.8.4") {
|
|
+ */
|
|
+ implementation(server.simpleyaml) {
|
|
exclude(group="org.yaml", module="snakeyaml")
|
|
}
|
|
+ /*
|
|
// Pufferfish end
|
|
|
|
implementation("org.mozilla:rhino-runtime:1.7.14") // Purpur
|
|
@@ -71,6 +94,7 @@ dependencies {
|
|
testImplementation("org.mockito:mockito-core:5.11.0")
|
|
testImplementation("org.ow2.asm:asm-tree:9.7")
|
|
testImplementation("org.junit-pioneer:junit-pioneer:2.2.0") // Paper - CartesianTest
|
|
+ */
|
|
}
|
|
|
|
val craftbukkitPackageVersion = "1_20_R3" // Paper
|