blob: 6f3532c4229e5ed7b7855b7e80103d194002d8f4 [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",
Ray Milkeyfb503a72018-12-19 14:03:17 -080020 "@io_netty_netty//jar",
21 "@io_netty_netty_common//jar",
22 "@io_netty_netty_buffer//jar",
23 "@io_netty_netty_transport//jar",
24 "@io_netty_netty_handler//jar",
25 "@io_netty_netty_codec//jar",
Carmelo Cascone0f8b7be2019-01-29 16:10:57 -080026 "@io_netty_netty_codec_http//jar",
27 "@io_netty_netty_codec_http2//jar",
28 "@io_netty_netty_codec_socks//jar",
29 "@io_netty_netty_handler_proxy//jar",
Ray Milkeyfb503a72018-12-19 14:03:17 -080030 "@io_netty_netty_transport_native_epoll//jar",
31 "@io_netty_netty_transport_native_unix_common//jar",
32 "@io_netty_netty_resolver//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070033 "@commons_pool//jar",
34 "@commons_math3//jar",
35 "@joda_time//jar",
36 "@metrics_core//jar",
37 "@metrics_json//jar",
38 "@minimal_json//jar",
39 "@kryo//jar",
40 "@reflectasm//jar",
41 "@asm//jar",
42 "@minlog//jar",
43 "@objenesis//jar",
44 "@jackson_core//jar",
45 "@jackson_annotations//jar",
46 "@jackson_databind//jar",
47 "@commons_collections//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070048 "@concurrent_trees//jar",
49 "@commons_io//jar",
Ramon Casellas4663da32018-11-12 15:44:20 +010050 "@commons_jxpath//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070051 "@mapdb//jar",
52 "@bcpkix_jdk15on//jar",
53 "@bcprov_jdk15on//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070054 "@commons_beanutils//jar",
55 "@jdom//jar",
56 "@sigar//jar",
Ray Milkeyd84f89b2018-08-17 14:54:17 -070057 "@org_osgi_util_function//jar",
58 "@org_osgi_util_promise//jar",
Ray Milkey11ce9302019-02-07 14:41:17 -080059 "@jaxb_api//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070060 ],
Ray Milkeyfb503a72018-12-19 14:03:17 -080061 required_features = [],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070062 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070063)
64
Ray Milkeya8cf59e2018-06-06 16:39:45 -070065osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070066 name = "onos-thirdparty-web",
67 description = "ONOS 3rd party dependencies for web apps",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070068 included_bundles = [
69 "@jersey_common//jar",
Carmelo Cascone72893b72018-08-09 00:59:06 -070070 "@javax_annotation_api_mvn//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070071 "@javax_ws_rs_api//jar",
72 "@hk2_api//jar",
73 "@hk2_locator//jar",
74 "@hk2_osgi_resource_locator//jar",
75 "@javax_inject//jar",
76 "@jersey_server//jar",
77 "@jersey_hk2//jar",
78 "@aopalliance_repackaged//jar",
79 "@hk2_utils//jar",
80 "@validation_api//jar",
81 "@javassist//jar",
82 "@jersey_container_servlet//jar",
83 "@jersey_container_servlet_core//jar",
84 "@jersey_media_multipart//jar",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070085 "@jersey_client//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070086 "@mimepull//jar",
87 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070088 required_features = [
89 "war",
90 "onos-thirdparty-base",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070091 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070092 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070093)
94
Ray Milkeya8cf59e2018-06-06 16:39:45 -070095osgi_feature(
96 name = "onos-api",
97 description = "ONOS services and model API",
98 included_bundles = [
99 "//utils/misc:onlab-misc",
100 "//utils/osgi:onlab-osgi",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700101 "//utils/rest:onlab-rest",
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700102 "//core/api:onos-api",
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700103 ],
104 required_features = [
105 "scr",
106 "onos-thirdparty-base",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700107 "onos-thirdparty-web",
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700108 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700109 visibility = ["//visibility:public"],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700110)
111
112osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700113 name = "onos-core",
114 description = "ONOS core components",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700115 included_bundles = [
116 "//core/net:onos-core-net",
117 "//core/common:onos-core-common",
118 "//core/store/dist:onos-core-dist",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700119 "//core/store/primitives:onos-core-primitives",
120 "//core/store/persistence:onos-core-persistence",
121 "//core/store/serializers:onos-core-serializers",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700122 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700123 required_features = ["onos-api"],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700124 visibility = ["//visibility:public"],
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700125)
126
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700127osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700128 name = "onos-rest",
129 description = "ONOS REST API components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700130 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700131 "//web/api:onos-rest",
132 ],
133 required_features = [
134 "onos-api",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700135 ],
136 visibility = ["//visibility:public"],
137)
138
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700139osgi_feature(
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700140 name = "onos-cli",
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700141 description = "ONOS admin command console components",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700142 included_bundles = [
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700143 "//cli:onos-cli",
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700144 ],
Ray Milkeya4f8d9d2018-07-11 10:36:23 -0700145 required_features = ["onos-api"],
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700146 visibility = ["//visibility:public"],
147)
148
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700149osgi_feature(
Ray Milkey6b3775a2018-06-28 11:18:44 -0700150 name = "onos-gui",
151 description = "ONOS GUI console components",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700152 included_bundles = [
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700153 "//web/gui:onos-gui",
Ray Milkey6d94e9f2018-07-15 18:04:26 -0700154 ],
155 required_features = [
156 "onos-api",
Ray Milkey6b3775a2018-06-28 11:18:44 -0700157 ],
158 visibility = ["//visibility:public"],
159)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700160
Sean Condonf6af2a52018-08-19 10:43:24 +0100161osgi_feature(
162 name = "onos-gui2",
163 description = "ONOS GUI2 components",
164 included_bundles = [
165 "//web/gui2:onos-gui2",
Sean Condonf6af2a52018-08-19 10:43:24 +0100166 ],
167 required_features = [
168 "onos-api",
Sean Condonf6af2a52018-08-19 10:43:24 +0100169 ],
170 visibility = ["//visibility:public"],
171)
Thomas Vachuska03c608c2018-07-10 16:45:08 -0700172
Thomas Vachuskad0d7ea12018-10-10 10:27:04 -0700173#osgi_feature(
174# name = "onos-security",
175# description = "Security-Mode ONOS",
176# included_bundles = [
177# "@org_apache_felix_framework_security//jar",
178# "//core/security:onos-security",
179# ],
180# required_features = ["onos-api"],
181# visibility = ["//visibility:public"],
182#)