Skip to content

[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
bazel-io:cp28543-9.0.1
Feb 6, 2026
Merged

[9.0.1] Update all embedded JDKs to 25.0.2 (https://github.com/bazelbuild/bazel/pull/28543)#28548
iancha1992 merged 1 commit intobazelbuild:release-9.0.1from
bazel-io:cp28543-9.0.1

Conversation

@bazel-io
Copy link
Member

@bazel-io bazel-io commented Feb 5, 2026

Motivated by (but doesn't fix) #28520

Closes #28543.

PiperOrigin-RevId: 865965804
Change-Id: I99185e1d3d5f27c8155781b5f3f6100e23eecf5d

Commit 5b6e89c

Motivated by (but doesn't fix) bazelbuild#28520

Closes bazelbuild#28543.

PiperOrigin-RevId: 865965804
Change-Id: I99185e1d3d5f27c8155781b5f3f6100e23eecf5d
@bazel-io bazel-io requested a review from a team as a code owner February 5, 2026 16:43
@bazel-io bazel-io added the awaiting-review PR is awaiting review from an assigned reviewer label Feb 5, 2026
@bazel-io bazel-io requested a review from meteorcloudy February 5, 2026 16:43
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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",
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

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,
    )

@iancha1992 iancha1992 added this pull request to the merge queue Feb 6, 2026
Merged via the queue into bazelbuild:release-9.0.1 with commit 0229618 Feb 6, 2026
46 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Feb 6, 2026
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.

4 participants