Upstream has released updates that appear to apply and compile correctly. [Paper Changes] PaperMC/Paper@00ef8bd: Fix Entity#isTicking and update Paper entity command (#11590) PaperMC/Paper@6483ecb: Updated Upstream (Bukkit/CraftBukkit) PaperMC/Paper@17dbf74: Improve CraftEntity and CraftPlayer equals PaperMC/Paper@0af4e84: [ci skip] Add identifying line to some larger/optimization patches PaperMC/Paper@bcbd108: Call CraftPlayer#onEntityRemove for all online players (#11598) PaperMC/Paper@e47f79a: Configure mockito agent (#11560) PaperMC/Paper@94ea770: Re-add exact choice shapeless support (#11546) PaperMC/Paper@2e6eafb: Improve Minecart#getMinecartMaterial (#11544) PaperMC/Paper@9d1c91d: [ci skip] Fix UseCooldownComponent jd (#11565) PaperMC/Paper@59b79c8: Fix NPE with enchantable (#11557) PaperMC/Paper@6da7b9e: Update Eigencraft patch to 1.21.3 (#11553) PaperMC/Paper@1ef4c0e: Improve performance of RecipeMap#removeRecipe (#11547) PaperMC/Paper@52fb265: Optimize custom map rendering (#11000) PaperMC/Paper@661839e: Fix and optimize getChunkCount (#11610) PaperMC/Paper@c60af44: Fix experimental minecart collisions on sloped rails PaperMC/Paper@13f48d8: [ci skip] Rebuild patches PaperMC/Paper@be886cf: Fix Naming issue inside Add PlayerArmorChangeEvent (#11614)
151 lines
7.1 KiB
Diff
151 lines
7.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: AlphaKR93 <dev@alpha93.kr>
|
|
Date: Sun, 14 Jan 2024 19:50:29 +0900
|
|
Subject: [PATCH] Use Gradle Version Catalogs
|
|
|
|
|
|
diff --git a/build.gradle.kts b/build.gradle.kts
|
|
index b0fd6c1804844f09428051952e3ac4e58f8c859c..51a3639e5d1c3fec24af53f1e829532adeb6a1fa 100644
|
|
--- a/build.gradle.kts
|
|
+++ b/build.gradle.kts
|
|
@@ -9,11 +9,13 @@ java {
|
|
withJavadocJar()
|
|
}
|
|
|
|
+/* // Plazma - Use Gradle Versuib Catalogs
|
|
val annotationsVersion = "24.1.0"
|
|
val bungeeCordChatVersion = "1.20-R0.2"
|
|
val adventureVersion = "4.17.0"
|
|
val slf4jVersion = "2.0.9"
|
|
val log4jVersion = "2.17.1"
|
|
+ */
|
|
val apiAndDocs: Configuration by configurations.creating {
|
|
attributes {
|
|
attribute(Category.CATEGORY_ATTRIBUTE, objects.named(Category.DOCUMENTATION))
|
|
@@ -39,57 +41,29 @@ abstract class MockitoAgentProvider : CommandLineArgumentProvider {
|
|
// Paper end - configure mockito agent that is needed in newer java versions
|
|
|
|
dependencies {
|
|
- api("com.mojang:brigadier:1.2.9") // Paper - Brigadier command api
|
|
- // api dependencies are listed transitively to API consumers
|
|
- api("com.google.guava:guava:32.1.2-jre")
|
|
- api("com.google.code.gson:gson:2.10.1")
|
|
- // Paper start - adventure
|
|
- api("net.md-5:bungeecord-chat:$bungeeCordChatVersion-deprecated+build.18") {
|
|
- exclude("com.google.guava", "guava")
|
|
- }
|
|
- // Paper - adventure
|
|
- api("org.yaml:snakeyaml:2.2")
|
|
- api("org.joml:joml:1.10.5")
|
|
- // Paper start
|
|
- api("com.googlecode.json-simple:json-simple:1.1.1") {
|
|
- isTransitive = false // includes junit
|
|
- }
|
|
- api("it.unimi.dsi:fastutil:8.5.6")
|
|
- apiAndDocs(platform("net.kyori:adventure-bom:$adventureVersion"))
|
|
- apiAndDocs("net.kyori:adventure-api")
|
|
- apiAndDocs("net.kyori:adventure-text-minimessage")
|
|
- apiAndDocs("net.kyori:adventure-text-serializer-gson")
|
|
- apiAndDocs("net.kyori:adventure-text-serializer-legacy")
|
|
- apiAndDocs("net.kyori:adventure-text-serializer-plain")
|
|
- apiAndDocs("net.kyori:adventure-text-logger-slf4j")
|
|
- api("org.apache.logging.log4j:log4j-api:$log4jVersion")
|
|
- api("org.slf4j:slf4j-api:$slf4jVersion")
|
|
- api("io.sentry:sentry:5.4.0") // Pufferfish
|
|
-
|
|
- implementation("org.ow2.asm:asm:9.7.1")
|
|
- implementation("org.ow2.asm:asm-commons:9.7.1")
|
|
- // Paper end
|
|
-
|
|
- api("org.apache.maven:maven-resolver-provider:3.9.6") // Paper - make API dependency for Paper Plugins
|
|
- compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.9.18")
|
|
- compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.9.18")
|
|
-
|
|
- val annotations = "org.jetbrains:annotations:$annotationsVersion" // Paper - we don't want Java 5 annotations...
|
|
- compileOnly(annotations)
|
|
- testCompileOnly(annotations)
|
|
-
|
|
- // Paper start - add checker
|
|
- val checkerQual = "org.checkerframework:checker-qual:3.33.0"
|
|
- compileOnlyApi(checkerQual)
|
|
- testCompileOnly(checkerQual)
|
|
- // Paper end
|
|
- api("org.jspecify:jspecify:1.0.0") // Paper - add jspecify
|
|
-
|
|
- testImplementation("org.apache.commons:commons-lang3:3.12.0")
|
|
- testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
|
|
- testImplementation("org.hamcrest:hamcrest:2.2")
|
|
- testImplementation("org.mockito:mockito-core:5.14.1")
|
|
- testImplementation("org.ow2.asm:asm-tree:9.7.1")
|
|
+ // Plazma start - Use Gradle Version Catalogs
|
|
+ implementation(common.bundles.asm)
|
|
+
|
|
+ api(api.bundles.api)
|
|
+ api(common.snakeyaml)
|
|
+ api(common.log4j.api)
|
|
+ api(common.maven.provider)
|
|
+ api(api.jsonsimple) { isTransitive = false }
|
|
+ api(api.bungeechat) { exclude("com.google.guava", "guava") }
|
|
+ apiAndDocs(platform(common.adventure.bom))
|
|
+ apiAndDocs(common.bundles.adventure)
|
|
+
|
|
+ compileOnly(common.bundles.maven)
|
|
+ compileOnly(api.annotations)
|
|
+ compileOnlyApi(api.checkerqual)
|
|
+
|
|
+ testImplementation(common.asm.tree)
|
|
+ testImplementation(common.commons.lang3)
|
|
+ testImplementation(common.bundles.test)
|
|
+
|
|
+ testCompileOnly(api.annotations)
|
|
+ testCompileOnly(api.checkerqual)
|
|
+ // Plazma end
|
|
mockitoAgent("org.mockito:mockito-core:5.14.1") { isTransitive = false } // Paper - configure mockito agent that is needed in newer java versions
|
|
}
|
|
|
|
@@ -175,27 +149,24 @@ tasks.withType<Javadoc> {
|
|
options.use()
|
|
options.isDocFilesSubDirs = true
|
|
options.links(
|
|
- "https://guava.dev/releases/32.1.2-jre/api/docs/",
|
|
- "https://javadoc.io/doc/org.yaml/snakeyaml/2.2/",
|
|
- "https://javadoc.io/doc/org.jetbrains/annotations/$annotationsVersion/", // Paper - we don't want Java 5 annotations
|
|
- // "https://javadoc.io/doc/net.md-5/bungeecord-chat/$bungeeCordChatVersion/", // Paper - don't link to bungee chat
|
|
- // Paper start - add missing javadoc links
|
|
- "https://javadoc.io/doc/org.joml/joml/1.10.5/index.html",
|
|
- "https://www.javadoc.io/doc/com.google.code.gson/gson/2.10.1",
|
|
"https://jspecify.dev/docs/api/",
|
|
- // Paper end
|
|
- // Paper start
|
|
- "https://jd.advntr.dev/api/$adventureVersion/",
|
|
- "https://jd.advntr.dev/key/$adventureVersion/",
|
|
- "https://jd.advntr.dev/text-minimessage/$adventureVersion/",
|
|
- "https://jd.advntr.dev/text-serializer-gson/$adventureVersion/",
|
|
- "https://jd.advntr.dev/text-serializer-legacy/$adventureVersion/",
|
|
- "https://jd.advntr.dev/text-serializer-plain/$adventureVersion/",
|
|
- "https://jd.advntr.dev/text-logger-slf4j/$adventureVersion/",
|
|
- "https://javadoc.io/doc/org.slf4j/slf4j-api/$slf4jVersion/",
|
|
- "https://javadoc.io/doc/org.apache.logging.log4j/log4j-api/$log4jVersion/",
|
|
- // Paper end
|
|
- "https://javadoc.io/doc/org.apache.maven.resolver/maven-resolver-api/1.7.3", // Paper
|
|
+ // Plazma start - Use Gradle Version Catalogs
|
|
+ "https://jd.advntr.dev/api/${common.adventure.api.orNull?.version}/",
|
|
+ "https://jd.advntr.dev/key/${common.adventure.api.orNull?.version}/",
|
|
+ "https://jd.advntr.dev/text-minimessage/${common.adventure.api.orNull?.version}/",
|
|
+ "https://jd.advntr.dev/text-serializer-gson/${common.adventure.api.orNull?.version}/",
|
|
+ "https://jd.advntr.dev/text-serializer-legacy/${common.adventure.api.orNull?.version}/",
|
|
+ "https://jd.advntr.dev/text-serializer-plain/${common.adventure.api.orNull?.version}/",
|
|
+ "https://jd.advntr.dev/text-logger-slf4j/${common.adventure.api.orNull?.version}/",
|
|
+ "https://guava.dev/releases/${api.guava.orNull?.version}/api/docs/",
|
|
+ "https://javadoc.io/doc/org.yaml/snakeyaml/${common.snakeyaml.orNull?.version}/",
|
|
+ "https://javadoc.io/doc/org.jetbrains/annotations/${api.annotations.orNull?.version}/",
|
|
+ "https://javadoc.io/doc/org.joml/joml/${api.joml.orNull?.version}/index.html",
|
|
+ "https://www.javadoc.io/doc/com.google.code.gson/gson/${api.gson.orNull?.version}",
|
|
+ "https://javadoc.io/doc/org.slf4j/slf4j-api/${api.slf4j.api.orNull?.version}/",
|
|
+ "https://javadoc.io/doc/org.apache.logging.log4j/log4j-api/${common.log4j.api.orNull?.version}/",
|
|
+ "https://javadoc.io/doc/org.apache.maven.resolver/maven-resolver-api/${common.maven.connector.orNull?.version}",
|
|
+ // Plazma end
|
|
)
|
|
options.tags("apiNote:a:API Note:")
|
|
|