Skip to content

WIP: Test against Java 24 #19514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Draft

WIP: Test against Java 24 #19514

wants to merge 2 commits into from

Conversation

srdo
Copy link
Contributor

@srdo srdo commented Apr 18, 2025

WIP: This PR still uses a Gradle 8.14 RC, and Spotbugs 4.9.4 has not
released yet, so testing it requires a local build.

Upgrade Scala to 2.13.16, in order to get a Java 24-compatible ASM
version.

Upgrade Gradle to 8.14, which is the first Java 24 compatible version.

Upgrade spotbugs to 4.9.4. This is the minimum version that's both Java
24 compatible, and not affected by
spotbugs/spotbugs#3320

Since the new spotbugs version introduces some extra checks, this commit
excludes those warnings, without looking at whether they are real issues
or false positives.

Addressing those warnings is left as future work, since the code is no
worse now than before the issues were highlighted.

@github-actions github-actions bot added triage PRs from the community dependencies Pull requests that update a dependency file build Gradle build or GitHub Actions labels Apr 18, 2025
@srdo srdo changed the title WIP: Build with Java 24 WIP: Test with Java 24 Apr 18, 2025
@srdo srdo changed the title WIP: Test with Java 24 WIP: Test against Java 24 Apr 18, 2025
@srdo srdo marked this pull request as draft April 18, 2025 19:54
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

ijuma and others added 2 commits April 26, 2025 14:08
Upgrade Scala to 2.13.16, in order to get a Java 24-compatible ASM version.

Upgrade Gradle to 8.14, which is the first Java 24 compatible version.

Upgrade spotbugs to 4.9.4. This is the minimum version that's both
Java 24 compatible, and not affected by spotbugs/spotbugs#3320

Since the new spotbugs version introduces some extra checks, this commit
excludes those warnings, without looking at whether they are real issues
or false positives.

Fix gradle wrapper.

The download-the-wrapper bit was inserted before the CLASSPATH line
in the wrapper, because that referenced the jar. That line no longer
mentions the jar, because the wrapper is referenced via -jar instead of -cp
now.

This means the download was placed in the middle of a java invocation
command, breaking the script.

It's been moved to be before the call to exec. It seems fair to assume
that the script will only exec once, and that the exec call is going to
call the wrapper.
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

@srdo
Copy link
Contributor Author

srdo commented Apr 30, 2025

Status: This passes tests locally. As Gradle 8.14 has released, the only remaining roadblock is that the currently-newest version of Spotbugs crashes the build. The underlying bug is fixed in the latest Spotbugs source, so once Spotbugs 4.9.4 is released (see spotbugs/spotbugs#3380 (comment)), this should be good to go.

Copy link

github-actions bot commented May 2, 2025

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

@chia7712
Copy link
Member

@srdo could you please rebase code and fix the conflicts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Gradle build or GitHub Actions dependencies Pull requests that update a dependency file needs-attention triage PRs from the community
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants