Fix artifact ids

This commit is contained in:
Jason Penilla
2021-06-16 16:23:02 -07:00
parent 7de25fd330
commit 48c1ea17c3
4 changed files with 27 additions and 21 deletions

View File

@@ -38,22 +38,22 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
testImplementation("org.hamcrest:hamcrest-library:1.3")
}
@@ -0,0 +0,0 @@ tasks.jar {
"Implementation-Vendor" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(Date()), // Paper
"Specification-Title" to "Bukkit",
"Specification-Version" to project.version,
- "Specification-Vendor" to "Bukkit Team"
+ "Specification-Vendor" to "Bukkit Team",
+ "Multi-Release" to "true" // Paper
))
for (tld in listOf("net", "com", "org")) {
attributes(mapOf(
@@ -0,0 +0,0 @@ configure<PublishingExtension> {
"Specification-Vendor" to "Bukkit Team",
+ "Multi-Release" to "true", // Paper
)
for (tld in setOf("net", "com", "org")) {
attributes("$tld/bukkit", "Sealed" to true)
@@ -0,0 +0,0 @@ publishing {
}
}
+val generatePom = tasks.named<GenerateMavenPom>("generatePomFileForMavenPublication")
+
tasks.shadowJar {
archiveClassifier.set("mojang-mapped")
+ // Needed for Paperclip's install to maven local feature
+ from(generatePom) {
+ into("META-INF/maven/io.papermc.paper/paper")