From ad17dd21b7c0e46405995ef9c44f473c3958f912 Mon Sep 17 00:00:00 2001 From: Alex Rodionov Date: Fri, 8 Mar 2024 13:15:22 -0800 Subject: [PATCH] [bazel] Update rules_java This fixes broken build on Windows failing with: ERROR: C:/tmp/5rcabgft/external/rules_java_builtin/toolchains/BUILD:283:27: While resolving toolchains for target @@rules_java_builtin//toolchains:remotejdk_21 (c81c515): No matching toolchains found for types @@bazel_tools//tools/jdk:runtime_toolchain_type. --- WORKSPACE | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index 5ef8936a11d0c..18f82e879113b 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -4,6 +4,20 @@ workspace( load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +http_archive( + name = "rules_java", + sha256 = "16bc94b1a3c64f2c36ceecddc9e09a643e80937076b97e934b96a8f715ed1eaa", + urls = [ + "https://github.com/bazelbuild/rules_java/releases/download/6.5.2/rules_java-6.5.2.tar.gz", + ], +) + +load("@rules_java//java:repositories.bzl", "rules_java_dependencies", "rules_java_toolchains") + +rules_java_dependencies() + +rules_java_toolchains() + http_archive( name = "apple_rules_lint", sha256 = "7c3cc45a95e3ef6fbc484a4234789a027e11519f454df63cbb963ac499f103f9",