Skip to content

Commit a30ba01

Browse files
committed
build: compile Minestom modules on Java 25 toolchain
Minestom 2026.05.17-1.21.11 requires a JVM 25+ runtime, so the relocation-free minestom and minestom:loader modules can no longer be built against Java 21 (':minestom:compileJava' failed to resolve the dependency). Switch both modules to a Java 25 toolchain and install JDK 25 alongside 21 in CI; JDK 21 stays the default JAVA_HOME so the Forge/Fabric/NeoForge platform builds are unaffected and only the Minestom modules use the 25 toolchain. https://claude.ai/code/session_01S76fk9ma5Szkf9r1W44RVP
1 parent d096068 commit a30ba01

3 files changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ jobs:
2828
uses: actions/setup-java@v4
2929
with:
3030
distribution: 'temurin'
31-
java-version: '21'
31+
java-version: |
32+
25
33+
21
3234
3335
- name: Setup Gradle
3436
uses: gradle/actions/setup-gradle@v4

minestom/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ dependencies {
1515
}
1616

1717
java {
18-
sourceCompatibility = JavaVersion.VERSION_21
19-
targetCompatibility = JavaVersion.VERSION_21
18+
toolchain {
19+
languageVersion = JavaLanguageVersion.of(25)
20+
}
2021
}
2122

2223
// Only used occasionally for deployment - not needed for normal builds.

minestom/loader/build.gradle

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ dependencies {
1616
}
1717

1818
java {
19-
sourceCompatibility = JavaVersion.VERSION_21
20-
targetCompatibility = JavaVersion.VERSION_21
19+
toolchain {
20+
languageVersion = JavaLanguageVersion.of(25)
21+
}
2122
}
2223

2324
processResources {

0 commit comments

Comments
 (0)