|
| 1 | +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> |
| 3 | +Date: Tue, 28 Nov 2023 19:28:37 -0700 |
| 4 | +Subject: [PATCH] MergedProperties POC |
| 5 | + |
| 6 | + |
| 7 | +diff --git a/build.gradle.kts b/build.gradle.kts |
| 8 | +index 64479f0a892d6847f987d844efe282a6080d607b..655e72cc8500767043875884589423b33de96538 100644 |
| 9 | +--- a/build.gradle.kts |
| 10 | ++++ b/build.gradle.kts |
| 11 | +@@ -12,13 +12,19 @@ configurations.named(log4jPlugins.compileClasspathConfigurationName) { |
| 12 | + } |
| 13 | + val alsoShade: Configuration by configurations.creating |
| 14 | + |
| 15 | ++val versions = MergedProperties.fromAllProjects(project, "versions.properties") |
| 16 | ++val adventureVersion by versions |
| 17 | ++val log4jVersion by versions |
| 18 | ++val mappingIoVersion by versions |
| 19 | ++val asmVersion by versions |
| 20 | ++ |
| 21 | + dependencies { |
| 22 | + implementation(project(":paper-api")) |
| 23 | + implementation(project(":paper-mojangapi")) |
| 24 | + // Paper start |
| 25 | + implementation("org.jline:jline-terminal-jansi:3.21.0") |
| 26 | + implementation("net.minecrell:terminalconsoleappender:1.3.0") |
| 27 | +- implementation("net.kyori:adventure-text-serializer-ansi:4.14.0") // Keep in sync with adventureVersion from Paper-API build file |
| 28 | ++ implementation("net.kyori:adventure-text-serializer-ansi:$adventureVersion") |
| 29 | + implementation("net.kyori:ansi:1.0.3") // Manually bump beyond above transitive dep |
| 30 | + /* |
| 31 | + Required to add the missing Log4j2Plugins.dat file from log4j-core |
| 32 | +@@ -26,18 +32,18 @@ dependencies { |
| 33 | + all its classes to check if they are plugins. |
| 34 | + Scanning takes about 1-2 seconds so adding this speeds up the server start. |
| 35 | + */ |
| 36 | +- implementation("org.apache.logging.log4j:log4j-core:2.19.0") // Paper - implementation |
| 37 | +- log4jPlugins.annotationProcessorConfigurationName("org.apache.logging.log4j:log4j-core:2.19.0") // Paper - Needed to generate meta for our Log4j plugins |
| 38 | ++ implementation("org.apache.logging.log4j:log4j-core:$log4jVersion") // Paper - implementation |
| 39 | ++ log4jPlugins.annotationProcessorConfigurationName("org.apache.logging.log4j:log4j-core:$log4jVersion") // Paper - Needed to generate meta for our Log4j plugins |
| 40 | + runtimeOnly(log4jPlugins.output) |
| 41 | + alsoShade(log4jPlugins.output) |
| 42 | + implementation("io.netty:netty-codec-haproxy:4.1.97.Final") // Paper - Add support for proxy protocol |
| 43 | + // Paper end |
| 44 | +- implementation("org.apache.logging.log4j:log4j-iostreams:2.19.0") // Paper - remove exclusion |
| 45 | +- implementation("org.ow2.asm:asm:9.5") |
| 46 | +- implementation("org.ow2.asm:asm-commons:9.5") // Paper - ASM event executor generation |
| 47 | ++ implementation("org.apache.logging.log4j:log4j-iostreams:$log4jVersion") // Paper - remove exclusion |
| 48 | ++ implementation("org.ow2.asm:asm:$asmVersion") |
| 49 | ++ implementation("org.ow2.asm:asm-commons:$asmVersion") // Paper - ASM event executor generation |
| 50 | + implementation("org.spongepowered:configurate-yaml:4.2.0-SNAPSHOT") // Paper - config files |
| 51 | + implementation("commons-lang:commons-lang:2.6") |
| 52 | +- implementation("net.fabricmc:mapping-io:0.5.0") // Paper - needed to read mappings for stacktrace deobfuscation |
| 53 | ++ implementation("net.fabricmc:mapping-io:$mappingIoVersion") // Paper - needed to read mappings for stacktrace deobfuscation |
| 54 | + runtimeOnly("org.xerial:sqlite-jdbc:3.42.0.1") |
| 55 | + runtimeOnly("com.mysql:mysql-connector-j:8.1.0") |
| 56 | + runtimeOnly("com.lmax:disruptor:3.4.4") // Paper |
| 57 | +diff --git a/versions.properties b/versions.properties |
| 58 | +new file mode 100644 |
| 59 | +index 0000000000000000000000000000000000000000..ecdcc6735c3f6e5205a57740bafdbf3c0fbfd36c |
| 60 | +--- /dev/null |
| 61 | ++++ b/versions.properties |
| 62 | +@@ -0,0 +1,2 @@ |
| 63 | ++log4jVersion = 2.19.0 |
| 64 | ++mappingIoVersion = 0.5.0 |
0 commit comments