Carmelo Cascone | b1936bd | 2017-12-12 14:42:27 -0800 | [diff] [blame] | 1 | GRPC_VER = '1.3.1' |
Andrea Campanella | 8bcd586 | 2017-12-11 11:34:45 +0100 | [diff] [blame] | 2 | PROTOBUF_VER = '3.2.0' |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 3 | |
| 4 | COMPILE_DEPS = [ |
| 5 | '//lib:CORE_DEPS', |
| 6 | '//protocols/grpc/api:onos-protocols-grpc-api', |
| 7 | '//protocols/grpc/ctl:onos-protocols-grpc-ctl', |
| 8 | '//protocols/p4runtime/api:onos-protocols-p4runtime-api', |
| 9 | '//protocols/p4runtime/ctl:onos-protocols-p4runtime-ctl', |
| 10 | '//protocols/p4runtime/proto:onos-protocols-p4runtime-proto', |
Carmelo Cascone | b2e3dba | 2017-07-27 12:07:09 -0400 | [diff] [blame] | 11 | '//drivers/bmv2:onos-drivers-bmv2', |
Carmelo Cascone | ca94bcf | 2017-10-27 14:16:59 -0700 | [diff] [blame] | 12 | '//pipelines/basic:onos-pipelines-basic', |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 13 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 14 | '//lib:grpc-stub-' + GRPC_VER, |
| 15 | '//lib:protobuf-java-' + PROTOBUF_VER, |
| 16 | ] |
| 17 | |
| 18 | TEST_DEPS = [ |
| 19 | '//lib:TEST', |
| 20 | '//lib:slf4j-jdk14', |
Carmelo Cascone | 87892e2 | 2017-11-13 16:01:29 -0800 | [diff] [blame] | 21 | '//protocols/p4runtime/model:onos-protocols-p4runtime-model', |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 22 | # gRPC dependencies |
| 23 | '//lib:grpc-protobuf-' + GRPC_VER, |
| 24 | '//lib:grpc-protobuf-lite-' + GRPC_VER, |
| 25 | '//lib:grpc-netty-' + GRPC_VER, |
| 26 | '//lib:grpc-auth-' + GRPC_VER, |
| 27 | '//lib:google-instrumentation-0.3.0', |
| 28 | # Lazily adding all netty-related packages. |
| 29 | # Some of them might not be necessary. |
| 30 | '//lib:netty', |
| 31 | '//lib:netty-buffer', |
| 32 | '//lib:netty-codec', |
| 33 | '//lib:netty-codec-http', |
| 34 | '//lib:netty-codec-http2', |
| 35 | '//lib:netty-common', |
| 36 | '//lib:netty-handler', |
| 37 | '//lib:netty-transport', |
| 38 | '//lib:netty-transport-native-epoll', |
| 39 | '//lib:netty-resolver', |
Ray Milkey | 446f446 | 2017-08-17 15:36:01 -0700 | [diff] [blame] | 40 | '//lib:minimal-json', |
Carmelo Cascone | c8e8498 | 2017-07-26 15:34:42 -0400 | [diff] [blame] | 41 | ] |
| 42 | |
Ray Milkey | 6f1689c | 2017-09-07 16:32:18 -0700 | [diff] [blame] | 43 | java_test( |
| 44 | name = "onos-apps-p4runtime-test-tests", |
| 45 | srcs = glob([ 'src/test/java/**/*.java' ]), |
| 46 | deps = COMPILE_DEPS + TEST_DEPS, |
Ray Milkey | 446f446 | 2017-08-17 15:36:01 -0700 | [diff] [blame] | 47 | ) |