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.
This commit is contained in:
Jason Penilla 2024-12-20 15:07:43 -08:00
parent 051ab9117a
commit a18b1b7ef1
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -121,8 +121,13 @@ configurations {
} }
outgoing { outgoing {
capability(mainCapability) capability(mainCapability)
// Paper-MojangAPI has been merged into Paper-API
capability("io.papermc.paper:paper-mojangapi:${project.version}") capability("io.papermc.paper:paper-mojangapi:${project.version}")
capability("com.destroystokyo.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}")
} }
} }
} }