Skip to content

Support building with JDK 25 - #3104

Open
Marcono1234 wants to merge 2 commits into
google:mainfrom
Marcono1234:marcono1234/jdk25-build
Open

Support building with JDK 25#3104
Marcono1234 wants to merge 2 commits into
google:mainfrom
Marcono1234:marcono1234/jdk25-build

Conversation

@Marcono1234

@Marcono1234 Marcono1234 commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Purpose

Support building with JDK 25

Follow-up for #2847 and #2921

Description

Previously building with JDK 25 was possible (and was done by CI), but was not officially supported.

The underlying issue is that recent JDK builds (at least those from Temurin) do not include jmod files anymore but ProGuard still depends on them.

This PR here now adjusts the Maven build config so that it gracefully skips ProGuard and related tests when building with JDK 25 but jmod files are missing.
Additionally it uses actions/setup-java's new jmod file support to actually test JDK 25 with jmod files being present.

This means it runs now intentionally two tests for JDK 25 on CI:

  • without jmod files: this matches the behavior if a user would use Temurin JDK 25, and ensures that the build works
  • with jmod files: this verifies that a full build including ProGuard-related tests works for JDK 25, and also matches the behavior if a user would use a JDK distribution which includes jmod files

@Marcono1234
Marcono1234 force-pushed the marcono1234/jdk25-build branch from 310ac61 to eb28299 Compare August 31, 2026 22:29
@Marcono1234
Marcono1234 marked this pull request as ready for review September 1, 2026 09:26
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