mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
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.
This commit is contained in:
@@ -46,15 +46,21 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <artifactId>spigot-api</artifactId>
|
- <artifactId>spigot-api</artifactId>
|
||||||
+ <groupId>com.destroystokyo.paper</groupId>
|
+ <groupId>com.destroystokyo.paper</groupId>
|
||||||
+ <artifactId>paper-api</artifactId>
|
+ <artifactId>paper-api</artifactId>
|
||||||
|
<version>${project.version}</version>
|
||||||
|
<scope>compile</scope>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
- <groupId>org.spigotmc</groupId>
|
||||||
|
+ <groupId>com.destroystokyo.paper</groupId>
|
||||||
|
+ <artifactId>paper-mojangapi</artifactId>
|
||||||
+ <version>${project.version}</version>
|
+ <version>${project.version}</version>
|
||||||
+ <scope>compile</scope>
|
+ <scope>compile</scope>
|
||||||
+ </dependency>
|
+ </dependency>
|
||||||
+ <dependency>
|
+ <dependency>
|
||||||
+ <groupId>com.destroystokyo.paper</groupId>
|
+ <groupId>io.papermc</groupId>
|
||||||
+ <artifactId>paper-mojangapi</artifactId>
|
<artifactId>minecraft-server</artifactId>
|
||||||
<version>${project.version}</version>
|
<version>${minecraft.version}-SNAPSHOT</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
</dependency>
|
|
||||||
@@ -0,0 +0,0 @@
|
@@ -0,0 +0,0 @@
|
||||||
<version>8.0.1</version>
|
<version>8.0.1</version>
|
||||||
<scope>compile</scope>
|
<scope>compile</scope>
|
||||||
@@ -100,8 +106,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <descriptionProperty>spigot.desc</descriptionProperty>
|
- <descriptionProperty>spigot.desc</descriptionProperty>
|
||||||
- </configuration>
|
- </configuration>
|
||||||
- <phase>initialize</phase>
|
- <phase>initialize</phase>
|
||||||
+ <phase>compile</phase>
|
- <goals>
|
||||||
<goals>
|
|
||||||
- <goal>describe</goal>
|
- <goal>describe</goal>
|
||||||
- </goals>
|
- </goals>
|
||||||
- </execution>
|
- </execution>
|
||||||
@@ -113,7 +118,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
- <descriptionProperty>craftbukkit.desc</descriptionProperty>
|
- <descriptionProperty>craftbukkit.desc</descriptionProperty>
|
||||||
- </configuration>
|
- </configuration>
|
||||||
- <phase>initialize</phase>
|
- <phase>initialize</phase>
|
||||||
- <goals>
|
+ <phase>compile</phase>
|
||||||
|
<goals>
|
||||||
- <goal>describe</goal>
|
- <goal>describe</goal>
|
||||||
+ <goal>gitdescribe</goal>
|
+ <goal>gitdescribe</goal>
|
||||||
</goals>
|
</goals>
|
||||||
|
@@ -72,7 +72,7 @@ fi
|
|||||||
|
|
||||||
echo "Installing remapped jar..."
|
echo "Installing remapped jar..."
|
||||||
cd "$workdir/CraftBukkit" # Need to be in a directory with a valid POM at the time of install.
|
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
|
if [ "$?" != "0" ]; then
|
||||||
echo "Failed to install remapped jar."
|
echo "Failed to install remapped jar."
|
||||||
exit 1
|
exit 1
|
||||||
|
Reference in New Issue
Block a user