blob: d1e59f393b5e74fec96cc8e6852cc43ee40b4b46 [file] [log] [blame]
Hyunsun Moon05400872017-02-07 17:11:25 +09001COMPILE_DEPS = [
Jian Li02a94982018-02-03 02:49:07 +09002 '//lib:CORE_DEPS',
3 '//lib:JACKSON',
4 '//lib:KRYO',
5 '//core/store/serializers:onos-core-serializers',
6 '//lib:org.apache.karaf.shell.console',
7 '//lib:javax.ws.rs-api',
8 '//utils/rest:onlab-rest',
9 '//cli:onos-cli',
10 '//apps/openstacknode/api:onos-apps-openstacknode-api',
11 '//lib:openstack4j-core',
12 '//lib:openstack4j-http-connector',
13 '//lib:openstack4j-httpclient',
14 '//lib:json-patch',
15 '//lib:jackson-coreutils',
16 '//lib:btf',
17 '//lib:msg-simple',
Jian Li54c46042018-02-20 00:32:01 +090018 '//lib:snakeyaml',
Ray Milkeyf80bbb22016-03-11 10:16:22 -080019]
20
Hyunsun Moonc7eb0d02017-03-27 18:13:00 +090021TEST_DEPS = [
22 '//lib:TEST_ADAPTERS',
23 '//core/api:onos-api-tests',
24 '//core/common:onos-core-common-tests',
Jian Li5c51d90a2018-02-20 14:10:25 +090025 '//web/api:onos-rest-tests',
26 '//lib:TEST_REST',
Hyunsun Moonc7eb0d02017-03-27 18:13:00 +090027]
28
Jian Li02a94982018-02-03 02:49:07 +090029BUNDLES = [
30 '//apps/openstacknetworking:onos-apps-openstacknetworking',
31]
32
Jian Li54c46042018-02-20 00:32:01 +090033RESOURCES = {
34 'openstack4j-core-3.1.0.jar': 'src/main/resources/deps/openstack4j-core-3.1.0.jar',
35 'openstack4j-http-connector-3.1.0.jar': 'src/main/resources/deps/openstack4j-http-connector-3.1.0.jar',
36 'openstack4j-httpclient-3.1.0.jar': 'src/main/resources/deps/openstack4j-httpclient-3.1.0.jar',
37 'json-patch-1.9.jar': 'src/main/resources/deps/json-patch-1.9.jar',
38 'jackson-coreutils-1.6.jar': 'src/main/resources/deps/jackson-coreutils-1.6.jar',
39 'msg-simple-1.1.jar': 'src/main/resources/deps/msg-simple-1.1.jar',
40 'btf-1.2.jar': 'src/main/resources/deps/btf-1.2.jar',
41 'snakeyaml-1.15.jar': 'src/main/resources/deps/snakeyaml-1.15.jar',
42}
43
44OPENSTACK4J_LIB = 'openstack4j-core-3.1.0.jar,openstack4j-http-connector-3.1.0.jar,openstack4j-httpclient-3.1.0.jar'
45JACKSON_LIB = 'json-patch-1.9.jar,jackson-coreutils-1.6.jar,msg-simple-1.1.jar,btf-1.2.jar,snakeyaml-1.15.jar'
46
47INCLUDE_PACKAGES = 'com.google.common.net,com.google.common.io,com.fasterxml.jackson.annotation,*'
48EXCLUDE_PACKAGES = '!org.openstack4j,!org.openstack4j.*'
Jian Li02a94982018-02-03 02:49:07 +090049
Hyunsun Moon05400872017-02-07 17:11:25 +090050osgi_jar_with_tests (
Jian Li02a94982018-02-03 02:49:07 +090051 deps = COMPILE_DEPS,
52 test_deps = TEST_DEPS,
53 web_context = '/onos/openstacknetworking',
54 api_title = 'OpenStack Networking API',
55 api_version = '1.0',
56 api_description = 'REST API for OpenStack Networking',
57 api_package = 'org.onosproject.openstacknetworking.web',
Jian Li54c46042018-02-20 00:32:01 +090058
59 # dependency embedding
60 include_resources = RESOURCES,
61 import_packages = INCLUDE_PACKAGES + ',' + EXCLUDE_PACKAGES,
62 bundle_classpath = OPENSTACK4J_LIB + ',' + JACKSON_LIB
Hyunsun Moon05400872017-02-07 17:11:25 +090063)
64
Ray Milkeya5ff8a72016-04-19 09:43:45 -070065onos_app (
Jian Li02a94982018-02-03 02:49:07 +090066 app_name = 'org.onosproject.openstacknetworking',
67 title = 'OpenStack Networking',
68 category = 'Utility',
69 url = 'http://onosproject.org',
70 included_bundles = BUNDLES,
Jian Li02a94982018-02-03 02:49:07 +090071 description = 'OpenStack Networking application.',
72 required_apps = [
73 'org.onosproject.openstacknode'
74 ]
Jian Li54c46042018-02-20 00:32:01 +090075)