Carmelo Cascone b9536696f6 First attempt at supporting builds with Java 11
Includes:
- Bump protobuf to 3.8.0 and grpc-java to 1.21.0 (along with transitive
  dependencies such as Netty)
- Add jaxb_api at compile time when needed (removed in JDK 11)
- Bump Bnd to 4.1 (adds support for Java 11)

To build with JDK 11, uncomment lines in .bazelrc.
Tested with Bazel 0.26.0.

Change-Id: Ib8e0c7310eacf97328762606e57c01e4834e5565
2019-05-30 18:11:06 +00:00

33 lines
1.2 KiB
Python

BUNDLES = [
"//protocols/grpc/api:onos-protocols-grpc-api",
"//protocols/grpc/ctl:onos-protocols-grpc-ctl",
"//protocols/grpc/utils:onos-protocols-grpc-utils",
# gRPC dependencies (with patched core)
"//lib:io_grpc_grpc_api_context",
"//lib:io_grpc_grpc_core_internal",
"//lib:io_grpc_grpc_core_inprocess",
"//lib:io_grpc_grpc_core_util",
"//lib:io_grpc_grpc_core_perfmark",
"//lib:io_grpc_grpc_stub",
"//lib:io_grpc_grpc_netty",
"//lib:io_grpc_grpc_auth",
"//lib:io_grpc_grpc_protobuf",
"//lib:io_grpc_grpc_protobuf_lite",
"//lib:com_google_protobuf_protobuf_java",
"@com_google_api_grpc_proto_google_common_protos//jar",
"@com_google_errorprone_error_prone_annotations//jar",
"@com_google_auth_google_auth_library_credentials//jar",
"@io_opencensus_opencensus_api//jar",
"@io_opencensus_opencensus_contrib_grpc_metrics//jar",
"@com_google_code_gson_gson//jar",
]
onos_app(
app_name = "org.onosproject.protocols.grpc",
category = "Protocol",
description = "Exposes APIs to operate with gRPC channels",
included_bundles = BUNDLES,
title = "gRPC Protocol Subsystem",
url = "ttp://onosproject.org",
)