blob: f2528a4c034ba54a2ba1cc6fc8210e42d9e069d8 [file] [log] [blame]
Aaron Kruglikov9f95f992017-06-23 14:15:25 +09001
2COMPILE_DEPS = [
3 '//lib:CORE_DEPS',
4 ':onos-incubator-protobuf-services-nb-proto',
5 '//incubator/protobuf/models:onos-incubator-protobuf-models-proto',
6 '//incubator/protobuf/models:onos-incubator-protobuf-models',
7 '//lib:protobuf-java-3.2.0',
shivani vaidya9632b5f2017-06-27 11:00:04 -07008 '//lib:GRPC_1.3',
9 '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0',
Aaron Kruglikovae7e3b82017-05-03 14:13:53 -070010 '//lib:grpc-protobuf-lite-1.3.0',
11 '//incubator/protobuf/api:onos-grpc-api'
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090012]
13
14GRPC_DEPS = [
15 '//lib:GRPC_1.3',
shivani vaidya9632b5f2017-06-27 11:00:04 -070016 '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0',
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090017 '//incubator/protobuf/models:onos-incubator-protobuf-models-proto',
18 '//lib:protobuf-java-3.2.0',
Aaron Kruglikovae7e3b82017-05-03 14:13:53 -070019 '//lib:guava',
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090020]
21
22BUNDLES = [
23 '//incubator/protobuf/models:onos-incubator-protobuf-models',
24 '//incubator/protobuf/models:onos-incubator-protobuf-models-proto',
25 ':onos-incubator-protobuf-services-nb',
26 ':onos-incubator-protobuf-services-nb-proto',
27 '//lib:protobuf-java-3.2.0',
28 '//lib:guava',
29 '//lib:grpc-core-1.3.0',
shivani vaidya9632b5f2017-06-27 11:00:04 -070030 '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0',
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090031 '//lib:grpc-protobuf-1.3.0',
32 '//lib:grpc-stub-1.3.0',
33 '//lib:grpc-netty-1.3.0',
34 '//lib:grpc-auth-1.3.0',
35 '//lib:grpc-context-1.3.0',
36 '//lib:google-truth-0.28',
37 '//core/api:onos-api',
38 '//lib:netty-transport',
39 '//lib:netty-buffer',
40 '//lib:netty-resolver',
41 '//lib:netty-common',
42 '//lib:netty-codec',
43 '//lib:netty-handler',
44 '//lib:netty-codec-http2',
45 '//lib:netty-codec-http',
46 "//lib:google-instrumentation-0.3.0",
47]
48
49grpc_jar(
50 name = 'onos-incubator-protobuf-services-nb-proto',
51 deps = GRPC_DEPS,
Yuta HIGUCHIa2462242017-06-29 15:13:47 -070052 # FIXME should not be manually building absolute path
53 # come up with glob(..) equivalent in BUCK which can handle directory
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090054 proto_paths = ["$ONOS_ROOT/incubator/protobuf/services/nb/src/main/proto",
55 "$ONOS_ROOT/incubator/protobuf/models/src/main/proto"]
56)
57
58osgi_jar_with_tests(
59 deps = COMPILE_DEPS,
60 visibility = ['PUBLIC'],
Jian Li5384c842017-10-11 02:20:51 +090061)
62
63onos_app (
64 title = 'Grpc Northbound Service',
65 app_name = "org.onosproject.grpc.nb.service",
66 category = 'TODO',
67 url = 'http://onosproject.org',
68 included_bundles = ['//incubator/grpc-dependencies:grpc-core-repkg-1.3.0',
69 '//lib:google-instrumentation-0.3.0'],
70 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 -070071)