Skip to content

Fix Java 21 build configuration - #150

Open
SamTheDevDE wants to merge 1 commit into
EternalCodeTeam:masterfrom
SamTheDevDE:fix/java-21-build
Open

Fix Java 21 build configuration#150
SamTheDevDE wants to merge 1 commit into
EternalCodeTeam:masterfrom
SamTheDevDE:fix/java-21-build

Conversation

@SamTheDevDE

Copy link
Copy Markdown

What does this PR change?

This fixes the Java version mismatch in the build setup.
The project already uses a Java 21 toolchain, but compiles using Java 17. I also noticed that the Github Actions workflow was also using Java 17.
That no longer works with some of the dependencies, which now require a more up to date version aka Java 21.

Changes

  • Changed the Java release target to Java 21
  • Updated the Github Actions build workflow to also use Java 21

Why?

Without this, the build fails during dependency resolution with errors like:
Dependency resolution is looking for a library compatible with JVM runtime version 17, but the dependency is only compatible with JVM runtime version 21 or newer.

This just makes the build configuration match the Java version the project is already expecting.

Testing

Tested with:
./gradlew clean eternaleconomy-core:shadowJar
the build completes successfully after the change.

@SamTheDevDE
SamTheDevDE requested a review from a team as a code owner September 6, 2026 03:27
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