Hyunsun Moon | 0540087 | 2017-02-07 17:11:25 +0900 | [diff] [blame] | 1 | COMPILE_DEPS = [ |
Jian Li | 02a9498 | 2018-02-03 02:49:07 +0900 | [diff] [blame] | 2 | '//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 Li | 54c4604 | 2018-02-20 00:32:01 +0900 | [diff] [blame] | 18 | '//lib:snakeyaml', |
Ray Milkey | f80bbb2 | 2016-03-11 10:16:22 -0800 | [diff] [blame] | 19 | ] |
| 20 | |
Hyunsun Moon | c7eb0d0 | 2017-03-27 18:13:00 +0900 | [diff] [blame] | 21 | TEST_DEPS = [ |
| 22 | '//lib:TEST_ADAPTERS', |
| 23 | '//core/api:onos-api-tests', |
| 24 | '//core/common:onos-core-common-tests', |
Jian Li | 5c51d90a | 2018-02-20 14:10:25 +0900 | [diff] [blame] | 25 | '//web/api:onos-rest-tests', |
| 26 | '//lib:TEST_REST', |
Hyunsun Moon | c7eb0d0 | 2017-03-27 18:13:00 +0900 | [diff] [blame] | 27 | ] |
| 28 | |
Jian Li | 02a9498 | 2018-02-03 02:49:07 +0900 | [diff] [blame] | 29 | BUNDLES = [ |
| 30 | '//apps/openstacknetworking:onos-apps-openstacknetworking', |
| 31 | ] |
| 32 | |
Jian Li | 54c4604 | 2018-02-20 00:32:01 +0900 | [diff] [blame] | 33 | RESOURCES = { |
| 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 | |
| 44 | OPENSTACK4J_LIB = 'openstack4j-core-3.1.0.jar,openstack4j-http-connector-3.1.0.jar,openstack4j-httpclient-3.1.0.jar' |
| 45 | JACKSON_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 | |
| 47 | INCLUDE_PACKAGES = 'com.google.common.net,com.google.common.io,com.fasterxml.jackson.annotation,*' |
| 48 | EXCLUDE_PACKAGES = '!org.openstack4j,!org.openstack4j.*' |
Jian Li | 02a9498 | 2018-02-03 02:49:07 +0900 | [diff] [blame] | 49 | |
Hyunsun Moon | 0540087 | 2017-02-07 17:11:25 +0900 | [diff] [blame] | 50 | osgi_jar_with_tests ( |
Jian Li | 02a9498 | 2018-02-03 02:49:07 +0900 | [diff] [blame] | 51 | 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 Li | 54c4604 | 2018-02-20 00:32:01 +0900 | [diff] [blame] | 58 | |
| 59 | # dependency embedding |
| 60 | include_resources = RESOURCES, |
| 61 | import_packages = INCLUDE_PACKAGES + ',' + EXCLUDE_PACKAGES, |
| 62 | bundle_classpath = OPENSTACK4J_LIB + ',' + JACKSON_LIB |
Hyunsun Moon | 0540087 | 2017-02-07 17:11:25 +0900 | [diff] [blame] | 63 | ) |
| 64 | |
Ray Milkey | a5ff8a7 | 2016-04-19 09:43:45 -0700 | [diff] [blame] | 65 | onos_app ( |
Jian Li | 02a9498 | 2018-02-03 02:49:07 +0900 | [diff] [blame] | 66 | app_name = 'org.onosproject.openstacknetworking', |
| 67 | title = 'OpenStack Networking', |
| 68 | category = 'Utility', |
| 69 | url = 'http://onosproject.org', |
| 70 | included_bundles = BUNDLES, |
Jian Li | 02a9498 | 2018-02-03 02:49:07 +0900 | [diff] [blame] | 71 | description = 'OpenStack Networking application.', |
| 72 | required_apps = [ |
| 73 | 'org.onosproject.openstacknode' |
| 74 | ] |
Jian Li | 54c4604 | 2018-02-20 00:32:01 +0900 | [diff] [blame] | 75 | ) |