diff --git a/build.gradle.kts b/build.gradle.kts index 1faa5bf..0caeb43 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -173,8 +173,10 @@ dependencies { // Built once by the remapNms task above (vanilla 1.20.4 server + official // mappings) because the io.papermc.paper:paper:1.20.4 dev-bundle was purged. compileOnly(files(nmsMappedJar, nmsAuthlibJar)) - // fastutil types are referenced by the NMS packet signatures (IntList). - compileOnly("it.unimi.dsi:fastutil:8.5.9") + // fastutil types (IntList) are referenced by the NMS packet signatures. 8.5.15 + // matches the version pinned by the new-style paper-api platform (1.21.11+/26.x) + // and resolves fine against the older paper-api artifacts too. + compileOnly("it.unimi.dsi:fastutil:8.5.15") // Adventure API (for Component) compileOnly("net.kyori:adventure-api:4.14.0") @@ -185,13 +187,16 @@ dependencies { // Shaded dependencies implementation("io.papermc:paperlib:1.0.7") - implementation("com.google.code.gson:gson:2.10.1") + implementation("com.google.code.gson:gson:2.11.0") implementation("org.bstats:bstats-bukkit:3.2.1") implementation("com.zaxxer:HikariCP:5.1.0") implementation("com.mysql:mysql-connector-j:8.3.0") implementation("org.apache.commons:commons-math3:3.6.1") - compileOnly("com.sk89q.worldedit:worldedit-core:7.3.6") - compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.3.6") + // worldedit-core brings its own platform constraint on fastutil (strictly 8.5.12), + // which conflicts with the new-style paper-api platform (8.5.15+); we only need + // worldedit's own classes (Clipboard, BlockVector3, ...), not its transitive deps. + compileOnly("com.sk89q.worldedit:worldedit-core:7.3.6") { isTransitive = false } + compileOnly("com.sk89q.worldedit:worldedit-bukkit:7.3.6") { isTransitive = false } // Provided dependencies (plugins) compileOnly("me.clip:placeholderapi:2.11.6")