Update server build file
This commit is contained in:
parent
6ccc23f457
commit
35aeb0ddeb
10 changed files with 42 additions and 66 deletions
|
@ -5,10 +5,10 @@ Subject: [PATCH] Build system changes
|
|||
|
||||
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
index 273746fe476a9a09ebca01c6ecd814b70fe1b4c2..6cab6b2f348366e7e0357638ac11df5961a7388d 100644
|
||||
index 9778c18a2822b00d48134583de87ea281623427d..19d4a798427de2c78b62a92246d47607a050a11d 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -17,10 +17,9 @@ repositories {
|
||||
@@ -14,10 +14,9 @@ repositories {
|
||||
dependencies {
|
||||
implementation(project(":Paper-API"))
|
||||
implementation("jline:jline:2.12.1")
|
||||
|
@ -21,24 +21,17 @@ index 273746fe476a9a09ebca01c6ecd814b70fe1b4c2..6cab6b2f348366e7e0357638ac11df59
|
|||
implementation("com.googlecode.json-simple:json-simple:1.1.1") {
|
||||
// This includes junit transitively for whatever reason
|
||||
isTransitive = false
|
||||
@@ -52,6 +51,7 @@ tasks.jar {
|
||||
"Specification-Title" to "Bukkit",
|
||||
"Specification-Version" to project.version,
|
||||
"Specification-Vendor" to "Bukkit Team",
|
||||
+ "Multi-Release" to "true", // Paper
|
||||
)
|
||||
for (tld in setOf("net", "com", "org")) {
|
||||
attributes("$tld/bukkit", "Sealed" to true)
|
||||
@@ -77,9 +77,17 @@ relocation {
|
||||
@@ -74,10 +73,18 @@ relocation {
|
||||
}
|
||||
}
|
||||
|
||||
+val generatePom = tasks.named<GenerateMavenPom>("generatePomFileForMavenPublication")
|
||||
+
|
||||
tasks.shadowJar {
|
||||
configurations = listOf(project.configurations.vanillaServer.get())
|
||||
archiveClassifier.set("mojang-mapped")
|
||||
|
||||
+ // Needed for Paperclip's install to maven local feature
|
||||
+ // Needed for Paperclip's install to maven local feature // todo: are we keeping this? if so is this still correct?
|
||||
+ from(generatePom) {
|
||||
+ into("META-INF/maven/io.papermc.paper/paper")
|
||||
+ rename { "pom.xml" }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue