Skip to content

Commit aa05c7c

Browse files
committed
build: override options.release=25 for minestom modules
The root subprojects block forces options.release=11 on every module's JavaCompile tasks, which set the org.gradle.jvm.version attribute to 11 and made ':minestom:compileJava' reject Minestom 2026.05.17-1.21.11 (requires JVM 25+). Override release to 25 in the three minestom modules so the Java 25 toolchain compiler targets 25 and the dependency resolves. https://claude.ai/code/session_01S76fk9ma5Szkf9r1W44RVP
1 parent 46d5fc7 commit aa05c7c

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

minestom/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ java {
1010
}
1111
}
1212

13+
tasks.withType(JavaCompile).configureEach {
14+
options.release = 25
15+
}
16+
1317
dependencies {
1418
implementation project(':api')
1519

minestom/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ java {
2020
}
2121
}
2222

23+
tasks.withType(JavaCompile).configureEach {
24+
options.release = 25
25+
}
26+
2327
// Only used occasionally for deployment - not needed for normal builds.
2428
javadoc {
2529
title = 'LuckPerms Minestom (v' + project.ext.apiVersion + ')'

minestom/loader/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ java {
2121
}
2222
}
2323

24+
tasks.withType(JavaCompile).configureEach {
25+
options.release = 25
26+
}
27+
2428
processResources {
2529
filesMatching("extension.json") {
2630
expand 'pluginVersion': project.ext.fullVersion

0 commit comments

Comments
 (0)