Carmelo Cascone | b1936bd | 2017-12-12 14:42:27 -0800 | [diff] [blame] | 1 | GRPC_VER = '1.3.1' |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 2 | |
| 3 | COMPILE_DEPS = [ |
| 4 | '//lib:CORE_DEPS', |
| 5 | ':onos-incubator-protobuf-services-nb-proto', |
| 6 | '//incubator/protobuf/models:onos-incubator-protobuf-models-proto', |
| 7 | '//incubator/protobuf/models:onos-incubator-protobuf-models', |
| 8 | '//lib:protobuf-java-3.2.0', |
shivani vaidya | 9632b5f | 2017-06-27 11:00:04 -0700 | [diff] [blame] | 9 | '//lib:GRPC_1.3', |
Carmelo Cascone | b1936bd | 2017-12-12 14:42:27 -0800 | [diff] [blame] | 10 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 11 | '//lib:grpc-protobuf-lite-' + GRPC_VER, |
Aaron Kruglikov | ae7e3b8 | 2017-05-03 14:13:53 -0700 | [diff] [blame] | 12 | '//incubator/protobuf/api:onos-grpc-api' |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 13 | ] |
| 14 | |
Ray Milkey | eb13070 | 2018-06-21 15:19:33 -0700 | [diff] [blame] | 15 | TEST_DEPS = [ |
| 16 | '//lib:TEST', |
| 17 | '//lib:TEST_ADAPTERS', |
| 18 | ] |
| 19 | |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 20 | GRPC_DEPS = [ |
| 21 | '//lib:GRPC_1.3', |
Carmelo Cascone | b1936bd | 2017-12-12 14:42:27 -0800 | [diff] [blame] | 22 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 23 | '//incubator/protobuf/models:onos-incubator-protobuf-models-proto', |
| 24 | '//lib:protobuf-java-3.2.0', |
Aaron Kruglikov | ae7e3b8 | 2017-05-03 14:13:53 -0700 | [diff] [blame] | 25 | '//lib:guava', |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 26 | ] |
| 27 | |
| 28 | BUNDLES = [ |
| 29 | '//incubator/protobuf/models:onos-incubator-protobuf-models', |
| 30 | '//incubator/protobuf/models:onos-incubator-protobuf-models-proto', |
| 31 | ':onos-incubator-protobuf-services-nb', |
| 32 | ':onos-incubator-protobuf-services-nb-proto', |
| 33 | '//lib:protobuf-java-3.2.0', |
| 34 | '//lib:guava', |
Carmelo Cascone | b1936bd | 2017-12-12 14:42:27 -0800 | [diff] [blame] | 35 | '//lib:grpc-core-' + GRPC_VER, |
| 36 | '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
| 37 | '//lib:grpc-protobuf-' + GRPC_VER, |
| 38 | '//lib:grpc-stub-' + GRPC_VER, |
| 39 | '//lib:grpc-netty-' + GRPC_VER, |
| 40 | '//lib:grpc-auth-' + GRPC_VER, |
| 41 | '//lib:grpc-context-' + GRPC_VER, |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 42 | '//lib:google-truth-0.28', |
| 43 | '//core/api:onos-api', |
| 44 | '//lib:netty-transport', |
| 45 | '//lib:netty-buffer', |
| 46 | '//lib:netty-resolver', |
| 47 | '//lib:netty-common', |
| 48 | '//lib:netty-codec', |
| 49 | '//lib:netty-handler', |
| 50 | '//lib:netty-codec-http2', |
| 51 | '//lib:netty-codec-http', |
| 52 | "//lib:google-instrumentation-0.3.0", |
| 53 | ] |
| 54 | |
| 55 | grpc_jar( |
| 56 | name = 'onos-incubator-protobuf-services-nb-proto', |
| 57 | deps = GRPC_DEPS, |
Yuta HIGUCHI | a246224 | 2017-06-29 15:13:47 -0700 | [diff] [blame] | 58 | # FIXME should not be manually building absolute path |
| 59 | # come up with glob(..) equivalent in BUCK which can handle directory |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 60 | proto_paths = ["$ONOS_ROOT/incubator/protobuf/services/nb/src/main/proto", |
| 61 | "$ONOS_ROOT/incubator/protobuf/models/src/main/proto"] |
| 62 | ) |
| 63 | |
| 64 | osgi_jar_with_tests( |
| 65 | deps = COMPILE_DEPS, |
Ray Milkey | eb13070 | 2018-06-21 15:19:33 -0700 | [diff] [blame] | 66 | test_deps = TEST_DEPS, |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 67 | visibility = ['PUBLIC'], |
Jian Li | 5384c84 | 2017-10-11 02:20:51 +0900 | [diff] [blame] | 68 | ) |
| 69 | |
| 70 | onos_app ( |
| 71 | title = 'Grpc Northbound Service', |
| 72 | app_name = "org.onosproject.grpc.nb.service", |
Thomas Vachuska | ca0b5df | 2018-06-22 16:24:47 -0700 | [diff] [blame] | 73 | category = 'Utility', |
Jian Li | 5384c84 | 2017-10-11 02:20:51 +0900 | [diff] [blame] | 74 | url = 'http://onosproject.org', |
Carmelo Cascone | b1936bd | 2017-12-12 14:42:27 -0800 | [diff] [blame] | 75 | included_bundles = ['//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER, |
Jian Li | 5384c84 | 2017-10-11 02:20:51 +0900 | [diff] [blame] | 76 | '//lib:google-instrumentation-0.3.0'], |
| 77 | description = 'gRPC northbound services used to provide fine-grained access to ONOS native northbound interface from off-platform applications', |
Yuta HIGUCHI | a246224 | 2017-06-29 15:13:47 -0700 | [diff] [blame] | 78 | ) |