Back to Java 17 for now

This commit is contained in:
nossr50 2024-05-19 13:53:22 -07:00
parent 364d4cd6e7
commit 7266563ca9
3 changed files with 7 additions and 10 deletions

View File

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

View File

@ -1,5 +1,4 @@
Version 2.2.013 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 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) Deprecated com.gmail.nossr50.mcMMO.getPlaceStore
(API) Added com.gmail.nossr50.mcMMO.getUserBlockTracker (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 (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

View File

@ -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>21</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>21</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<java.version>21</java.version> <java.version>17</java.version>
</properties> </properties>
<issueManagement> <issueManagement>
@ -103,7 +103,7 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.13.0</version> <version>3.13.0</version>
<configuration> <configuration>
<release>21</release> <release>17</release>
<compilerArgs> <compilerArgs>
<arg>-parameters</arg> <!-- used for ACF syntax stuff --> <arg>-parameters</arg> <!-- used for ACF syntax stuff -->
</compilerArgs> </compilerArgs>