Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ggj][bazel] feat: add cloud/redis microgenerator rules #383

Merged
merged 14 commits into from
Oct 10, 2020
26 changes: 26 additions & 0 deletions test/integration/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
load(
"@com_google_googleapis_imports//:imports.bzl",
"proto_library_with_info",
java_gapic_library = "java_gapic_library2",
)

Expand All @@ -24,3 +25,28 @@ java_gapic_library(
"@com_google_googleapis//google/iam/v1:iam_java_proto",
],
)

# Redis API.
# Redefine the proto_with_info target so we can include empty_proto.
# This should be removed post-migration.
proto_library_with_info(
name = "redis_proto_with_info",
deps = [
"@com_google_googleapis//google/cloud:common_resources_proto",
"@com_google_googleapis//google/cloud/redis/v1:redis_proto",
"@com_google_protobuf//:empty_proto",
],
)

java_gapic_library(
name = "redis_java_gapic",
srcs = ["redis_proto_with_info"],
grpc_service_config = "@com_google_googleapis//google/cloud/redis/v1:redis_grpc_service_config.json",
package = "google.cloud.redis.v1",
test_deps = [
"@com_google_googleapis//google/cloud/redis/v1:redis_java_grpc",
],
deps = [
"@com_google_googleapis//google/cloud/redis/v1:redis_java_proto",
],
)