From c56e6c075e0d3147373c6e6d4dc166b5ace9318c Mon Sep 17 00:00:00 2001 From: Alex Humesky Date: Tue, 12 Nov 2024 19:42:21 -0500 Subject: [PATCH] Add loads for java_proto_library and proto_library (#5) * Add loads for java_proto_library and proto_library * Add proto dep to MODULE.bazel for proto subproject --- java/BUILD.bazel | 2 ++ proto/BUILD.bazel | 2 ++ proto/MODULE.bazel | 2 ++ 3 files changed, 6 insertions(+) diff --git a/java/BUILD.bazel b/java/BUILD.bazel index 63ee1b0..4be29a6 100644 --- a/java/BUILD.bazel +++ b/java/BUILD.bazel @@ -1,3 +1,5 @@ +load("@protobuf//bazel:java_proto_library.bzl", "java_proto_library") + package(default_visibility = ["//visibility:public"]) java_proto_library( diff --git a/proto/BUILD.bazel b/proto/BUILD.bazel index d92dfdd..5fd76fe 100644 --- a/proto/BUILD.bazel +++ b/proto/BUILD.bazel @@ -1,3 +1,5 @@ +load("@protobuf//bazel:proto_library.bzl", "proto_library") + package(default_visibility = ["//visibility:public"]) proto_library( diff --git a/proto/MODULE.bazel b/proto/MODULE.bazel index d95d7e8..04f5599 100644 --- a/proto/MODULE.bazel +++ b/proto/MODULE.bazel @@ -2,3 +2,5 @@ module( name = "bazel_worker_api", version = "0", ) + +bazel_dep(name = "protobuf", version = "27.2")