Skip to content

Commit

Permalink
Add load() statements for the Bazel builtin top-level java symbols
Browse files Browse the repository at this point in the history
Loads are being added in preparation for moving the symbols out of Bazel and into `rules_java`.
  • Loading branch information
hvadehra committed Apr 15, 2024
1 parent 497e155 commit 47cb3d9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ bazel_dep(name = "googleapis", repo_name = "com_google_googleapis", version = "0
bazel_dep(name = "grpc", repo_name = "com_github_grpc_grpc", version = "1.56.3.bcr.1")
bazel_dep(name = "protobuf", repo_name = "com_google_protobuf", version = "23.1")
bazel_dep(name = "rules_cc", version = "0.0.9")
bazel_dep(name = "rules_java", version = "7.5.0")
bazel_dep(name = "rules_go", repo_name = "io_bazel_rules_go", version = "0.46.0")
bazel_dep(name = "rules_jvm_external", version = "6.0")
bazel_dep(name = "rules_proto", version = "5.3.0-21.7")
Expand Down
8 changes: 8 additions & 0 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ workspace(name = "io_grpc_grpc_java")

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

http_archive(
name = "rules_java",
urls = [
"https://github.com/bazelbuild/rules_java/releases/download/7.5.0/rules_java-7.5.0.tar.gz",
],
sha256 = "4da3761f6855ad916568e2bfe86213ba6d2637f56b8360538a7fb6125abf6518",
)

http_archive(
name = "rules_jvm_external",
sha256 = "d31e369b854322ca5098ea12c69d7175ded971435e55c18dd9dd5f29cc5249ac",
Expand Down
4 changes: 4 additions & 0 deletions java_grpc_library.bzl
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
"""Build rule for java_grpc_library."""

load("@rules_java//java/common:java_common.bzl", "java_common")
load("@rules_java//java/common:java_info.bzl", "JavaInfo")
load("@rules_java//java/common:java_plugin_info.bzl", "JavaPluginInfo")

_JavaRpcToolchainInfo = provider(
fields = [
"java_toolchain",
Expand Down

0 comments on commit 47cb3d9

Please sign in to comment.