Skip to content

Commit ae6fec6

Browse files
authored
Updated Upstream (Bukkit/CraftBukkit/Spigot) (#7116)
1 parent 6178609 commit ae6fec6

File tree

240 files changed

+435
-456
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+435
-456
lines changed

patches/api/0001-Convert-project-to-Gradle.patch

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ index e431e3435737e28394d81b56568a08b3c3148b9b..b23bde3b5e881f146539a307d0a59f21
2727
+/.factorypath
2828
diff --git a/build.gradle.kts b/build.gradle.kts
2929
new file mode 100644
30-
index 0000000000000000000000000000000000000000..1b16a242187079f80720fc1990ee09bb6a5c2768
30+
index 0000000000000000000000000000000000000000..c76bfbcfbe034700bdbd9396643cfca625273a14
3131
--- /dev/null
3232
+++ b/build.gradle.kts
3333
@@ -0,0 +1,66 @@
@@ -47,17 +47,17 @@ index 0000000000000000000000000000000000000000..1b16a242187079f80720fc1990ee09bb
4747
+ api("com.google.guava:guava:31.0.1-jre")
4848
+ api("com.google.code.gson:gson:2.8.8")
4949
+ api("net.md-5:bungeecord-chat:1.16-R0.4")
50-
+ api("org.yaml:snakeyaml:1.28")
50+
+ api("org.yaml:snakeyaml:1.30")
5151
+
52-
+ compileOnly("org.apache.maven:maven-resolver-provider:3.8.1")
53-
+ compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.0")
54-
+ compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.0")
52+
+ compileOnly("org.apache.maven:maven-resolver-provider:3.8.4")
53+
+ compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.2")
54+
+ compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.2")
5555
+
56-
+ val annotations = "org.jetbrains:annotations-java5:21.0.1"
56+
+ val annotations = "org.jetbrains:annotations-java5:23.0.0"
5757
+ compileOnly(annotations)
5858
+ testCompileOnly(annotations)
5959
+
60-
+ testImplementation("junit:junit:4.13.1")
60+
+ testImplementation("junit:junit:4.13.2")
6161
+ testImplementation("org.hamcrest:hamcrest-library:1.3")
6262
+ testImplementation("org.ow2.asm:asm-tree:9.2")
6363
+}
@@ -92,14 +92,14 @@ index 0000000000000000000000000000000000000000..1b16a242187079f80720fc1990ee09bb
9292
+tasks.withType<Javadoc> {
9393
+ (options as StandardJavadocDocletOptions).links(
9494
+ "https://guava.dev/releases/31.0.1-jre/api/docs/",
95-
+ "https://javadoc.io/doc/org.yaml/snakeyaml/1.28/",
96-
+ "https://javadoc.io/doc/org.jetbrains/annotations-java5/21.0.1/",
95+
+ "https://javadoc.io/doc/org.yaml/snakeyaml/1.30/",
96+
+ "https://javadoc.io/doc/org.jetbrains/annotations-java5/23.0.0/",
9797
+ "https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/",
9898
+ )
9999
+}
100100
diff --git a/pom.xml b/pom.xml
101101
deleted file mode 100644
102-
index 0e69806e4b6fa44d1d2f8ebf1cf0dc4ef386e69e..0000000000000000000000000000000000000000
102+
index 9c130bf7fe7ec4b6b5d4f4c30cdbe6dc75b0f9a0..0000000000000000000000000000000000000000
103103
--- a/pom.xml
104104
+++ /dev/null
105105
@@ -1,262 +0,0 @@
@@ -166,40 +166,40 @@ index 0e69806e4b6fa44d1d2f8ebf1cf0dc4ef386e69e..00000000000000000000000000000000
166166
- <dependency>
167167
- <groupId>org.yaml</groupId>
168168
- <artifactId>snakeyaml</artifactId>
169-
- <version>1.28</version>
169+
- <version>1.30</version>
170170
- <scope>compile</scope>
171171
- </dependency>
172172
- <!-- not part of the API proper -->
173173
- <dependency>
174174
- <groupId>org.apache.maven</groupId>
175175
- <artifactId>maven-resolver-provider</artifactId>
176-
- <version>3.8.1</version>
176+
- <version>3.8.4</version>
177177
- <scope>provided</scope>
178178
- </dependency>
179179
- <dependency>
180180
- <groupId>org.apache.maven.resolver</groupId>
181181
- <artifactId>maven-resolver-connector-basic</artifactId>
182-
- <version>1.7.0</version>
182+
- <version>1.7.2</version>
183183
- <scope>provided</scope>
184184
- </dependency>
185185
- <dependency>
186186
- <groupId>org.apache.maven.resolver</groupId>
187187
- <artifactId>maven-resolver-transport-http</artifactId>
188-
- <version>1.7.0</version>
188+
- <version>1.7.2</version>
189189
- <scope>provided</scope>
190190
- </dependency>
191191
- <!-- annotations -->
192192
- <dependency>
193193
- <groupId>org.jetbrains</groupId>
194194
- <artifactId>annotations-java5</artifactId>
195-
- <version>21.0.1</version>
195+
- <version>23.0.0</version>
196196
- <scope>provided</scope>
197197
- </dependency>
198198
- <!-- testing -->
199199
- <dependency>
200200
- <groupId>junit</groupId>
201201
- <artifactId>junit</artifactId>
202-
- <version>4.13.1</version>
202+
- <version>4.13.2</version>
203203
- <scope>test</scope>
204204
- </dependency>
205205
- <dependency>
@@ -248,7 +248,7 @@ index 0e69806e4b6fa44d1d2f8ebf1cf0dc4ef386e69e..00000000000000000000000000000000
248248
- <dependency>
249249
- <groupId>org.eclipse.jdt</groupId>
250250
- <artifactId>ecj</artifactId>
251-
- <version>3.27.0</version>
251+
- <version>3.28.0</version>
252252
- </dependency>
253253
- </dependencies>
254254
- </plugin>
@@ -299,8 +299,8 @@ index 0e69806e4b6fa44d1d2f8ebf1cf0dc4ef386e69e..00000000000000000000000000000000
299299
- <configuration>
300300
- <links>
301301
- <link>https://guava.dev/releases/31.0.1-jre/api/docs/</link>
302-
- <link>https://javadoc.io/doc/org.yaml/snakeyaml/1.28/</link>
303-
- <link>https://javadoc.io/doc/org.jetbrains/annotations-java5/21.0.1/</link>
302+
- <link>https://javadoc.io/doc/org.yaml/snakeyaml/1.30/</link>
303+
- <link>https://javadoc.io/doc/org.jetbrains/annotations-java5/23.0.0/</link>
304304
- <link>https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/</link>
305305
- </links>
306306
- </configuration>

