blob: 529c9c098d6fa5ba7c35dc7db2da6ce15fc4e2b1 [file] [log] [blame]
Jian Lid486a732018-08-03 00:32:11 +09001load(
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
10COMPILE_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 "//apps/openstacknetworking/api:onos-apps-openstacknetworking-api",
16 "@openstack4j_core//jar",
17 "@openstack4j_http_connector//jar",
18 "@openstack4j_httpclient//jar",
19 "@json_patch//jar",
20 "@jackson_coreutils//jar",
21 "@btf//jar",
22 "@msg_simple//jar",
23 "@snakeyaml//jar",
24]
25
26TEST_DEPS = TEST_ADAPTERS + TEST_REST + [
27 "//core/api:onos-api-tests",
28 "//apps/openstacknode/api:onos-apps-openstacknode-api-tests",
29 "//core/common:onos-core-common-tests",
30 "//web/api:onos-rest-tests",
31]
32
33osgi_jar_with_tests(
34 api_description = "REST API for OpenStack Networking",
35 api_package = "org.onosproject.openstacknetworking.web",
36 api_title = "OpenStack Networking 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,
40 test_deps = TEST_DEPS,
41 web_context = "/onos/openstacknetworking",
42 deps = COMPILE_DEPS,
43)