Upstream has released updates that appear to apply and compile correctly. [Purpur Changes] PurpurMC/Purpur@e86a1b6: Updated Upstream (Paper) PurpurMC/Purpur@962ee30: Updated Upstream (Paper) PurpurMC/Purpur@74d1b4c: Updated Upstream (Paper) PurpurMC/Purpur@e2e8c61: Updated Upstream (Paper) PurpurMC/Purpur@7a01fd8: Updated Upstream (Paper) PurpurMC/Purpur@34c18f0: Updated Upstream (Paper) PurpurMC/Purpur@ca668ab: Updated Upstream (Paper) PurpurMC/Purpur@200178d: Updated Upstream (Paper) PurpurMC/Purpur@9968cbb: Updated Upstream (Paper) PurpurMC/Purpur@db09358: Fix clamp-levels option not being true by default (#1609) PurpurMC/Purpur@f289b6a: Updated Upstream (Paper) PurpurMC/Purpur@959c29d: Fix Tridents giving errors without having an Elytra equipped (#1612) PurpurMC/Purpur@68c1612: Fix villagers not spawning when the `follow-emerald-blocks` option is enabled (#1611) PurpurMC/Purpur@5b75c68: fix `bypass-mob-griefing` not being the inverse of mobgriefing gamerule, closes #1603 PurpurMC/Purpur@55d4309: Updated Upstream (Paper) PurpurMC/Purpur@0601f87: Updated Upstream (Paper) PurpurMC/Purpur@06dde9d: Add Ridable and Attribute options for Creaking mob (#1613) PurpurMC/Purpur@420a1ce: Set the bee's `takes-damage-from-water` option to true by default (#1614) PurpurMC/Purpur@2b6f273: Updated Upstream (Paper) PurpurMC/Purpur@504f311: Updated Upstream (Paper) PurpurMC/Purpur@2b694c9: Updated Upstream (Paper) PurpurMC/Purpur@96d7ef7: Updated Upstream (Paper) PurpurMC/Purpur@e141f68: Updated Upstream (Paper) PurpurMC/Purpur@7f6f667: Updated Upstream (Pufferfish) PurpurMC/Purpur@de20ba9: ignore `minecart.max-speed` config value if using minecart experiment, closes #1618 PurpurMC/Purpur@03062a8: fix ridable mobs not being controllable, closes #1620 PurpurMC/Purpur@0493ac3: Updated Upstream (Paper) PurpurMC/Purpur@16ce24a: fix(ridables/creaking): override tick method in look/move control
131 lines
7.0 KiB
Diff
131 lines
7.0 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] Build System Changes
|
|
|
|
|
|
diff --git a/build.gradle.kts b/build.gradle.kts
|
|
index 77602e4445b1b45a17e5552ac6a769e0ed46ebc7..f021047331c7eb3dac7f0d56af73a9056ffe826b 100644
|
|
--- a/build.gradle.kts
|
|
+++ b/build.gradle.kts
|
|
@@ -26,71 +26,34 @@ abstract class MockitoAgentProvider : CommandLineArgumentProvider {
|
|
|
|
dependencies {
|
|
implementation(project(":purpur-api")) // Pufferfish // Paper // Purpur
|
|
- // Paper start
|
|
- implementation("org.jline:jline-terminal-ffm:3.27.1") // use ffm on java 22+
|
|
- implementation("org.jline:jline-terminal-jni:3.27.1") // fall back to jni on java 21
|
|
- implementation("net.minecrell:terminalconsoleappender:1.3.0")
|
|
- implementation("net.kyori:adventure-text-serializer-ansi:4.17.0") // Keep in sync with adventureVersion from Paper-API build file
|
|
- /*
|
|
- 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
|
|
- runtimeOnly(log4jPlugins.output)
|
|
- alsoShade(log4jPlugins.output)
|
|
- 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.22.1") // Paper - remove exclusion
|
|
- implementation("org.ow2.asm:asm-commons:9.7.1")
|
|
- implementation("org.spongepowered:configurate-yaml:4.2.0-SNAPSHOT") // Paper - config files
|
|
- implementation("commons-lang:commons-lang:2.6")
|
|
- runtimeOnly("org.xerial:sqlite-jdbc:3.46.1.3")
|
|
- runtimeOnly("com.mysql:mysql-connector-j:9.1.0")
|
|
- runtimeOnly("com.lmax:disruptor:3.4.4") // Paper
|
|
- // Paper start - Use Velocity cipher
|
|
- implementation("com.velocitypowered:velocity-native:3.3.0-SNAPSHOT") {
|
|
- isTransitive = false
|
|
- }
|
|
- // Paper end - Use Velocity cipher
|
|
-
|
|
- runtimeOnly("org.apache.maven:maven-resolver-provider:3.9.6")
|
|
- runtimeOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.18")
|
|
- runtimeOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.18")
|
|
-
|
|
- // Pufferfish start
|
|
- implementation("org.yaml:snakeyaml:1.32")
|
|
- implementation ("com.github.carleslc.Simple-YAML:Simple-Yaml:1.8.4") { // Purpur
|
|
- exclude(group="org.yaml", module="snakeyaml")
|
|
- }
|
|
- // Pufferfish end
|
|
-
|
|
- implementation("org.mozilla:rhino-runtime:1.7.14") // Purpur
|
|
- implementation("org.mozilla:rhino-engine:1.7.14") // Purpur
|
|
- implementation("dev.omega24:upnp4j:1.0") // Purpur
|
|
-
|
|
- testImplementation("io.github.classgraph:classgraph:4.8.47") // Paper - mob goal test
|
|
- testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
|
|
- testImplementation("org.junit.platform:junit-platform-suite-engine:1.10.0")
|
|
- testImplementation("org.hamcrest:hamcrest:2.2")
|
|
- testImplementation("org.mockito:mockito-core:5.14.1")
|
|
- mockitoAgent("org.mockito:mockito-core:5.14.1") { isTransitive = false } // Paper - configure mockito agent that is needed in newer java versions
|
|
- testImplementation("org.ow2.asm:asm-tree:9.7.1")
|
|
- testImplementation("org.junit-pioneer:junit-pioneer:2.2.0") // Paper - CartesianTest
|
|
- implementation("net.neoforged:srgutils:1.0.9") // Paper - mappings handling
|
|
- implementation("net.neoforged:AutoRenamingTool:2.0.3") // Paper - remap plugins
|
|
- // Paper start - Remap reflection
|
|
- val reflectionRewriterVersion = "0.0.3"
|
|
- implementation("io.papermc:reflection-rewriter:$reflectionRewriterVersion")
|
|
- implementation("io.papermc:reflection-rewriter-runtime:$reflectionRewriterVersion")
|
|
- implementation("io.papermc:reflection-rewriter-proxy-generator:$reflectionRewriterVersion")
|
|
- // Paper end - Remap reflection
|
|
- // Paper start - spark
|
|
- implementation("me.lucko:spark-api:0.1-20240720.200737-2")
|
|
- implementation("me.lucko:spark-paper:1.10.119-SNAPSHOT")
|
|
- // Paper end - spark
|
|
+ // Plazma start - Use Gradle Version Catalogs
|
|
+ implementation(server.bundles.implementation)
|
|
+ implementation(common.adventure.serializer.ansi)
|
|
+ implementation(common.log4j.stream)
|
|
+
|
|
+ implementation(common.log4j)
|
|
+ log4jPlugins.annotationProcessorConfigurationName(common.log4j)
|
|
+ runtimeOnly(log4jPlugins.output) // diff on change
|
|
+ alsoShade(log4jPlugins.output) // diff on change
|
|
+
|
|
+ runtimeOnly(server.bundles.runtime)
|
|
+
|
|
+ implementation(common.bundles.asm)
|
|
+ implementation(common.commons.lang2)
|
|
+ implementation(server.velocity.native) { isTransitive = false }
|
|
+
|
|
+ runtimeOnly(common.mvn)
|
|
+ runtimeOnly(common.bundles.mvn)
|
|
+
|
|
+ implementation(common.snakeyaml)
|
|
+ implementation(server.simpleyaml) { exclude(group="org.yaml", module="snakeyaml") }
|
|
+
|
|
+ testImplementation(server.classgraph)
|
|
+ testImplementation(common.bundles.test)
|
|
+ testImplementation(common.junit)
|
|
+ mockitoAgent(common.mockito) { isTransitive = false }
|
|
+ testImplementation(common.junit.pioneer)
|
|
+ // Plazma end - Use Gradle Version Catalogs
|
|
}
|
|
|
|
paperweight {
|
|
@@ -118,14 +81,14 @@ tasks.jar {
|
|
val gitBranch = git("rev-parse", "--abbrev-ref", "HEAD").getText().trim() // Paper
|
|
attributes(
|
|
"Main-Class" to "org.bukkit.craftbukkit.Main",
|
|
- "Implementation-Title" to "Purpur", // Pufferfish // Purpur
|
|
+ "Implementation-Title" to rootProject.providers.gradleProperty("brandName").get(), // Pufferfish // Purpur // Plazma - Fork-friendly Rebranding
|
|
"Implementation-Version" to implementationVersion,
|
|
"Implementation-Vendor" to date, // Paper
|
|
- "Specification-Title" to "Purpur", // Pufferfish // Purpur
|
|
+ "Specification-Title" to rootProject.providers.gradleProperty("brandName").get(), // Pufferfish // Purpur // Plazma - Fork-friendly Rebranding
|
|
"Specification-Version" to project.version,
|
|
- "Specification-Vendor" to "Purpur Team", // Pufferfish // Purpur
|
|
- "Brand-Id" to "purpurmc:purpur", // Pufferfish // Purpur
|
|
- "Brand-Name" to "Purpur", // Pufferfish // Purpur
|
|
+ "Specification-Vendor" to rootProject.providers.gradleProperty("providerName").get(), // Purpur // Plazma - Fork-friendly Rebranding
|
|
+ "Brand-Id" to rootProject.providers.gradleProperty("brandKey").get(), // Purpur // Plazma - Fork-friendly Rebranding
|
|
+ "Brand-Name" to rootProject.providers.gradleProperty("brandName").get(), // Pufferfish // Purpur // Plazma - Fork-friendly Rebranding
|
|
"Build-Number" to (build ?: ""),
|
|
"Build-Time" to Instant.now().toString(),
|
|
"Git-Branch" to gitBranch, // Paper
|