blob: c1733d326e0fe151f0175225841af4eae2e3dcc7 [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
Ray Milkeyeb130702018-06-21 15:19:33 -070015TEST_DEPS = [
16 '//lib:TEST',
17 '//lib:TEST_ADAPTERS',
18]
19
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090020GRPC_DEPS = [
21 '//lib:GRPC_1.3',
Carmelo Casconeb1936bd2017-12-12 14:42:27 -080022 '//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090023 '//incubator/protobuf/models:onos-incubator-protobuf-models-proto',
24 '//lib:protobuf-java-3.2.0',
Aaron Kruglikovae7e3b82017-05-03 14:13:53 -070025 '//lib:guava',
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090026]
27
28BUNDLES = [
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 Casconeb1936bd2017-12-12 14:42:27 -080035 '//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 Kruglikov9f95f992017-06-23 14:15:25 +090042 '//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
55grpc_jar(
56 name = 'onos-incubator-protobuf-services-nb-proto',
57 deps = GRPC_DEPS,
Yuta HIGUCHIa2462242017-06-29 15:13:47 -070058 # FIXME should not be manually building absolute path
59 # come up with glob(..) equivalent in BUCK which can handle directory
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090060 proto_paths = ["$ONOS_ROOT/incubator/protobuf/services/nb/src/main/proto",
61 "$ONOS_ROOT/incubator/protobuf/models/src/main/proto"]
62)
63
64osgi_jar_with_tests(
65 deps = COMPILE_DEPS,
Ray Milkeyeb130702018-06-21 15:19:33 -070066 test_deps = TEST_DEPS,
Aaron Kruglikov9f95f992017-06-23 14:15:25 +090067 visibility = ['PUBLIC'],
Jian Li5384c842017-10-11 02:20:51 +090068)
69
70onos_app (
71 title = 'Grpc Northbound Service',
72 app_name = "org.onosproject.grpc.nb.service",
Thomas Vachuskaca0b5df2018-06-22 16:24:47 -070073 category = 'Utility',
Jian Li5384c842017-10-11 02:20:51 +090074 url = 'http://onosproject.org',
Carmelo Casconeb1936bd2017-12-12 14:42:27 -080075 included_bundles = ['//incubator/grpc-dependencies:grpc-core-repkg-' + GRPC_VER,
Jian Li5384c842017-10-11 02:20:51 +090076 '//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 HIGUCHIa2462242017-06-29 15:13:47 -070078)