patches/api/0002-Build-system-changes.patch

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@ Subject: [PATCH] Build system changes
55

66

77
diff --git a/build.gradle.kts b/build.gradle.kts
8-
index 1b16a242187079f80720fc1990ee09bb6a5c2768..b6ec62c00140a1e225e93c4b0413c0767f4ca5b8 100644
8+
index c76bfbcfbe034700bdbd9396643cfca625273a14..364b6215d2facb0273a67ff605ccb8e707e080b8 100644
99
--- a/build.gradle.kts
1010
+++ b/build.gradle.kts
1111
@@ -15,15 +15,27 @@ dependencies {
1212
api("com.google.code.gson:gson:2.8.8")
1313
api("net.md-5:bungeecord-chat:1.16-R0.4")
14-
api("org.yaml:snakeyaml:1.28")
14+
api("org.yaml:snakeyaml:1.30")
1515
+ // Paper start
1616
+ api("com.googlecode.json-simple:json-simple:1.1.1") {
1717
+ isTransitive = false // includes junit
1818
+ }
1919
+ // Paper end
2020

21-
compileOnly("org.apache.maven:maven-resolver-provider:3.8.1")
22-
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.0")
23-
compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.0")
21+
compileOnly("org.apache.maven:maven-resolver-provider:3.8.4")
22+
compileOnly("org.apache.maven.resolver:maven-resolver-connector-basic:1.7.2")
23+
compileOnly("org.apache.maven.resolver:maven-resolver-transport-http:1.7.2")
2424
+ compileOnly("com.google.code.findbugs:jsr305:1.3.9") // Paper
2525

26-
- val annotations = "org.jetbrains:annotations-java5:21.0.1"
27-
+ val annotations = "org.jetbrains:annotations:21.0.1" // Paper - we don't want Java 5 annotations...
26+
- val annotations = "org.jetbrains:annotations-java5:23.0.0"
27+
+ val annotations = "org.jetbrains:annotations:23.0.0" // Paper - we don't want Java 5 annotations...
2828
compileOnly(annotations)
2929
testCompileOnly(annotations)
3030

@@ -34,15 +34,15 @@ index 1b16a242187079f80720fc1990ee09bb6a5c2768..b6ec62c00140a1e225e93c4b0413c076
3434
+ testCompileOnly(checkerAnnotations)
3535
+ // Paper end
3636
+
37-
testImplementation("junit:junit:4.13.1")
37+
testImplementation("junit:junit:4.13.2")
3838
testImplementation("org.hamcrest:hamcrest-library:1.3")
3939
testImplementation("org.ow2.asm:asm-tree:9.2")
4040
@@ -60,7 +72,7 @@ tasks.withType<Javadoc> {
4141
(options as StandardJavadocDocletOptions).links(
4242
"https://guava.dev/releases/31.0.1-jre/api/docs/",
43-
"https://javadoc.io/doc/org.yaml/snakeyaml/1.28/",
44-
- "https://javadoc.io/doc/org.jetbrains/annotations-java5/21.0.1/",
45-
+ "https://javadoc.io/doc/org.jetbrains/annotations/21.0.1/", // Paper - we don't want Java 5 annotations
43+
"https://javadoc.io/doc/org.yaml/snakeyaml/1.30/",
44+
- "https://javadoc.io/doc/org.jetbrains/annotations-java5/23.0.0/",
45+
+ "https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/", // Paper - we don't want Java 5 annotations
4646
"https://javadoc.io/doc/net.md-5/bungeecord-chat/1.16-R0.4/",
4747
)
4848
}

patches/api/0004-Add-FastUtil-to-Bukkit.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Subject: [PATCH] Add FastUtil to Bukkit
66
Doesn't expose to plugins, just allows Paper-API to use it for optimization
77

88
diff --git a/build.gradle.kts b/build.gradle.kts
9-
index 1168642d832727af2173dfcae6d132a9d44132c1..a1fd76a7a7fea04a67752ff60834b566fe6f5ec5 100644
9+
index 364b6215d2facb0273a67ff605ccb8e707e080b8..3777d12874ede329410a6bf1c0533deb44924d73 100644
1010
--- a/build.gradle.kts
1111
+++ b/build.gradle.kts
1212
@@ -19,6 +19,7 @@ dependencies {
@@ -16,4 +16,4 @@ index 1168642d832727af2173dfcae6d132a9d44132c1..a1fd76a7a7fea04a67752ff60834b566
1616
+ api("it.unimi.dsi:fastutil:8.5.6")
1717
// Paper end
1818

19-
compileOnly("org.apache.maven:maven-resolver-provider:3.8.1")
19+
compileOnly("org.apache.maven:maven-resolver-provider:3.8.4")

patches/api/0006-Timings-v2.patch

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2782,10 +2782,10 @@ index 0000000000000000000000000000000000000000..5989ee21297935651b0edd44b8239e65
27822782
+ }
27832783
+}
27842784
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java
2785-
index 806aeee78956fc79fda62c706f40d3edd2ef8388..a238302f2a12194aa30a88867070705dc749b36b 100644
2785+
index 072bcbbbf167e02ce5014b672f2cf63122d29b21..de7f303bce9e2454eaec12131cd1439a54281c7e 100644
27862786
--- a/src/main/java/org/bukkit/Bukkit.java
27872787
+++ b/src/main/java/org/bukkit/Bukkit.java
2788-
@@ -704,7 +704,6 @@ public final class Bukkit {
2788+
@@ -747,7 +747,6 @@ public final class Bukkit {
27892789
*/
27902790
public static void reload() {
27912791
server.reload();
@@ -2794,10 +2794,10 @@ index 806aeee78956fc79fda62c706f40d3edd2ef8388..a238302f2a12194aa30a88867070705d
27942794

27952795
/**
27962796
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java
2797-
index 70d711b51e6bb3860c17e631fe5892b6bde9b245..3e91c4000c468fd8bdcb938e942a7bbf4988cab2 100644
2797+
index 2bfccae871b92749fa5893b5a7ff327fc93695ad..31e989bdaf60d38e14c84c4a0a31ede6e1a72e86 100644
27982798
--- a/src/main/java/org/bukkit/Server.java
27992799
+++ b/src/main/java/org/bukkit/Server.java
2800-
@@ -1465,6 +1465,26 @@ public interface Server extends PluginMessageRecipient {
2800+
@@ -1500,6 +1500,26 @@ public interface Server extends PluginMessageRecipient {
28012801
throw new UnsupportedOperationException("Not supported yet.");
28022802
}
28032803

@@ -3377,10 +3377,10 @@ index 2a145d851ce30360aa39549745bd87590c034584..00000000000000000000000000000000
33773377
- // Spigot end
33783378
-}
33793379
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
3380-
index 9a864f54992cd0a6987d095ef3b98dd500d0eff9..4a20f96268ea831ed4fdd236b582abdf07dc4748 100644
3380+
index 709016bdc30d5502765af842d4fc83af53779a9e..c36e4ceb1094aa9469f976e0952e2725358ff761 100644
33813381
--- a/src/main/java/org/bukkit/entity/Player.java
33823382
+++ b/src/main/java/org/bukkit/entity/Player.java
3383-
@@ -1469,7 +1469,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
3383+
@@ -1610,7 +1610,14 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
33843384
*/
33853385
public void sendMessage(@NotNull net.md_5.bungee.api.ChatMessageType position, @Nullable UUID sender, @NotNull net.md_5.bungee.api.chat.BaseComponent... components) {
33863386
throw new UnsupportedOperationException("Not supported yet.");

0 commit comments

Comments
 (0)