blob: 27e102a54c8f28a443d7e04d53f9a4f893af99a5 [file] [log] [blame]
Carmelo Cascone04d09392017-07-19 08:49:08 -04001GRPC_VER = '1.3.0'
2PROTOBUF_VER = '3.0.2'
3
Carmelo Casconef7aa3f92017-07-06 23:56:50 -04004GRPC_DEPS = [
Carmelo Cascone04d09392017-07-19 08:49:08 -04005 '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
6 '//lib:grpc-protobuf-' + GRPC_VER,
7 '//lib:grpc-protobuf-lite-' + GRPC_VER,
8 '//lib:grpc-stub-' + GRPC_VER,
9 '//lib:grpc-netty-' + GRPC_VER,
10 '//lib:grpc-auth-' + GRPC_VER,
Carmelo Casconef7aa3f92017-07-06 23:56:50 -040011 '//lib:google-instrumentation-0.3.0',
Carmelo Cascone04d09392017-07-19 08:49:08 -040012 '//lib:protobuf-java-' + PROTOBUF_VER,
Carmelo Casconef7aa3f92017-07-06 23:56:50 -040013 # Lazily adding all netty-related packages.
14 # Some of them might not be necessary.
15 '//lib:netty',
16 '//lib:netty-buffer',
17 '//lib:netty-codec',
18 '//lib:netty-codec-http',
19 '//lib:netty-codec-http2',
20 '//lib:netty-common',
21 '//lib:netty-handler',
22 '//lib:netty-transport',
23 '//lib:netty-transport-native-epoll',
24 '//lib:netty-resolver',
25]
26
27COMPILE_DEPS = [
28 '//lib:CORE_DEPS',
29 '//protocols/grpc/api:onos-protocols-grpc-api',
30 '//protocols/p4runtime/api:onos-protocols-p4runtime-api',
31 '//protocols/p4runtime/proto:onos-protocols-p4runtime-proto'
32] + GRPC_DEPS
33
34TEST_DEPS = [
35 '//lib:TEST',
36 '//core/api:onos-api-tests',
Carmelo Cascone8d99b172017-07-18 17:26:31 -040037 '//incubator/bmv2/model:onos-incubator-bmv2-model',
Carmelo Casconef7aa3f92017-07-06 23:56:50 -040038]
39
Carmelo Casconef7aa3f92017-07-06 23:56:50 -040040osgi_jar_with_tests(
41 deps = COMPILE_DEPS,
42 test_deps = TEST_DEPS,
43)