Skip to content

Commit d3cee66

Browse files
hvadehracopybara-github
authored andcommitted
Add jdk21 repositories and register toolchains for linux_ppc64le, linux_s390x, and windows_arm64
Closes #176 PiperOrigin-RevId: 616133820 Change-Id: Ic617f5e298a560a4f2769cc748f483434e471929
1 parent fa37f61 commit d3cee66

2 files changed

Lines changed: 48 additions & 2 deletions

File tree

MODULE.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,12 @@ JDKS = {
6161
"21": [
6262
"linux",
6363
"linux_aarch64",
64+
"linux_ppc64le",
65+
"linux_s390x",
6466
"macos",
6567
"macos_aarch64",
6668
"win",
69+
"win_arm64",
6770
],
6871
}
6972

java/repositories.bzl

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,6 @@ def remote_jdk21_repos():
452452
],
453453
version = "21",
454454
)
455-
456455
maybe(
457456
remote_java_repository,
458457
name = "remotejdk21_linux_aarch64",
@@ -468,7 +467,36 @@ def remote_jdk21_repos():
468467
],
469468
version = "21",
470469
)
471-
470+
maybe(
471+
remote_java_repository,
472+
name = "remotejdk21_linux_ppc64le",
473+
target_compatible_with = [
474+
"@platforms//os:linux",
475+
"@platforms//cpu:ppc",
476+
],
477+
sha256 = "d08de863499d8851811c893e8915828f2cd8eb67ed9e29432a6b4e222d80a12f",
478+
strip_prefix = "jdk-21.0.2+13",
479+
urls = [
480+
"https://mirror.bazel.build/github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.2_13.tar.gz",
481+
"https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.2_13.tar.gz",
482+
],
483+
version = "21",
484+
)
485+
maybe(
486+
remote_java_repository,
487+
name = "remotejdk21_linux_s390x",
488+
target_compatible_with = [
489+
"@platforms//os:linux",
490+
"@platforms//cpu:s390x",
491+
],
492+
sha256 = "0d5676c50821e0d0b951bf3ffd717e7a13be2a89d8848a5c13b4aedc6f982c78",
493+
strip_prefix = "jdk-21.0.2+13",
494+
urls = [
495+
"https://mirror.bazel.build/github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_s390x_linux_hotspot_21.0.2_13.tar.gz",
496+
"https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_s390x_linux_hotspot_21.0.2_13.tar.gz",
497+
],
498+
version = "21",
499+
)
472500
maybe(
473501
remote_java_repository,
474502
name = "remotejdk21_macos",
@@ -515,6 +543,21 @@ def remote_jdk21_repos():
515543
],
516544
version = "21",
517545
)
546+
maybe(
547+
remote_java_repository,
548+
name = "remotejdk21_win_arm64",
549+
target_compatible_with = [
550+
"@platforms//os:windows",
551+
"@platforms//cpu:arm64",
552+
],
553+
sha256 = "975603e684f2ec5a525b3b5336d6aa0b09b5b7d2d0d9e271bd6a9892ad550181",
554+
strip_prefix = "jdk-21+35",
555+
urls = [
556+
"https://mirror.bazel.build/aka.ms/download-jdk/microsoft-jdk-21.0.0-windows-aarch64.zip",
557+
"https://aka.ms/download-jdk/microsoft-jdk-21.0.0-windows-aarch64.zip",
558+
],
559+
version = "21",
560+
)
518561

519562
def rules_java_dependencies():
520563
"""An utility method to load all dependencies of rules_java.

0 commit comments

Comments
 (0)