JDKs older than JDK 21 are not supported anymore effective Bazel 7.1 and onwards #21446
Replies: 2 comments 6 replies
-
That's basically everyone who is on platforms such as FreeBSD. |
Beta Was this translation helpful? Give feedback.
-
I'm upgrading Bazel from 7.1.1 to 7.4.1 while maintaining the old JDK 11 in this repository. When I build the project, I encounter the following error. How can I resolve this issue?
|
Beta Was this translation helpful? Give feedback.
-
In the future, Bazel will need a JVM 21 or later to run.
Given that Bazel is ordinarily packaged with a JVM it runs under by default, this will not be visible change for the majority of our users. Only people who use
bazel_nojdk
(which requires one to supply their own JVM) and people who build their own Bazel will be affected.The policy will take effect in Bazel 7.1 and Bazel at HEAD as of now. Initially, the code will still run with older JDKs, but we'll probably introduce a dependency on JVM 21 pretty soon at which point this will not be the case anymore.
For any questions of concerns, follow up on this thread; if you have a use case that is broken by this change, we'll try to find a solution.
Beta Was this translation helpful? Give feedback.
All reactions