Skip to content
This repository was archived by the owner on Jun 19, 2021. It is now read-only.

Commit f01cf25

Browse files
author
Simon Gardling
committed
require java 11
bump maven-compiler-plugin while I'm at it fix Jenkinsfile whoops I don't think that's even necessary
1 parent 342e74b commit f01cf25

12 files changed

+115
-10
lines changed

Jenkinsfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ pipeline {
33
options { timestamps() }
44
stages {
55
stage('Cleanup') {
6+
tools {
7+
jdk "OpenJDK 11"
8+
}
69
steps {
710
scmSkip(deleteBuild: true, skipPattern:'.*\\[CI-SKIP\\].*')
811
sh 'git config --global gc.auto 0'
@@ -14,6 +17,9 @@ pipeline {
1417
}
1518
}
1619
stage('Init project & submodules') {
20+
tools {
21+
jdk "OpenJDK 11"
22+
}
1723
steps {
1824
withMaven(
1925
maven: '3',

PATCHES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ This is an overview over all patches that are currently used.
434434
| server | Zombie horse naturally spawn | William Blake Galbreath | |
435435
| server | add config for logging login location | Simon Gardling | |
436436
| server | dont load chunks for physics | Aikar | |
437+
| server | java 11 | Simon Gardling | |
438+
| api | java 11 | Simon Gardling | |
437439
| server | lithium DataTrackerMixin | JellySquid | tr7zw |
438440
| server | lithium HashedList | JellySquid | |
439441
| server | lithium MixinBox | JellySquid | |

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ subprojects {
5959
}
6060

6161
java {
62-
if(JavaVersion.VERSION_1_8 > JavaVersion.current()){
63-
error("This build must be run with Java 8 or better")
62+
if(JavaVersion.VERSION_11 > JavaVersion.current()){
63+
error("This build must be run with Java 11 or later")
6464
}
65-
sourceCompatibility = JavaVersion.VERSION_1_8
65+
sourceCompatibility = JavaVersion.VERSION_11
6666
targetCompatibility = JavaVersion.current()
6767
withSourcesJar()
6868
}

patches/api/0001-Modify-POM.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Subject: [PATCH] Modify POM
55

66

77
diff --git a/pom.xml b/pom.xml
8-
index 6c200882954adc4831307f3d6dfa3202571fb30b..1bf7c7d0a192f4b05611075537a4d718799190a1 100644
8+
index 6c200882954adc4831307f3d6dfa3202571fb30b..fce4921f723e74eeb8db0d428647143b1c923c68 100644
99
--- a/pom.xml
1010
+++ b/pom.xml
1111
@@ -3,18 +3,18 @@
@@ -94,3 +94,12 @@ index 6c200882954adc4831307f3d6dfa3202571fb30b..1bf7c7d0a192f4b05611075537a4d718
9494
</dependency>
9595
</dependencies>
9696

97+
@@ -214,7 +227,7 @@
98+
<plugin>
99+
<groupId>org.apache.maven.plugins</groupId>
100+
<artifactId>maven-shade-plugin</artifactId>
101+
- <version>3.2.3</version>
102+
+ <version>3.2.4</version>
103+
<executions>
104+
<execution>
105+
<phase>package</phase>

patches/api/0003-Add-GameProfileLookupEvent.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Subject: [PATCH] Add GameProfileLookupEvent
55

66

77
diff --git a/pom.xml b/pom.xml
8-
index 1bf7c7d0a192f4b05611075537a4d718799190a1..ce3676f8f8db8cff686d4cdf47b496d51e0af7df 100644
8+
index fce4921f723e74eeb8db0d428647143b1c923c68..72348d16df2965a94ad4a0aaa805b4ceb2a7cfc9 100644
99
--- a/pom.xml
1010
+++ b/pom.xml
1111
@@ -42,6 +42,10 @@

patches/api/0005-Add-NBT-API-as-a-first-class-lib.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Subject: [PATCH] Add NBT API as a first-class lib
55

66

77
diff --git a/pom.xml b/pom.xml
8-
index ce3676f8f8db8cff686d4cdf47b496d51e0af7df..4689aa0788afb7fe5b7c8d1a906373bef2744e91 100644
8+
index 72348d16df2965a94ad4a0aaa805b4ceb2a7cfc9..2f38afd3850260933a8398165945162d4cb3ee72 100644
99
--- a/pom.xml
1010
+++ b/pom.xml
1111
@@ -46,6 +46,11 @@

patches/api/0009-java-11.patch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Simon Gardling <[email protected]>
3+
Date: Fri, 23 Apr 2021 11:11:13 -0400
4+
Subject: [PATCH] java 11
5+
6+
7+
diff --git a/pom.xml b/pom.xml
8+
index 2f38afd3850260933a8398165945162d4cb3ee72..c3ab38266cfa232969a5fe9a05c3bf0ca355ada9 100644
9+
--- a/pom.xml
10+
+++ b/pom.xml
11+
@@ -19,8 +19,8 @@
12+
13+
<properties>
14+
<!-- <skipTests>true</skipTests> Paper - This [was] not going to end well -->
15+
- <maven.compiler.source>1.8</maven.compiler.source>
16+
- <maven.compiler.target>1.8</maven.compiler.target>
17+
+ <maven.compiler.source>11</maven.compiler.source>
18+
+ <maven.compiler.target>11</maven.compiler.target>
19+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
20+
</properties>
21+

patches/server/0001-Modify-POM.patch

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Subject: [PATCH] Modify POM
55

66

77
diff --git a/pom.xml b/pom.xml
8-
index 6fe8dad8df109531f2b38fbfcb58b6807dbb8cf0..48c53278ab9a02c614219e87fbe0a52f2c322e96 100644
8+
index 6fe8dad8df109531f2b38fbfcb58b6807dbb8cf0..158eaf81874983f4a703e188b56ecc2a4af97469 100644
99
--- a/pom.xml
1010
+++ b/pom.xml
1111
@@ -1,11 +1,11 @@
@@ -142,3 +142,12 @@ index 6fe8dad8df109531f2b38fbfcb58b6807dbb8cf0..48c53278ab9a02c614219e87fbe0a52f
142142
<scmDirectory>..</scmDirectory>
143143
</configuration>
144144
<executions>
145+
@@ -261,7 +289,7 @@
146+
<plugin>
147+
<groupId>org.apache.maven.plugins</groupId>
148+
<artifactId>maven-shade-plugin</artifactId>
149+
- <version>3.2.3</version>
150+
+ <version>3.2.4</version>
151+
<executions>
152+
<execution>
153+
<phase>package</phase>

patches/server/0003-Utilities.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Co-authored-by: Mykyta Komarnytskyy <[email protected]>
99
Co-authored-by: Ivan Pekov <[email protected]>
1010

1111
diff --git a/pom.xml b/pom.xml
12-
index 48c53278ab9a02c614219e87fbe0a52f2c322e96..3a05118d764a6a934b4f834c3080e4ed20c227e9 100644
12+
index 158eaf81874983f4a703e188b56ecc2a4af97469..a30e47622f2f8902877265e32a21a2ff9d48f50a 100644
1313
--- a/pom.xml
1414
+++ b/pom.xml
1515
@@ -197,6 +197,12 @@

patches/server/0009-Add-NBT-API-as-a-first-class-lib.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Subject: [PATCH] Add NBT API as a first-class lib
55

66

77
diff --git a/pom.xml b/pom.xml
8-
index 3a05118d764a6a934b4f834c3080e4ed20c227e9..d0259f18488e1ecf0276865e0ff7958726a40033 100644
8+
index a30e47622f2f8902877265e32a21a2ff9d48f50a..c17ecfee739298ad4d0ecb0f9d8eb622468250ab 100644
99
--- a/pom.xml
1010
+++ b/pom.xml
1111
@@ -374,6 +374,10 @@

0 commit comments

Comments
 (0)