Skip to content

Build with JDK 25 in CI - #460

Merged
tastybento merged 2 commits into
developfrom
chore/ci-jdk-25
Sep 26, 2026
Merged

tastybento merged 2 commits into
developfrom
chore/ci-jdk-25

Conversation

@tastybento

Copy link
Copy Markdown
Member

BentoBox 3.23 and later are compiled for Java 25, so CI on JDK 21 fails with class file has wrong version 69.0, should be 65.0 when compiling against them. This happened in Limits (BentoBoxWorld/Limits#305).

This PR changes java-version from 21 to 25 in build.yml and modrinth-publish.yml. The pom's java.version (the bytecode target) stays at 21, as in Limits and OneBlock. JaCoCo 0.8.14 already supports Java 25.

Level is still on BentoBox 3.15.1-SNAPSHOT, so this gets CI ready for the bump. mvn clean package passes locally on JDK 25 (256 tests).

🤖 Generated with Claude Code

tastybento and others added 2 commits September 26, 2026 11:38
BentoBox 3.23 and later are compiled for Java 25 (class version 69), so
JDK 21 cannot compile against them. Use JDK 25 in the build and Modrinth
publish workflows so the addon can move to a current BentoBox. The
bytecode target stays at Java 21.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ItemsAdder's old repo (maven.devs.beer) returns 522, which broke dependency
resolution in CI. The API is now published to Maven Central as
beer.devs:itemsadder-api, matching BentoBox. Drop the old repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tastybento
tastybento merged commit 1e0d09e into develop Sep 26, 2026
1 check passed
@tastybento
tastybento deleted the chore/ci-jdk-25 branch September 26, 2026 14:43
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant