Fix artifact ids

This commit is contained in:
Jason Penilla 2021-06-16 16:23:02 -07:00
parent 7be3024c75
commit a26d1aa427
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8
10 changed files with 46 additions and 40 deletions

View file

@ -5,10 +5,10 @@ Subject: [PATCH] Build system changes
diff --git a/build.gradle.kts b/build.gradle.kts
index 792fea417637493814071850e780e9923d75a637..c255556783133278aaa0720969324f4c870ad7be 100644
index 84af6353d060c65d5f125559becc011aeba8a842..4d6e92815951c3291fb865381677c52673e53462 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -21,21 +21,24 @@ repositories {
@@ -22,21 +22,24 @@ repositories {
dependencies {
implementation(project(":Paper-API"))
implementation("jline:jline:2.12.1")
@ -37,23 +37,23 @@ index 792fea417637493814071850e780e9923d75a637..c255556783133278aaa0720969324f4c
testImplementation("junit:junit:4.13.1")
testImplementation("org.hamcrest:hamcrest-library:1.3")
}
@@ -52,7 +55,8 @@ tasks.jar {
"Implementation-Vendor" to SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'").format(Date()), // Paper
@@ -55,6 +58,7 @@ tasks.jar {
"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(
@@ -72,9 +76,17 @@ 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)
@@ -72,11 +76,19 @@ 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")