Add jdk21 repositories and register toolchains for `linux_ppc64le`, `linux_s390x`, and `windows_arm64`

Closes https://github.com/bazelbuild/rules_java/pull/176

PiperOrigin-RevId: 616133820
Change-Id: Ic617f5e298a560a4f2769cc748f483434e471929
diff --git a/MODULE.bazel b/MODULE.bazel
index e220d5d..82f221d 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -61,9 +61,12 @@
     "21": [
         "linux",
         "linux_aarch64",
+        "linux_ppc64le",
+        "linux_s390x",
         "macos",
         "macos_aarch64",
         "win",
+        "win_arm64",
     ],
 }
 
diff --git a/java/repositories.bzl b/java/repositories.bzl
index 5749ad5..1bf1770 100644
--- a/java/repositories.bzl
+++ b/java/repositories.bzl
@@ -452,7 +452,6 @@
         ],
         version = "21",
     )
-
     maybe(
         remote_java_repository,
         name = "remotejdk21_linux_aarch64",
@@ -468,7 +467,36 @@
         ],
         version = "21",
     )
-
+    maybe(
+        remote_java_repository,
+        name = "remotejdk21_linux_ppc64le",
+        target_compatible_with = [
+            "@platforms//os:linux",
+            "@platforms//cpu:ppc",
+        ],
+        sha256 = "d08de863499d8851811c893e8915828f2cd8eb67ed9e29432a6b4e222d80a12f",
+        strip_prefix = "jdk-21.0.2+13",
+        urls = [
+            "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",
+            "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.2_13.tar.gz",
+        ],
+        version = "21",
+    )
+    maybe(
+        remote_java_repository,
+        name = "remotejdk21_linux_s390x",
+        target_compatible_with = [
+            "@platforms//os:linux",
+            "@platforms//cpu:s390x",
+        ],
+        sha256 = "0d5676c50821e0d0b951bf3ffd717e7a13be2a89d8848a5c13b4aedc6f982c78",
+        strip_prefix = "jdk-21.0.2+13",
+        urls = [
+            "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",
+            "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.2%2B13/OpenJDK21U-jdk_s390x_linux_hotspot_21.0.2_13.tar.gz",
+        ],
+        version = "21",
+    )
     maybe(
         remote_java_repository,
         name = "remotejdk21_macos",
@@ -515,6 +543,21 @@
         ],
         version = "21",
     )
+    maybe(
+        remote_java_repository,
+        name = "remotejdk21_win_arm64",
+        target_compatible_with = [
+            "@platforms//os:windows",
+            "@platforms//cpu:arm64",
+        ],
+        sha256 = "975603e684f2ec5a525b3b5336d6aa0b09b5b7d2d0d9e271bd6a9892ad550181",
+        strip_prefix = "jdk-21+35",
+        urls = [
+            "https://mirror.bazel.build/aka.ms/download-jdk/microsoft-jdk-21.0.0-windows-aarch64.zip",
+            "https://aka.ms/download-jdk/microsoft-jdk-21.0.0-windows-aarch64.zip",
+        ],
+        version = "21",
+    )
 
 def rules_java_dependencies():
     """An utility method to load all dependencies of rules_java.