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
diff --git a/drivers/bmv2/BUILD b/drivers/bmv2/BUILD
index 9478b50..2b42bdb 100644
--- a/drivers/bmv2/BUILD
+++ b/drivers/bmv2/BUILD
@@ -4,7 +4,7 @@
"//pipelines/basic:onos-pipelines-basic",
"//protocols/p4runtime/api:onos-protocols-p4runtime-api",
"//protocols/p4runtime/model:onos-protocols-p4runtime-model",
- "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_api_context",
"//lib:io_grpc_grpc_netty",
"@minimal_json//jar",
# "//protocols/bmv2/thrift-api:onos-protocols-bmv2-thrift-api",
diff --git a/drivers/gnmi/BUILD b/drivers/gnmi/BUILD
index f2c33d0..de00da9 100644
--- a/drivers/gnmi/BUILD
+++ b/drivers/gnmi/BUILD
@@ -1,6 +1,6 @@
COMPILE_DEPS = CORE_DEPS + KRYO + [
"//lib:com_google_protobuf_protobuf_java",
- "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_api_context",
"//lib:io_grpc_grpc_netty",
"//lib:io_grpc_grpc_stub",
"//core/store/serializers:onos-core-serializers",
diff --git a/drivers/gnoi/BUILD b/drivers/gnoi/BUILD
index 122c961..70b3c83 100644
--- a/drivers/gnoi/BUILD
+++ b/drivers/gnoi/BUILD
@@ -1,6 +1,6 @@
COMPILE_DEPS = CORE_DEPS + KRYO + [
"//lib:com_google_protobuf_protobuf_java",
- "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_api_context",
"//lib:io_grpc_grpc_netty",
"//lib:io_grpc_grpc_stub",
"//protocols/gnoi/stub:onos-protocols-gnoi-stub",
diff --git a/drivers/p4runtime/BUILD b/drivers/p4runtime/BUILD
index 23c6e9e..ded8842 100644
--- a/drivers/p4runtime/BUILD
+++ b/drivers/p4runtime/BUILD
@@ -3,7 +3,7 @@
"//protocols/grpc/api:onos-protocols-grpc-api",
"//protocols/grpc/utils:onos-protocols-grpc-utils",
"//protocols/p4runtime/api:onos-protocols-p4runtime-api",
- "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_api_context",
]
BUNDLES = [
diff --git a/drivers/stratum/BUILD b/drivers/stratum/BUILD
index 91b055c..e6e84d8 100644
--- a/drivers/stratum/BUILD
+++ b/drivers/stratum/BUILD
@@ -1,5 +1,5 @@
COMPILE_DEPS = CORE_DEPS + KRYO + JACKSON + [
- "//lib:io_grpc_grpc_core_context",
+ "//lib:io_grpc_grpc_api_context",
"//drivers/p4runtime:onos-drivers-p4runtime",
"//drivers/gnmi:onos-drivers-gnmi",
"//drivers/gnoi:onos-drivers-gnoi",