13
0
geforkt von Mirrors/Paper

Specify mainCapabilityAttribute for paper-api

Dieser Commit ist enthalten in:
Jason Penilla 2024-10-25 12:47:24 -07:00
Ursprung 3d5706bf30
Commit 9adbb0e5c1
2 geänderte Dateien mit 6 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -11,7 +11,7 @@ import kotlin.io.path.*
plugins {
java
`maven-publish`
id("io.papermc.paperweight.core") version "1.7.3"
id("io.papermc.paperweight.core") version "1.7.4"
}
allprojects {

Datei anzeigen

@ -23,12 +23,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
// Paper end
+// Paper start - brigadier API
+val outgoingVariants = arrayOf("runtimeElements", "apiElements", "sourcesElements", "javadocElements")
+val mainCapability = "${project.group}:${project.name}:${project.version}"
+configurations {
+ val outgoing = outgoingVariants.map { named(it) }
+ for (config in outgoing) {
+ config {
+ attributes {
+ attribute(io.papermc.paperweight.util.mainCapabilityAttribute, mainCapability)
+ }
+ outgoing {
+ capability("${project.group}:${project.name}:${project.version}")
+ capability(mainCapability)
+ capability("io.papermc.paper:paper-mojangapi:${project.version}")
+ capability("com.destroystokyo.paper:paper-mojangapi:${project.version}")
+ }