Put pom in correct location for Paperclip install to maven local feature
This commit is contained in:
parent
09ead8b043
commit
0c732e2ef5
9 changed files with 51 additions and 17 deletions
|
@ -17,11 +17,10 @@ index 67fb370cad6924895a6b27052dbd5c1767e3f0c9..3e05459f27c4c5697ae65da504d67a6a
|
|||
/.project
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
new file mode 100644
|
||||
index 0000000000000000000000000000000000000000..21b97f37a4c4d35d80bc1c1b98f55bcfb8d21f20
|
||||
index 0000000000000000000000000000000000000000..80fab4621582aed02cc029900999ceff72e027ef
|
||||
--- /dev/null
|
||||
+++ b/build.gradle.kts
|
||||
@@ -0,0 +1,121 @@
|
||||
+import com.github.jengelman.gradle.plugins.shadow.transformers.AppendingTransformer
|
||||
@@ -0,0 +1,131 @@
|
||||
+import com.github.jengelman.gradle.plugins.shadow.transformers.Log4j2PluginsCacheFileTransformer
|
||||
+import com.github.jengelman.gradle.plugins.shadow.transformers.Transformer
|
||||
+import io.papermc.paperweight.util.Git
|
||||
|
@ -33,6 +32,7 @@ index 0000000000000000000000000000000000000000..21b97f37a4c4d35d80bc1c1b98f55bcf
|
|||
+
|
||||
+plugins {
|
||||
+ java
|
||||
+ `maven-publish`
|
||||
+ id("com.github.johnrengelman.shadow")
|
||||
+}
|
||||
+
|
||||
|
@ -86,6 +86,16 @@ index 0000000000000000000000000000000000000000..21b97f37a4c4d35d80bc1c1b98f55bcf
|
|||
+ }
|
||||
+}
|
||||
+
|
||||
+configure<PublishingExtension> {
|
||||
+ publications.create<MavenPublication>("maven") {
|
||||
+ // todo: confirm this is correct
|
||||
+ from(components["java"])
|
||||
+ artifact(tasks.reobfJar) {
|
||||
+ classifier = "reobf"
|
||||
+ }
|
||||
+ }
|
||||
+}
|
||||
+
|
||||
+tasks.shadowJar {
|
||||
+ listOf(
|
||||
+ "jline", "it.unimi", "org.apache.commons.codec", "org.apache.commons.io",
|
||||
|
|
|
@ -5,7 +5,7 @@ Subject: [PATCH] Build system changes
|
|||
|
||||
|
||||
diff --git a/build.gradle.kts b/build.gradle.kts
|
||||
index ccb67fe90e25010f7c8ca168d60d096ef95c4429..f353524ada2caa05824b1e7ded17a1c00473d906 100644
|
||||
index 80fab4621582aed02cc029900999ceff72e027ef..07be9eb1dd7f0f85e8a36cc4e8df807bae989372 100644
|
||||
--- a/build.gradle.kts
|
||||
+++ b/build.gradle.kts
|
||||
@@ -22,21 +22,24 @@ repositories {
|
||||
|
@ -47,9 +47,19 @@ index ccb67fe90e25010f7c8ca168d60d096ef95c4429..f353524ada2caa05824b1e7ded17a1c0
|
|||
))
|
||||
for (tld in listOf("net", "com", "org")) {
|
||||
attributes(mapOf(
|
||||
@@ -65,7 +69,7 @@ tasks.jar {
|
||||
@@ -73,9 +77,17 @@ configure<PublishingExtension> {
|
||||
}
|
||||
}
|
||||
|
||||
+val generatePom = tasks.named<GenerateMavenPom>("generatePomFileForMavenPublication")
|
||||
+
|
||||
tasks.shadowJar {
|
||||
+ // Needed for Paperclip's install to maven local feature
|
||||
+ from(generatePom) {
|
||||
+ into("META-INF/maven/io.papermc.paper/paper")
|
||||
+ rename { "pom.xml" }
|
||||
+ }
|
||||
+
|
||||
listOf(
|
||||
- "jline", "it.unimi", "org.apache.commons.codec", "org.apache.commons.io",
|
||||
+ "jline", "org.apache.commons.codec", "org.apache.commons.io", // Paper - don't relocate fastutil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue