Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 1 | load( |
| 2 | "//apps/openstacknode:openstack4j.bzl", |
| 3 | "ALL_PACKAGES", |
| 4 | "EXCLUDE_PACKAGES", |
| 5 | "INCLUDE_PACKAGES", |
| 6 | "get_jackson_deps_path", |
| 7 | "get_openstack4j_deps_path", |
| 8 | ) |
| 9 | |
| 10 | COMPILE_DEPS = CORE_DEPS + JACKSON + KRYO + CLI + REST + [ |
| 11 | "//core/store/serializers:onos-core-serializers", |
| 12 | "//protocols/ovsdb/api:onos-protocols-ovsdb-api", |
| 13 | "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc", |
| 14 | "//apps/openstacknode/api:onos-apps-openstacknode-api", |
| 15 | "@openstack4j_core//jar", |
| 16 | "@openstack4j_http_connector//jar", |
| 17 | "@openstack4j_httpclient//jar", |
| 18 | "@json_patch//jar", |
| 19 | "@jackson_coreutils//jar", |
| 20 | "@btf//jar", |
| 21 | "@msg_simple//jar", |
| 22 | "@snakeyaml//jar", |
| 23 | ] |
| 24 | |
| 25 | TEST_DEPS = TEST_ADAPTERS + TEST_REST + [ |
| 26 | "//core/api:onos-api-tests", |
| 27 | "//apps/openstacknode/api:onos-apps-openstacknode-api-tests", |
| 28 | "//core/common:onos-core-common-tests", |
| 29 | "//web/api:onos-rest-tests", |
Jian Li | 901462a | 2019-02-20 18:50:30 +0900 | [diff] [blame] | 30 | "@minimal_json//jar", |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 31 | ] |
| 32 | |
| 33 | osgi_jar_with_tests( |
| 34 | api_description = "REST API for OpenStack Node", |
| 35 | api_package = "org.onosproject.openstacknode.web", |
| 36 | api_title = "OpenStack Node API", |
| 37 | api_version = "1.0", |
| 38 | bundle_classpath = get_openstack4j_deps_path() + get_jackson_deps_path(), |
| 39 | import_packages = INCLUDE_PACKAGES + "," + EXCLUDE_PACKAGES + "," + ALL_PACKAGES, |
Jian Li | bb83f7c | 2018-11-13 01:47:19 +0900 | [diff] [blame] | 40 | karaf_command_packages = ["org.onosproject.openstacknode.cli"], |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 41 | test_deps = TEST_DEPS, |
| 42 | web_context = "/onos/openstacknode", |
| 43 | deps = COMPILE_DEPS, |
| 44 | ) |