bazelbuild / bazelbuild/bazel

Raise the minimum supported JDK for running java_toolchain tools to JDK 25

Open
#30,513 2 comments 0 reactions 0 assignees View on GitHub
P2 team-Rules-Java
Dominant language
Java
Stars
25.8k
Forks
4.6k
Avg merge
2d 18h
Merged PRs (30d)
75

Description

`java_toolchain.java_runtime` is now JDK 25 https://github.com/bazelbuild/rules_java/commit/899c55129a9e087f01c4485158958573c6e329cd, so tools like Turbine can use JDK 25 as a min JDK.

The specific motivation to support JDK > 21 APIs like [this one](https://docs.oracle.com/en/java/javase/25/docs/api/java.compiler/javax/lang/model/util/Types.html#stripAnnotations(T)) in turbine's annotation processing implementation.

@hvadehra pointed out we'll need to update rules_graalvm to include https://github.com/sgammon/rules_graalvm/commit/38de235708dcc5e35cb272c739185fa2eb849b7b

Contributor guide

Open the contributing guide

Research direction

Start by tracing the java_toolchain.java_runtime configuration and the checks that determine the minimum JDK for tools such as Turbine. Review the referenced rules_graalvm change as well. Done means java_toolchain tools can require JDK 25 and rules_graalvm includes the needed support for that runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system, tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.