From a18b1b7ef1dd6d16a4224fca17d56733b5fb7852 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Fri, 20 Dec 2024 15:07:43 -0800 Subject: [PATCH] Add capabilities for old API coordinates This will cause Gradle to throw a selection error when for example paper-api and spigot-api are on the classpath. Users will need to add selection rules or excludes for certain transitive deps to solve this rather than build with a broken classpath. --- paper-api/build.gradle.kts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/paper-api/build.gradle.kts b/paper-api/build.gradle.kts index 5608f8d01d..7dc323ba31 100644 --- a/paper-api/build.gradle.kts +++ b/paper-api/build.gradle.kts @@ -121,8 +121,13 @@ configurations { } outgoing { capability(mainCapability) + // Paper-MojangAPI has been merged into Paper-API capability("io.papermc.paper:paper-mojangapi:${project.version}") capability("com.destroystokyo.paper:paper-mojangapi:${project.version}") + // Conflict with old coordinates + capability("com.destroystokyo.paper:paper-api:${project.version}") + capability("org.spigotmc:spigot-api:${project.version}") + capability("org.bukkit:bukkit:${project.version}") } } }