浏览代码

require java 21

nossr50 1 年之前
父节点
当前提交
b65247cbb0
共有 2 个文件被更改,包括 7 次插入4 次删除
  1. 3 0
      Changelog.txt
  2. 4 4
      pom.xml

+ 3 - 0
Changelog.txt

@@ -1,4 +1,5 @@
 Version 2.2.013
 Version 2.2.013
+    mcMMO now requires Java 21 (see notes)
     (API) Deprecated com.gmail.nossr50.mcMMO.getPlaceStore
     (API) Deprecated com.gmail.nossr50.mcMMO.getPlaceStore
     (API) Added com.gmail.nossr50.mcMMO.getUserBlockTracker
     (API) Added com.gmail.nossr50.mcMMO.getUserBlockTracker
     (API) Added com.gmail.nossr50.mcMMO.getChunkManager
     (API) Added com.gmail.nossr50.mcMMO.getChunkManager
@@ -7,6 +8,8 @@ Version 2.2.013
     (Codebase) Cleaned up and organized unit tests relating to UserBlockTracker
     (Codebase) Cleaned up and organized unit tests relating to UserBlockTracker
 
 
     NOTES:
     NOTES:
+    mcMMO is now compiled for Java 21, Java 21 will be requires to run mcMMO.
+    This should not pose an issue as there are Java 21 server JARs for the versions of MC that mcMMO currently supports.
     Not planning to delete the deprecated methods in UserBlockTracker anytime soon, as nothing has really changed other than the names
     Not planning to delete the deprecated methods in UserBlockTracker anytime soon, as nothing has really changed other than the names
 
 
 Version 2.2.012
 Version 2.2.012

+ 4 - 4
pom.xml

@@ -14,9 +14,9 @@
 
 
     <properties>
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-        <maven.compiler.source>17</maven.compiler.source>
-        <maven.compiler.target>17</maven.compiler.target>
-        <java.version>17</java.version>
+        <maven.compiler.source>21</maven.compiler.source>
+        <maven.compiler.target>21</maven.compiler.target>
+        <java.version>21</java.version>
     </properties>
     </properties>
 
 
     <issueManagement>
     <issueManagement>
@@ -103,7 +103,7 @@
                 <artifactId>maven-compiler-plugin</artifactId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>3.10.1</version>
                 <version>3.10.1</version>
                 <configuration>
                 <configuration>
-                    <release>17</release>
+                    <release>21</release>
                     <compilerArgs>
                     <compilerArgs>
                         <arg>-parameters</arg> <!-- used for ACF syntax stuff -->
                         <arg>-parameters</arg> <!-- used for ACF syntax stuff -->
                     </compilerArgs>
                     </compilerArgs>