blob: de3fd204b31e5f4a4722ab4616e2b44093bf4ef0 [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",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070048 "@commons_beanutils//jar",
49 "@jdom//jar",
50 "@sigar//jar",
Ray Milkeyd84f89b2018-08-17 14:54:17 -070051 "@org_osgi_util_function//jar",
52 "@org_osgi_util_promise//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070053 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070054 required_features = [],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070055 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070056)
57
Ray Milkeya8cf59e2018-06-06 16:39:45 -070058osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070059 name = "onos-thirdparty-web",
60 description = "ONOS 3rd party dependencies for web apps",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070061 included_bundles = [
62 "@jersey_common//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070063 "@javax_annotation_api_mvn//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070064 "@javax_ws_rs_api//jar",
65 "@hk2_api//jar",
66 "@hk2_locator//jar",
67 "@hk2_osgi_resource_locator//jar",
68 "@javax_inject//jar",
69 "@jersey_server//jar",
70 "@jersey_hk2//jar",
71 "@aopalliance_repackaged//jar",
72 "@hk2_utils//jar",
73 "@validation_api//jar",
74 "@javassist//jar",
75 "@jersey_container_servlet//jar",
76 "@jersey_container_servlet_core//jar",
77 "@jersey_media_multipart//jar",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070078 "@jersey_client//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070079 "@mimepull//jar",
80 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070081 required_features = [
82 "war",
83 "onos-thirdparty-base",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070084 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070085 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070086)
87
Ray Milkeya8cf59e2018-06-06 16:39:45 -070088osgi_feature(
89 name = "onos-api",
90 description = "ONOS services and model API",
91 included_bundles = [
92 "//utils/misc:onlab-misc",
93 "//utils/osgi:onlab-osgi",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070094 "//utils/rest:onlab-rest",
Ray Milkeya8cf59e2018-06-06 16:39:45 -070095 "//core/api:onos-api",
96 "//incubator/api:onos-incubator-api",
97 ],
98 required_features = [
99 "scr",
100 "onos-thirdparty-base",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700101 "onos-thirdparty-web",
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700102 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700103 visibility = ["//visibility:public"],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700104)
105
106osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700107 name = "onos-core",
108 description = "ONOS core components",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700109 included_bundles = [
110 "//core/net:onos-core-net",
111 "//core/common:onos-core-common",
112 "//core/store/dist:onos-core-dist",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700113 "//core/store/primitives:onos-core-primitives",
114 "//core/store/persistence:onos-core-persistence",
115 "//core/store/serializers:onos-core-serializers",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700116 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700117 required_features = ["onos-api"],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700118 visibility = ["//visibility:public"],
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700119)
120
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700121osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700122 name = "onos-incubator",
123 description = "ONOS core incubator components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700124 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700125 "//incubator/net:onos-incubator-net",
126 "//incubator/store:onos-incubator-store",
127 "//incubator/rpc:onos-incubator-rpc",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700128 ],
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700129 required_features = ["onos-core"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700130 visibility = ["//visibility:public"],
131)
132
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700133osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700134 name = "onos-rest",
135 description = "ONOS REST API components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700136 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700137 "//utils/rest:onlab-rest",
138 "//web/api:onos-rest",
139 ],
140 required_features = [
141 "onos-api",
142 "onos-thirdparty-web",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700143 ],
144 visibility = ["//visibility:public"],
145)
146
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700147osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700148 name = "onos-cli",
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700149 description = "ONOS admin command console components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700150 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700151 "//cli:onos-cli",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700152 ],
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700153 required_features = ["onos-api"],
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700154 visibility = ["//visibility:public"],
155)
156
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700157osgi_feature(
Ray Milkeyd84f89b2018-08-17 14:54:17 -0700158 name = "onos-cli2",
159 description = "stripped down ONOS admin command console components",
160 included_bundles = [
161 "//cli2:onos-cli2",
162 ],
163 required_features = ["onos-api"],
164 visibility = ["//visibility:public"],
165)
166
167osgi_feature(
Ray Milkey6b3775a2018-06-28 11:18:44 -0700168 name = "onos-gui",
169 description = "ONOS GUI console components",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700170 included_bundles = [
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700171 "//web/gui:onos-gui",
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700172 "//utils/rest:onlab-rest",
173 ],
174 required_features = [
175 "onos-api",
176 "onos-thirdparty-web",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700177 ],
178 visibility = ["//visibility:public"],
179)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700180
Sean Condonf6af2a52018-08-19 10:43:24 +0100181osgi_feature(
182 name = "onos-gui2",
183 description = "ONOS GUI2 components",
184 included_bundles = [
185 "//web/gui2:onos-gui2",
Sean Condonf6af2a52018-08-19 10:43:24 +0100186 "//utils/rest:onlab-rest",
187 ],
188 required_features = [
189 "onos-api",
190 "onos-thirdparty-web",
191 ],
192 visibility = ["//visibility:public"],
193)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700194
Ray Milkeya01809a2018-08-09 09:20:06 -0700195osgi_feature(
Thomas Vachuska0edb2c62018-08-07 14:53:29 -0700196 name = "onos-security",
Ray Milkeya01809a2018-08-09 09:20:06 -0700197 description = "Security-Mode ONOS",
Thomas Vachuska0edb2c62018-08-07 14:53:29 -0700198 included_bundles = [
199 "@org_apache_felix_framework_security//jar",
200 "//core/security:onos-security",
201 ],
202 required_features = ["onos-api"],
203 visibility = ["//visibility:public"],
204)