blob: 49787ec45c46c201f4b1ac91551984a8260afe36 [file] [log] [blame]
Carmelo Casconeb1936bd2017-12-12 14:42:27 -08001GRPC_VER = '1.3.1'
Aaron Kruglikov9f95f992017-06-23 14:15:25 +09002
3COMPILE_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 vaidya9632b5f2017-06-27 11:00:04 -07009 '//lib:GRPC_1.3',
Carmelo Casconeb1936bd2017-12-12 14:42:27 -080010 '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
11 '//lib:grpc-protobuf-lite-' + GRPC_VER,
Aaron Kruglikovae7e3b82017-05-03 14:13:53 -070012 '//incubator/protobuf/api:onos-grpc-api'
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090013]
14
15GRPC_DEPS = [
16 '//lib:GRPC_1.3',
Carmelo Casconeb1936bd2017-12-12 14:42:27 -080017 '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090018 '//incubator/protobuf/models:onos-incubator-protobuf-models-proto',
19 '//lib:protobuf-java-3.2.0',
Aaron Kruglikovae7e3b82017-05-03 14:13:53 -070020 '//lib:guava',
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090021]
22
23BUNDLES = [
24 '//incubator/protobuf/models:onos-incubator-protobuf-models',
25 '//incubator/protobuf/models:onos-incubator-protobuf-models-proto',
26 ':onos-incubator-protobuf-services-nb',
27 ':onos-incubator-protobuf-services-nb-proto',
28 '//lib:protobuf-java-3.2.0',
29 '//lib:guava',
Carmelo Casconeb1936bd2017-12-12 14:42:27 -080030 '//lib:grpc-core-' + GRPC_VER,
31 '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
32 '//lib:grpc-protobuf-' + GRPC_VER,
33 '//lib:grpc-stub-' + GRPC_VER,
34 '//lib:grpc-netty-' + GRPC_VER,
35 '//lib:grpc-auth-' + GRPC_VER,
36 '//lib:grpc-context-' + GRPC_VER,
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090037 '//lib:google-truth-0.28',
38 '//core/api:onos-api',
39 '//lib:netty-transport',
40 '//lib:netty-buffer',
41 '//lib:netty-resolver',
42 '//lib:netty-common',
43 '//lib:netty-codec',
44 '//lib:netty-handler',
45 '//lib:netty-codec-http2',
46 '//lib:netty-codec-http',
47 "//lib:google-instrumentation-0.3.0",
48]
49
50grpc_jar(
51 name = 'onos-incubator-protobuf-services-nb-proto',
52 deps = GRPC_DEPS,
Yuta HIGUCHIa2462242017-06-29 15:13:47 -070053 # FIXME should not be manually building absolute path
54 # come up with glob(..) equivalent in BUCK which can handle directory
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090055 proto_paths = ["$ONOS_ROOT/incubator/protobuf/services/nb/src/main/proto",
56 "$ONOS_ROOT/incubator/protobuf/models/src/main/proto"]
57)
58
59osgi_jar_with_tests(
60 deps = COMPILE_DEPS,
61 visibility = ['PUBLIC'],
Jian Li5384c842017-10-11 02:20:51 +090062)
63
64onos_app (
65 title = 'Grpc Northbound Service',
66 app_name = "org.onosproject.grpc.nb.service",
67 category = 'TODO',
68 url = 'http://onosproject.org',
Carmelo Casconeb1936bd2017-12-12 14:42:27 -080069 included_bundles = ['//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
Jian Li5384c842017-10-11 02:20:51 +090070 '//lib:google-instrumentation-0.3.0'],
71 description = 'gRPC northbound services used to provide fine-grained access to ONOS native northbound interface from off-platform applications',
Yuta HIGUCHIa2462242017-06-29 15:13:47 -070072)