Skip to content

Commit

Permalink
build: upgrade POMs & BuildData to J17
Browse files Browse the repository at this point in the history
  • Loading branch information
roccodev committed Sep 22, 2023
1 parent b9dc24d commit 54d25ac
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Benchmarks/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
<buildtag.prefix>git-Bukkit-</buildtag.prefix>
<buildtag.suffix></buildtag.suffix>
<!--PaperSpigot - Bump to 1.8 - This will haunt me -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- KigPaper - Java 17 -->
<maven.compiler.release>17</maven.compiler.release>
</properties>

<parent>
Expand Down
2 changes: 1 addition & 1 deletion BuildData
34 changes: 34 additions & 0 deletions Spigot-API-Patches/0073-Update-source-target-JRE-to-17.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
From 32baede4e7a1012d111acf1feaa391b680834615 Mon Sep 17 00:00:00 2001
From: RoccoDev <[email protected]>
Date: Fri, 22 Sep 2023 16:43:12 +0200
Subject: [PATCH] Update source/target JRE to 17


diff --git a/pom.xml b/pom.xml
index 7341ded0..4a796a95 100644
--- a/pom.xml
+++ b/pom.xml
@@ -20,9 +20,9 @@

<properties>
<!--PaperSpigot - Bump to 1.8 - This will haunt me -->
+ <!-- KigPaper - Java 17 -->
<additionalparam>-Xdoclint:none</additionalparam>
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

@@ -121,7 +121,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- versions after this appear to be broken -->
- <version>3.1</version>
+ <version>3.11.0</version>
<configuration>
<!-- we use the Eclipse compiler as it doesn't need a JDK -->
<compilerId>eclipse</compilerId>
--
2.41.0

33 changes: 33 additions & 0 deletions Spigot-Server-Patches/0240-Update-source-target-JRE-to-17.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From daec499e31e88540f117d3b946e920f2aca6e32e Mon Sep 17 00:00:00 2001
From: RoccoDev <[email protected]>
Date: Fri, 22 Sep 2023 16:43:08 +0200
Subject: [PATCH] Update source/target JRE to 17


diff --git a/pom.xml b/pom.xml
index a7474d133..18c855f16 100644
--- a/pom.xml
+++ b/pom.xml
@@ -18,8 +18,8 @@
<buildtag.prefix>git-Bukkit-</buildtag.prefix>
<buildtag.suffix></buildtag.suffix>
<!--PaperSpigot - Bump to 1.8 - This will haunt me -->
- <maven.compiler.source>1.8</maven.compiler.source>
- <maven.compiler.target>1.8</maven.compiler.target>
+ <!-- KigPaper - Java 17 -->
+ <maven.compiler.release>17</maven.compiler.release>
</properties>

<parent>
@@ -280,7 +280,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<!-- versions after this appear to be broken -->
- <version>3.1</version>
+ <version>3.11.0</version>
<configuration>
<!-- we use the Eclipse compiler as it doesn't need a JDK -->
<compilerId>eclipse</compilerId>
--
2.41.0

0 comments on commit 54d25ac

Please sign in to comment.