mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +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 {
 | 
			
		||||
    api(projects.plotsquaredCore)
 | 
			
		||||
 | 
			
		||||
@@ -28,20 +41,13 @@ dependencies {
 | 
			
		||||
    implementation(libs.paperlib)
 | 
			
		||||
 | 
			
		||||
    // Plugins
 | 
			
		||||
    compileOnly(libs.worldeditBukkit) {
 | 
			
		||||
        exclude(group = "org.bukkit")
 | 
			
		||||
        exclude(group = "org.spigotmc")
 | 
			
		||||
    }
 | 
			
		||||
    compileOnly(libs.worldeditBukkit)
 | 
			
		||||
    compileOnly(libs.faweBukkit) { isTransitive = false }
 | 
			
		||||
    testImplementation(libs.faweBukkit) { isTransitive = false }
 | 
			
		||||
    compileOnly(libs.vault) {
 | 
			
		||||
        exclude(group = "org.bukkit")
 | 
			
		||||
    }
 | 
			
		||||
    compileOnly(libs.vault)
 | 
			
		||||
    compileOnly(libs.placeholderapi)
 | 
			
		||||
    compileOnly(libs.luckperms)
 | 
			
		||||
    compileOnly(libs.essentialsx) {
 | 
			
		||||
        exclude(group = "org.spigotmc")
 | 
			
		||||
    }
 | 
			
		||||
    compileOnly(libs.essentialsx)
 | 
			
		||||
    compileOnly(libs.mvdwapi) { isTransitive = false }
 | 
			
		||||
 | 
			
		||||
    // Other libraries
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user