Ver código fonte

Back to Java 17 for now

nossr50 1 ano atrás
pai
commit
7266563ca9
3 arquivos alterados com 7 adições e 10 exclusões
  1. 3 3
      .github/workflows/maven.yml
  2. 0 3
      Changelog.txt
  3. 4 4
      pom.xml

+ 3 - 3
.github/workflows/maven.yml

@@ -31,13 +31,13 @@ jobs:
     - name: Checkout repository
       uses: actions/checkout@v2
 
-    # 2. Setup Java 21 JDK (Adopt)
-    - name: Java 21 setup
+    # 2. Setup Java 17 JDK (Adopt)
+    - name: Java 17 setup
       uses: actions/setup-java@v2
       with:
         distribution: 'adopt'
         java-package: jdk
-        java-version: '21'
+        java-version: '17'
 
     # 3. Setup local Maven package cache to speed up building
     - name: Cache Maven packages

+ 0 - 3
Changelog.txt

@@ -1,5 +1,4 @@
 Version 2.2.013
-    mcMMO now requires Java 21 (see notes)
     Modified the RNG for dropping non-ore blocks from Blast Mining to yield about 50% of what was destroyed
     (API) Deprecated com.gmail.nossr50.mcMMO.getPlaceStore
     (API) Added com.gmail.nossr50.mcMMO.getUserBlockTracker
@@ -9,8 +8,6 @@ Version 2.2.013
     (Codebase) Cleaned up and organized unit tests relating to UserBlockTracker
 
     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
 
 Version 2.2.012

+ 4 - 4
pom.xml

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