From 563f77ad230c6a0e5b3757e1dc7979ff2ad73b39 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Tue, 1 Sep 2020 23:20:58 +0100 Subject: [PATCH] install remapped server jar to paper package space Spigot has been stripping the minecraft-server jar down in order to reduce it's size, primarily by removing classes they don't use from fastutil. as we use fastutil and offer it as API, this is useless to us, and creates headaches when it breaks builds due to spigots version of this being installed. --- Spigot-Server-Patches/0001-POM-Changes.patch | 24 ++++++++++++-------- scripts/remap.sh | 2 +- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/Spigot-Server-Patches/0001-POM-Changes.patch b/Spigot-Server-Patches/0001-POM-Changes.patch index 30ad54fed..b8df4a4c5 100644 --- a/Spigot-Server-Patches/0001-POM-Changes.patch +++ b/Spigot-Server-Patches/0001-POM-Changes.patch @@ -5,7 +5,7 @@ Subject: [PATCH] POM Changes diff --git a/pom.xml b/pom.xml -index 56c23681feafa2760740ad03cb7f5f274df6e20d..3dfb494e1f09da7a6ebf6c740d4e9e06eb7d4121 100644 +index 56c23681feafa2760740ad03cb7f5f274df6e20d..b8c8dc1a06a8ed93fccd419155fc9403805ea2fa 100644 --- a/pom.xml +++ b/pom.xml @@ -1,15 +1,14 @@ @@ -28,7 +28,7 @@ index 56c23681feafa2760740ad03cb7f5f274df6e20d..3dfb494e1f09da7a6ebf6c740d4e9e06 UTF-8 unknown 1.16.2 -@@ -19,16 +18,22 @@ +@@ -19,21 +18,27 @@ @@ -46,15 +46,21 @@ index 56c23681feafa2760740ad03cb7f5f274df6e20d..3dfb494e1f09da7a6ebf6c740d4e9e06 - spigot-api + com.destroystokyo.paper + paper-api + ${project.version} + compile + + +- org.spigotmc ++ com.destroystokyo.paper ++ paper-mojangapi + ${project.version} + compile + + -+ com.destroystokyo.paper -+ paper-mojangapi - ${project.version} ++ io.papermc + minecraft-server + ${minecraft.version}-SNAPSHOT compile - @@ -50,6 +55,17 @@ 8.0.1 compile @@ -100,8 +106,7 @@ index 56c23681feafa2760740ad03cb7f5f274df6e20d..3dfb494e1f09da7a6ebf6c740d4e9e06 - spigot.desc - - initialize -+ compile - +- - describe - - @@ -113,7 +118,8 @@ index 56c23681feafa2760740ad03cb7f5f274df6e20d..3dfb494e1f09da7a6ebf6c740d4e9e06 - craftbukkit.desc - - initialize -- ++ compile + - describe + gitdescribe diff --git a/scripts/remap.sh b/scripts/remap.sh index 0d9d64d4b..cc689aae2 100755 --- a/scripts/remap.sh +++ b/scripts/remap.sh @@ -72,7 +72,7 @@ fi echo "Installing remapped jar..." cd "$workdir/CraftBukkit" # Need to be in a directory with a valid POM at the time of install. -mvn install:install-file -q -Dfile="$jarpath-mapped.jar" -Dpackaging=jar -DgroupId=org.spigotmc -DartifactId=minecraft-server -Dversion="$minecraftversion-SNAPSHOT" +mvn install:install-file -q -Dfile="$jarpath-mapped.jar" -Dpackaging=jar -DgroupId=io.papermc -DartifactId=minecraft-server -Dversion="$minecraftversion-SNAPSHOT" if [ "$?" != "0" ]; then echo "Failed to install remapped jar." exit 1