Skip to content

Add support for Java 17 and 21 to the build#304

Merged
olibye merged 2 commits into
masterfrom
feature/add-newer-java-lts-builds
Aug 12, 2025
Merged

Add support for Java 17 and 21 to the build#304
olibye merged 2 commits into
masterfrom
feature/add-newer-java-lts-builds

Conversation

@olibye

@olibye olibye commented Aug 12, 2025

Copy link
Copy Markdown
Member

This change updates the GitHub Actions workflow to include Java 17 and 21 in the build matrix.

To ensure compatibility with these newer Java versions, the following changes were also made:

  • The asm and byte-buddy dependencies were updated to versions that support newer JDKs.
  • The maven-surefire-plugin was configured to pass --add-opens arguments to the JVM to allow reflective access required by the tests.

This change updates the GitHub Actions workflow to include Java 17 and 21 in the build matrix.

To ensure compatibility with these newer Java versions, the following changes were also made:
- The `asm` and `byte-buddy` dependencies were updated to versions that support newer JDKs.
- The `maven-surefire-plugin` was configured to pass `--add-opens` arguments to the JVM to allow reflective access required by the tests.
The --add-opens argument is not supported by Java 8 and was causing the build to fail.

This change moves the maven-surefire-plugin configuration with the --add-opens arguments into a Maven profile that is only activated for Java 9 and newer. This ensures that the arguments are only passed to the JVM when running on a compatible version.
@olibye olibye added this pull request to the merge queue Aug 12, 2025
Merged via the queue into master with commit 614db88 Aug 12, 2025
5 checks passed
@olibye olibye deleted the feature/add-newer-java-lts-builds branch August 12, 2025 19:29
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