forked from grpc/grpc-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMODULE.bazel
More file actions
32 lines (29 loc) · 1.22 KB
/
MODULE.bazel
File metadata and controls
32 lines (29 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
bazel_dep(name = "grpc-java", version = "1.80.0-SNAPSHOT", repo_name = "io_grpc_grpc_java") # CURRENT_GRPC_VERSION
bazel_dep(name = "rules_java", version = "9.3.0")
bazel_dep(name = "grpc-proto", version = "0.0.0-20240627-ec30f58", repo_name = "io_grpc_grpc_proto")
bazel_dep(name = "protobuf", version = "33.1", repo_name = "com_google_protobuf")
bazel_dep(name = "rules_jvm_external", version = "6.0")
# Do not use this override in your own MODULE.bazel. It is unnecessary when
# using a version from BCR. Be aware the gRPC Java team does not update the
# BCR for new releases, so you may need to create a PR for the BCR to add the
# version. To not use the BCR, you could use:
#
# git_override(
# module_name = "grpc-java",
# remote = "https://github.com/grpc/grpc-java.git",
# tag = "v<VERSION>",
# )
local_path_override(
module_name = "grpc-java",
path = "..",
)
maven = use_extension("@rules_jvm_external//:extensions.bzl", "maven")
use_repo(maven, "maven")
maven.install(
artifacts = [
"com.google.api.grpc:grpc-google-cloud-pubsub-v1:0.1.24",
"com.google.api.grpc:proto-google-cloud-pubsub-v1:0.1.24",
],
repositories = ["https://repo.maven.apache.org/maven2/"],
strict_visibility = True,
)