Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 1 | load("//tools/build/bazel:osgi_java_library.bzl", "wrapped_osgi_jar") |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 2 | |
| 3 | BUNDLES = [ |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 4 | "//protocols/grpc/proto:onos-protocols-grpc-proto", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 5 | "//protocols/grpc/api:onos-protocols-grpc-api", |
| 6 | "//protocols/grpc/ctl:onos-protocols-grpc-ctl", |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 7 | # gRPC dependencies (with patched core) |
| 8 | ":grpc-core-repkg", |
Thomas Vachuska | 727abd3 | 2018-08-09 16:18:11 -0700 | [diff] [blame] | 9 | "@runtime_grpc_stub//jar", |
| 10 | "@runtime_grpc_netty//jar", |
| 11 | "@runtime_grpc_auth//jar", |
| 12 | "@runtime_grpc_protobuf//jar", |
| 13 | "@runtime_grpc_protobuf_lite//jar", |
| 14 | "@runtime_protobuf//jar", |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 15 | "@com_google_api_grpc_proto_google_common_protos//jar", |
| 16 | "@com_google_errorprone_error_prone_annotations//jar", |
| 17 | "@com_google_auth_google_auth_library_credentials//jar", |
| 18 | "@io_opencensus_opencensus_api//jar", |
| 19 | "@io_opencensus_opencensus_contrib_grpc_metrics//jar", |
| 20 | "@com_google_code_gson_gson//jar", |
Brian O'Connor | aab51ad | 2018-12-12 17:27:11 -0800 | [diff] [blame] | 21 | # Adding Netty http and http2 codecs |
| 22 | # The rest of Netty is loaded in the onos-thirdparty-base feature |
| 23 | # See tools/package/features/BUILD for more details |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 24 | "@io_netty_netty_codec_http//jar", |
| 25 | "@io_netty_netty_codec_http2//jar", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 26 | ] |
| 27 | |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 28 | onos_app( |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 29 | app_name = "org.onosproject.protocols.grpc", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 30 | category = "rotocol", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 31 | description = "Exposes APIs to operate with gRPC channels", |
| 32 | included_bundles = BUNDLES, |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 33 | title = "gRPC Protocol Subsystem", |
| 34 | url = "ttp://onosproject.org", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 35 | ) |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 36 | |
| 37 | wrapped_osgi_jar( |
| 38 | name = "grpc-core-repkg", |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 39 | jar = "@io_grpc_grpc_java//core", |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 40 | visibility = ["//visibility:public"], |
Ray Milkey | 05d609a | 2018-08-15 10:27:58 -0700 | [diff] [blame] | 41 | deps = ["@io_opencensus_opencensus_api//jar"], |
Carmelo Cascone | 6a1ae71 | 2018-08-10 12:19:47 -0700 | [diff] [blame] | 42 | ) |