blob: 1ebd65c397abfa21bde9d12a8cf3ae6fc3ede4e0 [file] [log] [blame]
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -07001load("//tools/build/bazel:osgi_features.bzl", "osgi_feature", "osgi_feature_repo")
Thomas Vachuska1ae26c62018-07-09 13:40:16 -07002load("//:modules.bzl", "FEATURES")
Ray Milkeya8cf59e2018-06-06 16:39:45 -07003
Thomas Vachuska03c608c2018-07-10 16:45:08 -07004osgi_feature_repo(
5 name = "onos-features",
6 exported_features = FEATURES,
7 visibility = ["//visibility:public"],
8)
9
Ray Milkeya8cf59e2018-06-06 16:39:45 -070010osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070011 name = "onos-thirdparty-base",
12 description = "ONOS 3rd party dependencies",
Ray Milkey644fdbf2018-07-27 15:24:31 -070013 included_bundles = ATOMIX + [
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070014 "@commons_lang//jar",
15 "@commons_lang3//jar",
16 "@commons_text//jar",
17 "@commons_configuration//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070018 "@com_google_guava_guava//jar",
19 "@io_netty_netty//jar",
20 "@io_netty_netty_common//jar",
21 "@io_netty_netty_buffer//jar",
22 "@io_netty_netty_transport//jar",
23 "@io_netty_netty_handler//jar",
24 "@io_netty_netty_codec//jar",
25 "@io_netty_netty_transport_native_epoll//jar",
26 "@io_netty_netty_transport_native_unix_common//jar",
27 "@io_netty_netty_resolver//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070028 "@commons_pool//jar",
29 "@commons_math3//jar",
30 "@joda_time//jar",
31 "@metrics_core//jar",
32 "@metrics_json//jar",
33 "@minimal_json//jar",
34 "@kryo//jar",
35 "@reflectasm//jar",
36 "@asm//jar",
37 "@minlog//jar",
38 "@objenesis//jar",
39 "@jackson_core//jar",
40 "@jackson_annotations//jar",
41 "@jackson_databind//jar",
42 "@commons_collections//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070043 "@concurrent_trees//jar",
44 "@commons_io//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070045 "@mapdb//jar",
46 "@bcpkix_jdk15on//jar",
47 "@bcprov_jdk15on//jar",
48 "@commons_jxpath//jar",
49 "@commons_beanutils//jar",
50 "@jdom//jar",
51 "@sigar//jar",
52 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070053 required_features = [],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070054 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070055)
56
Ray Milkeya8cf59e2018-06-06 16:39:45 -070057osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070058 name = "onos-thirdparty-web",
59 description = "ONOS 3rd party dependencies for web apps",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070060 included_bundles = [
61 "@jersey_common//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070062 "@javax_annotation_api_mvn//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070063 "@javax_ws_rs_api//jar",
64 "@hk2_api//jar",
65 "@hk2_locator//jar",
66 "@hk2_osgi_resource_locator//jar",
67 "@javax_inject//jar",
68 "@jersey_server//jar",
69 "@jersey_hk2//jar",
70 "@aopalliance_repackaged//jar",
71 "@hk2_utils//jar",
72 "@validation_api//jar",
73 "@javassist//jar",
74 "@jersey_container_servlet//jar",
75 "@jersey_container_servlet_core//jar",
76 "@jersey_media_multipart//jar",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070077 "@jersey_client//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070078 "@mimepull//jar",
79 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070080 required_features = [
81 "war",
82 "onos-thirdparty-base",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070083 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070084 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070085)
86
Ray Milkeya8cf59e2018-06-06 16:39:45 -070087osgi_feature(
88 name = "onos-api",
89 description = "ONOS services and model API",
90 included_bundles = [
91 "//utils/misc:onlab-misc",
92 "//utils/osgi:onlab-osgi",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070093 "//utils/rest:onlab-rest",
Ray Milkeya8cf59e2018-06-06 16:39:45 -070094 "//core/api:onos-api",
95 "//incubator/api:onos-incubator-api",
96 ],
97 required_features = [
98 "scr",
99 "onos-thirdparty-base",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700100 "onos-thirdparty-web",
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700101 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700102 visibility = ["//visibility:public"],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700103)
104
105osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700106 name = "onos-core",
107 description = "ONOS core components",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700108 included_bundles = [
109 "//core/net:onos-core-net",
110 "//core/common:onos-core-common",
111 "//core/store/dist:onos-core-dist",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700112 "//core/store/primitives:onos-core-primitives",
113 "//core/store/persistence:onos-core-persistence",
114 "//core/store/serializers:onos-core-serializers",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700115 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700116 required_features = ["onos-api"],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700117 visibility = ["//visibility:public"],
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700118)
119
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700120osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700121 name = "onos-incubator",
122 description = "ONOS core incubator components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700123 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700124 "//incubator/net:onos-incubator-net",
125 "//incubator/store:onos-incubator-store",
126 "//incubator/rpc:onos-incubator-rpc",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700127 ],
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700128 required_features = ["onos-core"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700129 visibility = ["//visibility:public"],
130)
131
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700132osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700133 name = "onos-rest",
134 description = "ONOS REST API components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700135 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700136 "//utils/rest:onlab-rest",
137 "//web/api:onos-rest",
138 ],
139 required_features = [
140 "onos-api",
141 "onos-thirdparty-web",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700142 ],
143 visibility = ["//visibility:public"],
144)
145
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700146osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700147 name = "onos-cli",
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700148 description = "ONOS admin command console components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700149 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700150 "//cli:onos-cli",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700151 ],
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700152 required_features = ["onos-api"],
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700153 visibility = ["//visibility:public"],
154)
155
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700156osgi_feature(
Ray Milkey6b3775a2018-06-28 11:18:44 -0700157 name = "onos-gui",
158 description = "ONOS GUI console components",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700159 included_bundles = [
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700160 "//web/gui:onos-gui",
161 "@jetty_websocket//jar",
162 "//utils/rest:onlab-rest",
163 ],
164 required_features = [
165 "onos-api",
166 "onos-thirdparty-web",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700167 ],
168 visibility = ["//visibility:public"],
169)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700170
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700171#osgi_feature (
Thomas Vachuska0edb2c62018-08-07 14:53:29 -0700172# name = "onos-gui2",
173# description = "ONOS GUI2 console components",
174# included_bundles = [
175# "//web/gui:onos-gui2",
176# "@jetty_websocket//jar",
177# "//utils/rest:onlab-rest",
178# ],
179# required_features = [
180# "onos-api",
181# "onos-thirdparty-web",
182# ],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700183#)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700184
Ray Milkeya01809a2018-08-09 09:20:06 -0700185osgi_feature(
Thomas Vachuska0edb2c62018-08-07 14:53:29 -0700186 name = "onos-security",
Ray Milkeya01809a2018-08-09 09:20:06 -0700187 description = "Security-Mode ONOS",
Thomas Vachuska0edb2c62018-08-07 14:53:29 -0700188 included_bundles = [
189 "@org_apache_felix_framework_security//jar",
190 "//core/security:onos-security",
191 ],
192 required_features = ["onos-api"],
193 visibility = ["//visibility:public"],
194)