Apply shadow removal patch

This commit is contained in:
Jason Penilla 2024-04-23 13:41:25 -07:00
parent dd6ce09922
commit 598a1cb947
No known key found for this signature in database
GPG Key ID: 0E75A301420E48F8

View File

@ -5,7 +5,7 @@ Subject: [PATCH] build: replace use of shadow plugin
diff --git a/build.gradle.kts b/build.gradle.kts
index 73b3e61cbbdf5025c24d289597648f01f632a5e3..c7210eb94000eaac8be6e127a9eb9867daec303b 100644
index 3b9eb1fdc0685aec10b13a8e0e6b3afa4d953250..d9dc7a131d92efea9f37220227e1964e673cd024 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -4,7 +4,6 @@ import xyz.jpenilla.runpaper.task.RunServer
@ -16,12 +16,12 @@ index 73b3e61cbbdf5025c24d289597648f01f632a5e3..c7210eb94000eaac8be6e127a9eb9867
id("xyz.jpenilla.run-paper") version "2.2.3" apply false
}
@@ -109,14 +108,22 @@ publishing {
@@ -99,14 +98,22 @@ publishing {
}
}
-tasks.shadowJar {
- configurations = listOf(project.configurations.vanillaServer.get(), alsoShade)
- configurations = listOf(project.configurations.vanillaServer.get(), alsoShade) // Paper
+tasks.serverJar {
+ from(alsoShade.elements.map {
+ it.map { f ->