mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 11:13:45 +01:00 
			
		
		
		
	fix: binary incompatibility on 1.21.1 (#4758)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							b613318a29
						
					
				
				
					commit
					05af41f832
				
			@@ -17,6 +17,19 @@ repositories {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Make sure we control the exact version of paper being included, while dropping spigot + bukkit
 | 
				
			||||||
 | 
					configurations.all {
 | 
				
			||||||
 | 
					    exclude("org.bukkit")
 | 
				
			||||||
 | 
					    exclude("org.spigotmc")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    resolutionStrategy.eachDependency {
 | 
				
			||||||
 | 
					        if (requested.group == "io.papermc.paper" && requested.name == "paper-api") {
 | 
				
			||||||
 | 
					            useVersion(checkNotNull(libs.paper.orNull?.version))
 | 
				
			||||||
 | 
					            because("specific paper version is required to prevent binary incompatibilities on older versions")
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
dependencies {
 | 
					dependencies {
 | 
				
			||||||
    api(projects.plotsquaredCore)
 | 
					    api(projects.plotsquaredCore)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -28,20 +41,13 @@ dependencies {
 | 
				
			|||||||
    implementation(libs.paperlib)
 | 
					    implementation(libs.paperlib)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Plugins
 | 
					    // Plugins
 | 
				
			||||||
    compileOnly(libs.worldeditBukkit) {
 | 
					    compileOnly(libs.worldeditBukkit)
 | 
				
			||||||
        exclude(group = "org.bukkit")
 | 
					 | 
				
			||||||
        exclude(group = "org.spigotmc")
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    compileOnly(libs.faweBukkit) { isTransitive = false }
 | 
					    compileOnly(libs.faweBukkit) { isTransitive = false }
 | 
				
			||||||
    testImplementation(libs.faweBukkit) { isTransitive = false }
 | 
					    testImplementation(libs.faweBukkit) { isTransitive = false }
 | 
				
			||||||
    compileOnly(libs.vault) {
 | 
					    compileOnly(libs.vault)
 | 
				
			||||||
        exclude(group = "org.bukkit")
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    compileOnly(libs.placeholderapi)
 | 
					    compileOnly(libs.placeholderapi)
 | 
				
			||||||
    compileOnly(libs.luckperms)
 | 
					    compileOnly(libs.luckperms)
 | 
				
			||||||
    compileOnly(libs.essentialsx) {
 | 
					    compileOnly(libs.essentialsx)
 | 
				
			||||||
        exclude(group = "org.spigotmc")
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    compileOnly(libs.mvdwapi) { isTransitive = false }
 | 
					    compileOnly(libs.mvdwapi) { isTransitive = false }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Other libraries
 | 
					    // Other libraries
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user