[9.0.1] Update all embedded JDKs to 25.0.2 (https://github.com/bazelbuild/bazel/pull/28543)#28548
Merged
iancha1992 merged 1 commit intobazelbuild:release-9.0.1from Feb 6, 2026
Merged
Conversation
Motivated by (but doesn't fix) bazelbuild#28520 Closes bazelbuild#28543. PiperOrigin-RevId: 865965804 Change-Id: I99185e1d3d5f27c8155781b5f3f6100e23eecf5d
There was a problem hiding this comment.
Code Review
This pull request updates the embedded JDKs to version 25.0.2. The changes are mostly in repositories.bzl, where URLs and integrity hashes for various OpenJDK distributions are updated. The changes look correct. I've added one comment to improve the maintainability of this file by using constants for version strings, which will make future updates easier and less error-prone.
Comment on lines
81
to
135
| """OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK.""" | ||
| http_file( | ||
| name = "openjdk_linux_vanilla", | ||
| integrity = "sha256-Fk2QHlokC4wYUW9atVvBH8lomrboKQRa6oRnNW3Ns0A=", | ||
| integrity = "sha256-8XUtAFG2yiM2Jd2ywYyRcO2+VcXuZRW/79jqAZfuHCA=", | ||
| downloaded_file_path = "zulu-linux-vanilla.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.28.85-ca-jdk25.0.0-linux_x64.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.32.17-ca-jdk25.0.2-linux_x64.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_linux_aarch64_vanilla", | ||
| integrity = "sha256-tg651UyXukFZVHg0qYzF0BYoHdKz5g50dcukkRMkvLQ=", | ||
| integrity = "sha256-9ylaux3ssvbg6p92CnCRfy1HNW20Nm1hXHq5sBw8aGY=", | ||
| downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.28.85-ca-jdk25.0.0-linux_aarch64.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.32.17-ca-jdk25.0.2-linux_aarch64.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_linux_ppc64le_vanilla", | ||
| integrity = "sha256-sGC7ErOhkqBZnwPruUlUkveMSMth4pHjNqiwDneY/7A=", | ||
| integrity = "sha256-smK3NbIVFzADdm2jZYjV9xfc6toChttBtDn5P7KtpGg=", | ||
| downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz", | ||
| url = "https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25%2B36/OpenJDK25U-jdk_ppc64le_linux_hotspot_25_36.tar.gz", | ||
| url = "https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_ppc64le_linux_hotspot_25.0.2_10.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_linux_riscv64_vanilla", | ||
| integrity = "sha256-FoEZ5PujUPTms8qSRQorkKhQK4miNaBEFemt+fXTFk4=", | ||
| downloaded_file_path = "adoptopenjdk-riscv64-vanilla.tar.gz", | ||
| url = "https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_riscv64_linux_hotspot_25.0.2_10.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_linux_s390x_vanilla", | ||
| integrity = "sha256-FeXLytzz1DYjwxuCUGPNwoF7nxuoQLUdxu9w5dM8hOM=", | ||
| downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz", | ||
| url = "https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.2%2B10/OpenJDK25U-jdk_s390x_linux_hotspot_25.0.2_10.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_macos_x86_64_vanilla", | ||
| integrity = "sha256-ws3h0xPZBLeTw3YCFO76IH7Mp98E58QISr3x9rvrwno=", | ||
| integrity = "sha256-/iI0bBkpIMW4SyP0qiTj3rsLuU/EKAFvfCssd5DIJ4A=", | ||
| downloaded_file_path = "zulu-macos-vanilla.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.28.85-ca-jdk25.0.0-macosx_x64.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.32.17-ca-jdk25.0.2-macosx_x64.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_macos_aarch64_vanilla", | ||
| integrity = "sha256-c/ZPa618PfMfunQPvLu+98Glzt7/u13zht15vHKrqbY=", | ||
| integrity = "sha256-U3rHT6HKLE3Y9gY93t4BOK5KiW8Si/4QtCin3MSqkp8=", | ||
| downloaded_file_path = "zulu-macos-aarch64-vanilla.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.28.85-ca-jdk25.0.0-macosx_aarch64.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.32.17-ca-jdk25.0.2-macosx_aarch64.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_win_vanilla", | ||
| integrity = "sha256-Xvz05qYTyuBsgEHeijaVtzRqrQMH05e2a/VSgc8aXLY=", | ||
| integrity = "sha256-kLy7y+L7euxDzo/S76Ak/MSPALvc16drWPkS1rl+bVY=", | ||
| downloaded_file_path = "zulu-win-vanilla.zip", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.28.85-ca-jdk25.0.0-win_x64.zip", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.32.17-ca-jdk25.0.2-win_x64.zip", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_win_arm64_vanilla", | ||
| integrity = "sha256-9fbYqRNpVkno4mB/4Nx5yBlTslgwE6wfuXfGPLSTW/s=", | ||
| integrity = "sha256-X0R5KhKvIQC025tRIMJ8Qq+AgK1jvJ6q3JyiXlx91ZA=", | ||
| downloaded_file_path = "zulu-win-arm64.zip", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.28.85-ca-jdk25.0.0-win_aarch64.zip", | ||
| ) | ||
|
|
||
| # TODO: Update to JDK 25 when available for these architectures. | ||
| http_file( | ||
| name = "openjdk_linux_s390x_vanilla", | ||
| integrity = "sha256-VVBZ9JKatkNeuDtJbQuWm8appcB5FdX3YH9dgz44+zk=", | ||
| downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz", | ||
| url = "https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24.0.2%2B12/OpenJDK24U-jdk_s390x_linux_hotspot_24.0.2_12.tar.gz", | ||
| ) | ||
| http_file( | ||
| name = "openjdk_linux_riscv64_vanilla", | ||
| integrity = "sha256-k/ta8TSRtbBaw3gAK4qZdhTcD0IocMENX63N/LzQuUg=", | ||
| downloaded_file_path = "adoptopenjdk-riscv64-vanilla.tar.gz", | ||
| url = "https://github.com/adoptium/temurin24-binaries/releases/download/jdk-24.0.2%2B12/OpenJDK24U-jdk_riscv64_linux_hotspot_24.0.2_12.tar.gz", | ||
| url = "https://cdn.azul.com/zulu/bin/zulu25.32.17-ca-jdk25.0.2-win_aarch64.zip", | ||
| ) |
There was a problem hiding this comment.
To improve maintainability and make future JDK updates easier, consider defining the version strings as constants. This reduces duplication and the risk of errors during version bumps.
"""OpenJDK distributions used to create a version of Bazel bundled with the OpenJDK."""
_ZULU_VERSION_STRING = "25.32.17-ca-jdk25.0.2"
_TEMURIN_VERSION_STRING = "jdk-25.0.2%2B10"
_TEMURIN_FILE_VERSION_STRING = "25.0.2_10"
http_file(
name = "openjdk_linux_vanilla",
integrity = "sha256-8XUtAFG2yiM2Jd2ywYyRcO2+VcXuZRW/79jqAZfuHCA=",
downloaded_file_path = "zulu-linux-vanilla.tar.gz",
url = "https://cdn.azul.com/zulu/bin/zulu%s-linux_x64.tar.gz" % _ZULU_VERSION_STRING,
)
http_file(
name = "openjdk_linux_aarch64_vanilla",
integrity = "sha256-9ylaux3ssvbg6p92CnCRfy1HNW20Nm1hXHq5sBw8aGY=",
downloaded_file_path = "zulu-linux-aarch64-vanilla.tar.gz",
url = "https://cdn.azul.com/zulu/bin/zulu%s-linux_aarch64.tar.gz" % _ZULU_VERSION_STRING,
)
http_file(
name = "openjdk_linux_ppc64le_vanilla",
integrity = "sha256-smK3NbIVFzADdm2jZYjV9xfc6toChttBtDn5P7KtpGg=",
downloaded_file_path = "adoptopenjdk-ppc64le-vanilla.tar.gz",
url = "https://github.com/adoptium/temurin25-binaries/releases/download/%s/OpenJDK25U-jdk_ppc64le_linux_hotspot_%s.tar.gz" % (_TEMURIN_VERSION_STRING, _TEMURIN_FILE_VERSION_STRING),
)
http_file(
name = "openjdk_linux_riscv64_vanilla",
integrity = "sha256-FoEZ5PujUPTms8qSRQorkKhQK4miNaBEFemt+fXTFk4=",
downloaded_file_path = "adoptopenjdk-riscv64-vanilla.tar.gz",
url = "https://github.com/adoptium/temurin25-binaries/releases/download/%s/OpenJDK25U-jdk_riscv64_linux_hotspot_%s.tar.gz" % (_TEMURIN_VERSION_STRING, _TEMURIN_FILE_VERSION_STRING),
)
http_file(
name = "openjdk_linux_s390x_vanilla",
integrity = "sha256-FeXLytzz1DYjwxuCUGPNwoF7nxuoQLUdxu9w5dM8hOM=",
downloaded_file_path = "adoptopenjdk-s390x-vanilla.tar.gz",
url = "https://github.com/adoptium/temurin25-binaries/releases/download/%s/OpenJDK25U-jdk_s390x_linux_hotspot_%s.tar.gz" % (_TEMURIN_VERSION_STRING, _TEMURIN_FILE_VERSION_STRING),
)
http_file(
name = "openjdk_macos_x86_64_vanilla",
integrity = "sha256-/iI0bBkpIMW4SyP0qiTj3rsLuU/EKAFvfCssd5DIJ4A=",
downloaded_file_path = "zulu-macos-vanilla.tar.gz",
url = "https://cdn.azul.com/zulu/bin/zulu%s-macosx_x64.tar.gz" % _ZULU_VERSION_STRING,
)
http_file(
name = "openjdk_macos_aarch64_vanilla",
integrity = "sha256-U3rHT6HKLE3Y9gY93t4BOK5KiW8Si/4QtCin3MSqkp8=",
downloaded_file_path = "zulu-macos-aarch64-vanilla.tar.gz",
url = "https://cdn.azul.com/zulu/bin/zulu%s-macosx_aarch64.tar.gz" % _ZULU_VERSION_STRING,
)
http_file(
name = "openjdk_win_vanilla",
integrity = "sha256-kLy7y+L7euxDzo/S76Ak/MSPALvc16drWPkS1rl+bVY=",
downloaded_file_path = "zulu-win-vanilla.zip",
url = "https://cdn.azul.com/zulu/bin/zulu%s-win_x64.zip" % _ZULU_VERSION_STRING,
)
http_file(
name = "openjdk_win_arm64_vanilla",
integrity = "sha256-X0R5KhKvIQC025tRIMJ8Qq+AgK1jvJ6q3JyiXlx91ZA=",
downloaded_file_path = "zulu-win-arm64.zip",
url = "https://cdn.azul.com/zulu/bin/zulu%s-win_aarch64.zip" % _ZULU_VERSION_STRING,
)
hvadehra
approved these changes
Feb 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivated by (but doesn't fix) #28520
Closes #28543.
PiperOrigin-RevId: 865965804
Change-Id: I99185e1d3d5f27c8155781b5f3f6100e23eecf5d
Commit 5b6e89c