blob: 26e178c5538ac392e620176f9713c2cab1de4d08 [file] [log] [blame]
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07001load("//tools/build/bazel:osgi_java_library.bzl", "wrapped_osgi_jar")
Carmelo Cascone72893b72018-08-09 00:59:06 -07002
3BUNDLES = [
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07004 "//protocols/grpc/proto:onos-protocols-grpc-proto",
Carmelo Cascone72893b72018-08-09 00:59:06 -07005 "//protocols/grpc/api:onos-protocols-grpc-api",
6 "//protocols/grpc/ctl:onos-protocols-grpc-ctl",
Carmelo Cascone6a1ae712018-08-10 12:19:47 -07007 # gRPC dependencies (with patched core)
8 ":grpc-core-repkg",
Thomas Vachuska727abd32018-08-09 16:18:11 -07009 "@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 Cascone6a1ae712018-08-10 12:19:47 -070015 "@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",
Ray Milkeyfa066ed2018-12-14 21:53:12 +000021 # Lazily adding all netty-related packages.
22 # Some of them might not be necessary.
23 "@io_netty_netty//jar",
24 "@io_netty_netty_buffer//jar",
25 "@io_netty_netty_codec//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070026 "@io_netty_netty_codec_http//jar",
27 "@io_netty_netty_codec_http2//jar",
Ray Milkeyfa066ed2018-12-14 21:53:12 +000028 "@io_netty_netty_common//jar",
29 "@io_netty_netty_handler//jar",
30 "@io_netty_netty_transport//jar",
31 "@io_netty_netty_transport_native_epoll//jar",
32 "@io_netty_netty_resolver//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070033]
34
Ray Milkey05d609a2018-08-15 10:27:58 -070035onos_app(
Carmelo Cascone72893b72018-08-09 00:59:06 -070036 app_name = "org.onosproject.protocols.grpc",
Thomas Vachuskad8e77952018-11-19 12:26:43 -080037 category = "Protocol",
Carmelo Cascone72893b72018-08-09 00:59:06 -070038 description = "Exposes APIs to operate with gRPC channels",
39 included_bundles = BUNDLES,
Ray Milkey05d609a2018-08-15 10:27:58 -070040 title = "gRPC Protocol Subsystem",
41 url = "ttp://onosproject.org",
Carmelo Cascone72893b72018-08-09 00:59:06 -070042)
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070043
44wrapped_osgi_jar(
45 name = "grpc-core-repkg",
Ray Milkey05d609a2018-08-15 10:27:58 -070046 jar = "@io_grpc_grpc_java//core",
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070047 visibility = ["//visibility:public"],
Ray Milkey05d609a2018-08-15 10:27:58 -070048 deps = ["@io_opencensus_opencensus_api//jar"],
Carmelo Cascone6a1ae712018-08-10 12:19:47 -070049)