Skip to content

Commit add8c37

Browse files
authoredApr 17, 2024··
Add load() statements for the Bazel builtin top-level java symbols (#11105)
Loads are being added in preparation for moving the symbols out of Bazel and into `rules_java`.
1 parent c404c9f commit add8c37

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed
 

‎MODULE.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ bazel_dep(name = "googleapis", repo_name = "com_google_googleapis", version = "0
4949
bazel_dep(name = "grpc", repo_name = "com_github_grpc_grpc", version = "1.56.3.bcr.1")
5050
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "23.1")
5151
bazel_dep(name = "rules_cc", version = "0.0.9")
52+
bazel_dep(name = "rules_java", version = "5.3.5")
5253
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go", version = "0.46.0")
5354
bazel_dep(name = "rules_jvm_external", version = "6.0")
5455
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")

‎WORKSPACE

+6
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ workspace(name = "io_grpc_grpc_java")
22

33
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
44

5+
http_archive(
6+
name = "rules_java",
7+
url = "https://github.com/bazelbuild/rules_java/releases/download/5.3.5/rules_java-5.3.5.tar.gz",
8+
sha256 = "c73336802d0b4882e40770666ad055212df4ea62cfa6edf9cb0f9d29828a0934",
9+
)
10+
511
http_archive(
612
name = "rules_jvm_external",
713
sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac",

‎java_grpc_library.bzl

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""Build rule for java_grpc_library."""
22

3+
load("@rules_java//java:defs.bzl", "java_common", "JavaInfo", "JavaPluginInfo")
4+
35
_JavaRpcToolchainInfo = provider(
46
fields = [
57
"java_toolchain",

0 commit comments

Comments
 (0)
Please sign in to comment.