blob: 7d31d252c302460e3252ba70ca98b45b6a86c233 [file] [log] [blame]
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -07001load("//tools/build/bazel:osgi_features.bzl", "osgi_feature", "osgi_feature_repo")
Ray Milkey5a520c72018-11-01 10:35:06 -07002load("//tools/build/bazel: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",
Ray Milkey0faa7212018-11-07 09:13:41 -080017 "@commons_codec//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070018 "@commons_configuration//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070019 "@com_google_guava_guava//jar",
20 "@io_netty_netty//jar",
21 "@io_netty_netty_common//jar",
22 "@io_netty_netty_buffer//jar",
Brian O'Connor47a3aa62018-12-12 17:27:11 -080023 "@io_netty_netty_transport//jar",
Ray Milkeyfa066ed2018-12-14 21:53:12 +000024 "@io_netty_netty_handler//jar",
25 "@io_netty_netty_codec//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070026 "@io_netty_netty_transport_native_epoll//jar",
27 "@io_netty_netty_transport_native_unix_common//jar",
28 "@io_netty_netty_resolver//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070029 "@commons_pool//jar",
30 "@commons_math3//jar",
31 "@joda_time//jar",
32 "@metrics_core//jar",
33 "@metrics_json//jar",
34 "@minimal_json//jar",
35 "@kryo//jar",
36 "@reflectasm//jar",
37 "@asm//jar",
38 "@minlog//jar",
39 "@objenesis//jar",
40 "@jackson_core//jar",
41 "@jackson_annotations//jar",
42 "@jackson_databind//jar",
43 "@commons_collections//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070044 "@concurrent_trees//jar",
45 "@commons_io//jar",
Ramon Casellas4663da32018-11-12 15:44:20 +010046 "@commons_jxpath//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070047 "@mapdb//jar",
48 "@bcpkix_jdk15on//jar",
49 "@bcprov_jdk15on//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070050 "@commons_beanutils//jar",
51 "@jdom//jar",
52 "@sigar//jar",
Ray Milkeyd84f89b2018-08-17 14:54:17 -070053 "@org_osgi_util_function//jar",
54 "@org_osgi_util_promise//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070055 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070056 required_features = [],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070057 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070058)
59
Ray Milkeya8cf59e2018-06-06 16:39:45 -070060osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070061 name = "onos-thirdparty-web",
62 description = "ONOS 3rd party dependencies for web apps",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070063 included_bundles = [
64 "@jersey_common//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070065 "@javax_annotation_api_mvn//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070066 "@javax_ws_rs_api//jar",
67 "@hk2_api//jar",
68 "@hk2_locator//jar",
69 "@hk2_osgi_resource_locator//jar",
70 "@javax_inject//jar",
71 "@jersey_server//jar",
72 "@jersey_hk2//jar",
73 "@aopalliance_repackaged//jar",
74 "@hk2_utils//jar",
75 "@validation_api//jar",
76 "@javassist//jar",
77 "@jersey_container_servlet//jar",
78 "@jersey_container_servlet_core//jar",
79 "@jersey_media_multipart//jar",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070080 "@jersey_client//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070081 "@mimepull//jar",
82 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070083 required_features = [
84 "war",
85 "onos-thirdparty-base",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070086 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070087 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070088)
89
Ray Milkeya8cf59e2018-06-06 16:39:45 -070090osgi_feature(
91 name = "onos-api",
92 description = "ONOS services and model API",
93 included_bundles = [
94 "//utils/misc:onlab-misc",
95 "//utils/osgi:onlab-osgi",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070096 "//utils/rest:onlab-rest",
Ray Milkeya8cf59e2018-06-06 16:39:45 -070097 "//core/api:onos-api",
Ray Milkeya8cf59e2018-06-06 16:39:45 -070098 ],
99 required_features = [
100 "scr",
101 "onos-thirdparty-base",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700102 "onos-thirdparty-web",
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700103 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700104 visibility = ["//visibility:public"],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700105)
106
107osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700108 name = "onos-core",
109 description = "ONOS core components",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700110 included_bundles = [
111 "//core/net:onos-core-net",
112 "//core/common:onos-core-common",
113 "//core/store/dist:onos-core-dist",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700114 "//core/store/primitives:onos-core-primitives",
115 "//core/store/persistence:onos-core-persistence",
116 "//core/store/serializers:onos-core-serializers",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700117 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700118 required_features = ["onos-api"],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700119 visibility = ["//visibility:public"],
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700120)
121
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700122osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700123 name = "onos-rest",
124 description = "ONOS REST API components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700125 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700126 "//web/api:onos-rest",
127 ],
128 required_features = [
129 "onos-api",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700130 ],
131 visibility = ["//visibility:public"],
132)
133
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700134osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700135 name = "onos-cli",
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700136 description = "ONOS admin command console components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700137 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700138 "//cli:onos-cli",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700139 ],
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700140 required_features = ["onos-api"],
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700141 visibility = ["//visibility:public"],
142)
143
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700144osgi_feature(
Ray Milkey6b3775a2018-06-28 11:18:44 -0700145 name = "onos-gui",
146 description = "ONOS GUI console components",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700147 included_bundles = [
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700148 "//web/gui:onos-gui",
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700149 ],
150 required_features = [
151 "onos-api",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700152 ],
153 visibility = ["//visibility:public"],
154)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700155
Sean Condonf6af2a52018-08-19 10:43:24 +0100156osgi_feature(
157 name = "onos-gui2",
158 description = "ONOS GUI2 components",
159 included_bundles = [
160 "//web/gui2:onos-gui2",
Sean Condonf6af2a52018-08-19 10:43:24 +0100161 ],
162 required_features = [
163 "onos-api",
Sean Condonf6af2a52018-08-19 10:43:24 +0100164 ],
165 visibility = ["//visibility:public"],
166)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700167
Thomas Vachuskad0d7ea12018-10-10 10:27:04 -0700168#osgi_feature(
169# name = "onos-security",
170# description = "Security-Mode ONOS",
171# included_bundles = [
172# "@org_apache_felix_framework_security//jar",
173# "//core/security:onos-security",
174# ],
175# required_features = ["onos-api"],
176# visibility = ["//visibility:public"],
177#)