From e233d9a05813332e51184da8d3040b52359d4a5c 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/POM-Changes.patch | 20 +++++++++++++------- scripts/remap.sh | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Spigot-Server-Patches/POM-Changes.patch b/Spigot-Server-Patches/POM-Changes.patch index 1e5bd20ed2..29e3d0ea24 100644 --- a/Spigot-Server-Patches/POM-Changes.patch +++ b/Spigot-Server-Patches/POM-Changes.patch @@ -46,15 +46,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - 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 - @@ -0,0 +0,0 @@ 8.0.1 compile @@ -100,8 +106,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - spigot.desc - - initialize -+ compile - +- - describe - - @@ -113,7 +118,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 - craftbukkit.desc - - initialize -- ++ compile + - describe + gitdescribe diff --git a/scripts/remap.sh b/scripts/remap.sh index 0d9d64d4bb..cc689aae28 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