@@ -17,6 +17,19 @@ repositories {
1717 }
1818}
1919
20+ // Make sure we control the exact version of paper being included, while dropping spigot + bukkit
21+ configurations.all {
22+ exclude(" org.bukkit" )
23+ exclude(" org.spigotmc" )
24+
25+ resolutionStrategy.eachDependency {
26+ if (requested.group == " io.papermc.paper" && requested.name == " paper-api" ) {
27+ useVersion(checkNotNull(libs.paper.orNull?.version))
28+ because(" specific paper version is required to prevent binary incompatibilities on older versions" )
29+ }
30+ }
31+ }
32+
2033dependencies {
2134 api(projects.plotsquaredCore)
2235
@@ -28,20 +41,13 @@ dependencies {
2841 implementation(libs.paperlib)
2942
3043 // Plugins
31- compileOnly(libs.worldeditBukkit) {
32- exclude(group = " org.bukkit" )
33- exclude(group = " org.spigotmc" )
34- }
44+ compileOnly(libs.worldeditBukkit)
3545 compileOnly(libs.faweBukkit) { isTransitive = false }
3646 testImplementation(libs.faweBukkit) { isTransitive = false }
37- compileOnly(libs.vault) {
38- exclude(group = " org.bukkit" )
39- }
47+ compileOnly(libs.vault)
4048 compileOnly(libs.placeholderapi)
4149 compileOnly(libs.luckperms)
42- compileOnly(libs.essentialsx) {
43- exclude(group = " org.spigotmc" )
44- }
50+ compileOnly(libs.essentialsx)
4551 compileOnly(libs.mvdwapi) { isTransitive = false }
4652
4753 // Other libraries
0 commit comments