mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Specify mainCapabilityAttribute for paper-api
This commit is contained in:
parent
3d5706bf30
commit
9adbb0e5c1
@ -11,7 +11,7 @@ import kotlin.io.path.*
|
|||||||
plugins {
|
plugins {
|
||||||
java
|
java
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("io.papermc.paperweight.core") version "1.7.3"
|
id("io.papermc.paperweight.core") version "1.7.4"
|
||||||
}
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
|
@ -23,12 +23,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
// Paper end
|
// Paper end
|
||||||
+// Paper start - brigadier API
|
+// Paper start - brigadier API
|
||||||
+val outgoingVariants = arrayOf("runtimeElements", "apiElements", "sourcesElements", "javadocElements")
|
+val outgoingVariants = arrayOf("runtimeElements", "apiElements", "sourcesElements", "javadocElements")
|
||||||
|
+val mainCapability = "${project.group}:${project.name}:${project.version}"
|
||||||
+configurations {
|
+configurations {
|
||||||
+ val outgoing = outgoingVariants.map { named(it) }
|
+ val outgoing = outgoingVariants.map { named(it) }
|
||||||
+ for (config in outgoing) {
|
+ for (config in outgoing) {
|
||||||
+ config {
|
+ config {
|
||||||
|
+ attributes {
|
||||||
|
+ attribute(io.papermc.paperweight.util.mainCapabilityAttribute, mainCapability)
|
||||||
|
+ }
|
||||||
+ outgoing {
|
+ outgoing {
|
||||||
+ capability("${project.group}:${project.name}:${project.version}")
|
+ capability(mainCapability)
|
||||||
+ 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}")
|
||||||
+ }
|
+ }
|
||||||
|
Loading…
Reference in New Issue
Block a user