blob: 28645f05f3f0df1245d64fd248efe1507491ec04 [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
4osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -07005 name = "onos-thirdparty-base",
6 description = "ONOS 3rd party dependencies",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -07007 included_bundles = [
8 "@atomix//jar",
9 "@commons_lang//jar",
10 "@commons_lang3//jar",
11 "@commons_text//jar",
12 "@commons_configuration//jar",
13 "@guava//jar",
14 "@netty//jar",
15 "@netty_common//jar",
16 "@netty_buffer//jar",
17 "@netty_transport//jar",
18 "@netty_handler//jar",
19 "@netty_codec//jar",
20 "@netty_transport_native_epoll//jar",
21 "@netty_resolver//jar",
22 "@commons_pool//jar",
23 "@commons_math3//jar",
24 "@joda_time//jar",
25 "@metrics_core//jar",
26 "@metrics_json//jar",
27 "@minimal_json//jar",
28 "@kryo//jar",
29 "@reflectasm//jar",
30 "@asm//jar",
31 "@minlog//jar",
32 "@objenesis//jar",
33 "@jackson_core//jar",
34 "@jackson_annotations//jar",
35 "@jackson_databind//jar",
36 "@commons_collections//jar",
37 "@typesafe_config//jar",
38 "@concurrent_trees//jar",
39 "@commons_io//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070040 "@mapdb//jar",
41 "@bcpkix_jdk15on//jar",
42 "@bcprov_jdk15on//jar",
43 "@commons_jxpath//jar",
44 "@commons_beanutils//jar",
45 "@jdom//jar",
46 "@sigar//jar",
47 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070048 required_features = [],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070049 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070050)
51
Ray Milkeya8cf59e2018-06-06 16:39:45 -070052osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070053 name = "onos-thirdparty-web",
54 description = "ONOS 3rd party dependencies for web apps",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070055 included_bundles = [
56 "@jersey_common//jar",
57 "@javax_annotation_api//jar",
58 "@javax_ws_rs_api//jar",
59 "@hk2_api//jar",
60 "@hk2_locator//jar",
61 "@hk2_osgi_resource_locator//jar",
62 "@javax_inject//jar",
63 "@jersey_server//jar",
64 "@jersey_hk2//jar",
65 "@aopalliance_repackaged//jar",
66 "@hk2_utils//jar",
67 "@validation_api//jar",
68 "@javassist//jar",
69 "@jersey_container_servlet//jar",
70 "@jersey_container_servlet_core//jar",
71 "@jersey_media_multipart//jar",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070072 "@jersey_client//jar",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070073 "@mimepull//jar",
74 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070075 required_features = [
76 "war",
77 "onos-thirdparty-base",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070078 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070079 visibility = ["//visibility:public"],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070080)
81
Ray Milkeya8cf59e2018-06-06 16:39:45 -070082osgi_feature(
83 name = "onos-api",
84 description = "ONOS services and model API",
85 included_bundles = [
86 "//utils/misc:onlab-misc",
87 "//utils/osgi:onlab-osgi",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070088 "//utils/rest:onlab-rest",
Ray Milkeya8cf59e2018-06-06 16:39:45 -070089 "//core/api:onos-api",
90 "//incubator/api:onos-incubator-api",
91 ],
92 required_features = [
93 "scr",
94 "onos-thirdparty-base",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070095 "onos-thirdparty-web",
Ray Milkeya8cf59e2018-06-06 16:39:45 -070096 ],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -070097 visibility = ["//visibility:public"],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070098)
99
100osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700101 name = "onos-core",
102 description = "ONOS core components",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700103 included_bundles = [
104 "//core/net:onos-core-net",
105 "//core/common:onos-core-common",
106 "//core/store/dist:onos-core-dist",
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700107 "//core/store/primitives:onos-core-primitives",
108 "//core/store/persistence:onos-core-persistence",
109 "//core/store/serializers:onos-core-serializers",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700110 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700111 required_features = ["onos-api"],
Thomas Vachuska1ae26c62018-07-09 13:40:16 -0700112 visibility = ["//visibility:public"],
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700113)
114
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700115
116osgi_feature_repo(
117 name = "onos-features",
118 exported_features = FEATURES,
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700119 visibility = ["//visibility:public"],
120)
121
122#osgi_feature (
123# name = "onos-incubator",
124# description = "ONOS core incubator components",
125# required_features = ["onos-core"],
126# included_bundles = [
127# "//incubator/net:onos-incubator-net",
128# "//incubator/store:onos-incubator-store",
129# "//incubator/rpc:onos-incubator-rpc",
130# ]
131#)
132#
133#osgi_feature (
134# name = "onos-rest",
135# description = "ONOS REST API components",
136# required_features = ["onos-api", "onos-thirdparty-web"],
137# included_bundles = [
138# "//utils/rest:onlab-rest",
139# "//web/api:onos-rest",
140# ]
141#)
142#
143#osgi_feature (
144# name = "onos-gui",
145# description = "ONOS GUI console components",
146# required_features = ["onos-api", "onos-thirdparty-web"],
147# included_bundles = [
148# "//lib:jetty_websocket",
149# "//utils/rest:onlab-rest",
150# "//web/gui:onos-gui",
151# ]
152#)
153#
154#osgi_feature (
155# name = "onos-gui2",
156# description = "ONOS GUI2 console components",
157# required_features = ["onos-api", "onos-thirdparty-web"],
158# included_bundles = [
159# "//lib:jetty_websocket",
160# "//utils/rest:onlab-rest",
161# "//web/gui2:onos-gui2",
162# ]
163#)
164#
165#osgi_feature (
166# name = "onos-cli",
167# description ="ONOS admin command console components",
168# required_features = ["onos-api"],
169# included_bundles = [
170# "//cli:onos-cli",
171# ]
172#)
173#
174#osgi_feature (
175# name = "onos-security",
176# description ="Security-Mode ONOS",
177# required_features = ["onos-api"],
178# included_bundles = [
179# "//lib:org.apache.felix.framework.security",
180# "//core/security:onos-security",
181# ]
182#)