Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame^] | 1 | load("//tools/build/bazel:osgi_java_library.bzl", "wrapped_osgi_jar") |
| 2 | load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library") |
| 3 | |
| 4 | wrapped_osgi_jar( |
| 5 | name = "dummy_java_grpc", |
| 6 | jar = ":dummy_java_grpc_native", |
| 7 | deps = [ |
| 8 | "@io_grpc_grpc_java//stub", |
| 9 | "@io_grpc_grpc_java//core", |
| 10 | "@io_grpc_grpc_java//protobuf" |
| 11 | ], |
| 12 | visibility = ["//visibility:public"], |
| 13 | ) |
| 14 | |
| 15 | wrapped_osgi_jar( |
| 16 | name = "dummy_java_proto", |
| 17 | jar = ":dummy_java_proto_native", |
| 18 | deps = [ |
| 19 | "@com_google_protobuf//:protobuf_java", |
| 20 | ], |
| 21 | visibility = ["//visibility:public"], |
| 22 | ) |
| 23 | |
| 24 | java_proto_library( |
| 25 | name = "dummy_java_proto_native", |
| 26 | deps = [":dummy_proto"], |
| 27 | visibility = ["//visibility:public"], |
| 28 | ) |
| 29 | |
| 30 | java_grpc_library( |
| 31 | name = "dummy_java_grpc_native", |
| 32 | srcs = [":dummy_proto"], |
| 33 | deps = [":dummy_java_proto_native"], |
| 34 | ) |
| 35 | |
| 36 | proto_library( |
| 37 | name = "dummy_proto", |
| 38 | srcs = ["dummy.proto"], |
| 39 | ) |