Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

Commit c83aeed

Browse files
authored
add rules_java
1 parent 4bf55a3 commit c83aeed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

WORKSPACE

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,6 @@ load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
8686

8787
grpc_deps()
8888

89-
# Pin the version of rules_cc to the version that is present in
90-
# https://github.com/protocolbuffers/protobuf/blob/29.x/protobuf_deps.bzl#L92-L98
9189
http_archive(
9290
name = "rules_cc",
9391
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.1.1/rules_cc-0.1.1.tar.gz"],
@@ -99,6 +97,12 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps", "PROTOBUF_MAVE
9997
# This is actually already done within grpc_deps but calling this for Bazel convention.
10098
protobuf_deps()
10199

100+
# Add rules_java to resolve the following error
101+
# `The repository '@compatibility_proxy' could not be resolved: Repository '@compatibility_proxy' is not defined`
102+
load("@rules_java//java:rules_java_deps.bzl", "rules_java_dependencies")
103+
104+
rules_java_dependencies()
105+
102106
# gRPC enforces a specific version of Go toolchain which conflicts with our build.
103107
# All the relevant parts of grpc_extra_deps() are imported in this WORKSPACE file
104108
# explicitly, that is why we do not call grpc_extra_deps() here and call

0 commit comments

Comments
 (0)