aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJason Penilla <[email protected]>2024-12-20 15:07:43 -0800
committerJason Penilla <[email protected]>2024-12-20 15:07:43 -0800
commita18b1b7ef1dd6d16a4224fca17d56733b5fb7852 (patch)
tree941f09a3582be480a21e1e97d9b829e4a030efd2
parent051ab9117a681907da5be7424754d162bac0bed2 (diff)
downloadPaper-a18b1b7ef1dd6d16a4224fca17d56733b5fb7852.tar.gz
Paper-a18b1b7ef1dd6d16a4224fca17d56733b5fb7852.zip
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.
-rw-r--r--paper-api/build.gradle.kts5
1 files changed, 5 insertions, 0 deletions
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}")
}
}
}