forked from Electroid/SportPaper
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow SportPaper to be built with Java 17 (Electroid#126)
- Loading branch information
Showing
11 changed files
with
134 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
From 81dd7459c531be2ee75c69944c3102c2acdbd2e0 Mon Sep 17 00:00:00 2001 | ||
From: "BT (calcastor/mame)" <[email protected]> | ||
Date: Mon, 6 Feb 2023 23:31:31 -0800 | ||
Subject: [PATCH] Resolve build issues with Java 17 | ||
|
||
https://github.com/CobbleSword/NachoSpigot/commit/944e02c131b4f4f12a3140778fc9d681f773ae2c | ||
|
||
diff --git a/pom.xml b/pom.xml | ||
index 76533897..ab017e4b 100644 | ||
--- a/pom.xml | ||
+++ b/pom.xml | ||
@@ -28,14 +28,6 @@ | ||
</repository> | ||
</repositories> | ||
|
||
- <!-- required until fixed plexus-compiler-eclipse is deployed --> | ||
- <pluginRepositories> | ||
- <pluginRepository> | ||
- <id>spigotmc-public</id> | ||
- <url>https://hub.spigotmc.org/nexus/content/groups/public/</url> | ||
- </pluginRepository> | ||
- </pluginRepositories> | ||
- | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.google.code.findbugs</groupId> | ||
@@ -115,22 +107,7 @@ | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
- <!-- versions after this appear to be broken --> | ||
<version>3.1</version> | ||
- <configuration> | ||
- <!-- we use the Eclipse compiler as it doesn't need a JDK --> | ||
- <compilerId>eclipse</compilerId> | ||
- <!-- source and target are ignored if this isn't true --> | ||
- <optimize>true</optimize> | ||
- </configuration> | ||
- <dependencies> | ||
- <!-- we need our custom version as it fixes some bugs on case sensitive file systems --> | ||
- <dependency> | ||
- <groupId>org.codehaus.plexus</groupId> | ||
- <artifactId>plexus-compiler-eclipse</artifactId> | ||
- <version>2.5.0-spigotmc</version> | ||
- </dependency> | ||
- </dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
-- | ||
2.39.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 62c738039a2cff268d2f5a9dbf2916741ff4ab1f Mon Sep 17 00:00:00 2001 | ||
From bc723759409412b6e0964f958f8c5d5ba681bb10 Mon Sep 17 00:00:00 2001 | ||
From: OhPointFive <[email protected]> | ||
Date: Thu, 7 Jul 2022 00:33:31 -0400 | ||
Subject: [PATCH] Add events for water source creation | ||
|
@@ -80,4 +80,5 @@ index be8bb5be..cc4d7319 100644 | |
world.setAir(blockposition); | ||
} else { | ||
-- | ||
2.29.2 | ||
2.39.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From 6dd05da521c5e6c6bf38ad396cc6352265ff5eef Mon Sep 17 00:00:00 2001 | ||
From 6d14e77948d1ea5f80ca8d55030901b1351ab31a Mon Sep 17 00:00:00 2001 | ||
From: woofdoggo <[email protected]> | ||
Date: Wed, 11 May 2022 16:49:54 -0400 | ||
Subject: [PATCH] Apply explosion knockback to projectiles | ||
|
@@ -23,4 +23,5 @@ index 0d6ccbf7..e90b1c23 100644 | |
double d14 = entity instanceof EntityHuman && world.paperSpigotConfig.disableExplosionKnockback ? 0 : EnchantmentProtection.a(entity, d13); // PaperSpigot | ||
|
||
-- | ||
2.36.1 | ||
2.39.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
From 3a297b7763c4e609f44e9fbc48b5c8090b1030a7 Mon Sep 17 00:00:00 2001 | ||
From 720e469e8fb7cfeb3710e72294f8ff32edd2ddcc Mon Sep 17 00:00:00 2001 | ||
From: linsaftw <[email protected]> | ||
Date: Sun, 25 Apr 2021 11:53:18 -0300 | ||
Subject: [PATCH] Patch Book Exploits | ||
|
||
|
||
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java | ||
index 0b5ada01..91d61016 100644 | ||
index 0b5ada01..4175501d 100644 | ||
--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java | ||
+++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBook.java | ||
@@ -33,8 +33,10 @@ public class CraftMetaBook extends CraftMetaItem implements BookMeta { | ||
|
@@ -148,4 +148,5 @@ index 0b5ada01..91d61016 100644 | |
|
||
private boolean isValidPage(int page) { | ||
-- | ||
2.31.1 | ||
2.39.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
From 42f916afdb36bd909528c561005c98395a503a58 Mon Sep 17 00:00:00 2001 | ||
From 0325b9e8caeded0950255f34ede21315daf7217c Mon Sep 17 00:00:00 2001 | ||
From: hpfxd <[email protected]> | ||
Date: Wed, 27 Oct 2021 06:29:44 -0400 | ||
Subject: [PATCH] Update to Netty 4.1.x | ||
|
||
|
||
diff --git a/pom.xml b/pom.xml | ||
index 2dee42e5..e6ea4704 100644 | ||
index 2dee42e5..e6bdad05 100644 | ||
--- a/pom.xml | ||
+++ b/pom.xml | ||
@@ -27,6 +27,11 @@ | ||
|
@@ -316,4 +316,5 @@ index e2eb3054..9a075fef 100644 | |
+ // SportPaper end | ||
} | ||
-- | ||
2.38.1 | ||
2.39.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
From c678dc7693d1801560d10b7cc32c1909081a33d7 Mon Sep 17 00:00:00 2001 | ||
From 8aee7038640e23b9c81a6f2668fc391dd4a82849 Mon Sep 17 00:00:00 2001 | ||
From: Aikar <[email protected]> | ||
Date: Sun, 31 Oct 2021 09:46:32 -0400 | ||
Subject: [PATCH] Set cap on JDK per-thread native byte buffer cache | ||
|
@@ -29,4 +29,5 @@ index d1ce7a86..737904d4 100644 | |
{ | ||
acceptsAll(asList("?", "help"), "Show the help"); | ||
-- | ||
2.38.1 | ||
2.39.1 | ||
|
50 changes: 50 additions & 0 deletions
50
patches/server/0217-Resolve-build-issues-with-Java-17.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
From 035add76003f231d327e10fd7718411140e61b18 Mon Sep 17 00:00:00 2001 | ||
From: "BT (calcastor/mame)" <[email protected]> | ||
Date: Mon, 6 Feb 2023 23:30:48 -0800 | ||
Subject: [PATCH] Resolve build issues with Java 17 | ||
|
||
https://github.com/CobbleSword/NachoSpigot/commit/944e02c131b4f4f12a3140778fc9d681f773ae2c | ||
|
||
diff --git a/pom.xml b/pom.xml | ||
index e6bdad05..6959c62a 100644 | ||
--- a/pom.xml | ||
+++ b/pom.xml | ||
@@ -105,12 +105,7 @@ | ||
</dependency> | ||
</dependencies> | ||
|
||
- <!-- required until fixed plexus-compiler-eclipse is deployed --> | ||
<pluginRepositories> | ||
- <pluginRepository> | ||
- <id>spigotmc-public</id> | ||
- <url>https://hub.spigotmc.org/nexus/content/groups/public/</url> | ||
- </pluginRepository> | ||
<!-- PaperSpigot - Repo for gitdescribe --> | ||
<pluginRepository> | ||
<id>destroystokyo</id> | ||
@@ -281,22 +276,7 @@ | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
- <!-- versions after this appear to be broken --> | ||
<version>3.1</version> | ||
- <configuration> | ||
- <!-- we use the Eclipse compiler as it doesn't need a JDK --> | ||
- <compilerId>eclipse</compilerId> | ||
- <!-- source and target are ignored if this isn't true --> | ||
- <optimize>true</optimize> | ||
- </configuration> | ||
- <dependencies> | ||
- <!-- we need our custom version as it fixes some bugs on case sensitive file systems --> | ||
- <dependency> | ||
- <groupId>org.codehaus.plexus</groupId> | ||
- <artifactId>plexus-compiler-eclipse</artifactId> | ||
- <version>2.5.0-spigotmc</version> | ||
- </dependency> | ||
- </dependencies> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
-- | ||
2.39.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters