From 683e1fcc8c480d549f31dd4210fc2901d2065213 Mon Sep 17 00:00:00 2001 From: Ted Date: Mon, 28 Oct 2024 16:38:14 -0400 Subject: [PATCH] Add missing java loads (#4) * Add missing java loads * Load from java_library.bzl * Update bazel version to 7.3.2 * Use bazel 7.4.0 * Use rules_java 7.12.2 --- .bazelversion | 2 +- java/MODULE.bazel | 1 + .../main/java/com/google/devtools/build/lib/worker/BUILD.bazel | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.bazelversion b/.bazelversion index 643916c..ba7f754 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -7.3.1 +7.4.0 diff --git a/java/MODULE.bazel b/java/MODULE.bazel index b31ea41..86fd035 100644 --- a/java/MODULE.bazel +++ b/java/MODULE.bazel @@ -6,6 +6,7 @@ module( bazel_dep(name = "bazel_worker_api", version = "0.0.1") bazel_dep(name = "rules_jvm_external", version = "6.2") bazel_dep(name = "protobuf", version = "27.2") +bazel_dep(name = "rules_java", version = "7.12.2") maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven") maven.install( diff --git a/java/src/main/java/com/google/devtools/build/lib/worker/BUILD.bazel b/java/src/main/java/com/google/devtools/build/lib/worker/BUILD.bazel index a0eeb67..81ec2f8 100644 --- a/java/src/main/java/com/google/devtools/build/lib/worker/BUILD.bazel +++ b/java/src/main/java/com/google/devtools/build/lib/worker/BUILD.bazel @@ -1,5 +1,7 @@ package(default_visibility = ["//visibility:public"]) +load("@rules_java//java:java_library.bzl", "java_library") + java_library( name = "work_request_handlers", srcs = [