blob: 54438428eed869692e77976c147cc1272550f78d [file] [log] [blame]
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -07001load("//tools/build/bazel:osgi_features.bzl", "osgi_feature", "osgi_feature_repo")
Ray Milkeya8cf59e2018-06-06 16:39:45 -07002
3osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -07004 name = "onos-thirdparty-base",
5 description = "ONOS 3rd party dependencies",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -07006 included_bundles = [
7 "@atomix//jar",
8 "@commons_lang//jar",
9 "@commons_lang3//jar",
10 "@commons_text//jar",
11 "@commons_configuration//jar",
12 "@guava//jar",
13 "@netty//jar",
14 "@netty_common//jar",
15 "@netty_buffer//jar",
16 "@netty_transport//jar",
17 "@netty_handler//jar",
18 "@netty_codec//jar",
19 "@netty_transport_native_epoll//jar",
20 "@netty_resolver//jar",
21 "@commons_pool//jar",
22 "@commons_math3//jar",
23 "@joda_time//jar",
24 "@metrics_core//jar",
25 "@metrics_json//jar",
26 "@minimal_json//jar",
27 "@kryo//jar",
28 "@reflectasm//jar",
29 "@asm//jar",
30 "@minlog//jar",
31 "@objenesis//jar",
32 "@jackson_core//jar",
33 "@jackson_annotations//jar",
34 "@jackson_databind//jar",
35 "@commons_collections//jar",
36 "@typesafe_config//jar",
37 "@concurrent_trees//jar",
38 "@commons_io//jar",
39 "@jersey_client//jar",
40 "@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 Vachuskaaab45d12018-06-05 16:39:46 -070049)
50
Ray Milkeya8cf59e2018-06-06 16:39:45 -070051osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070052 name = "onos-thirdparty-web",
53 description = "ONOS 3rd party dependencies for web apps",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070054 included_bundles = [
55 "@jersey_common//jar",
56 "@javax_annotation_api//jar",
57 "@javax_ws_rs_api//jar",
58 "@hk2_api//jar",
59 "@hk2_locator//jar",
60 "@hk2_osgi_resource_locator//jar",
61 "@javax_inject//jar",
62 "@jersey_server//jar",
63 "@jersey_hk2//jar",
64 "@aopalliance_repackaged//jar",
65 "@hk2_utils//jar",
66 "@validation_api//jar",
67 "@javassist//jar",
68 "@jersey_container_servlet//jar",
69 "@jersey_container_servlet_core//jar",
70 "@jersey_media_multipart//jar",
71 "@mimepull//jar",
72 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070073 required_features = [
74 "war",
75 "onos-thirdparty-base",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070076 ],
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070077)
78
Ray Milkeya8cf59e2018-06-06 16:39:45 -070079osgi_feature(
80 name = "onos-api",
81 description = "ONOS services and model API",
82 included_bundles = [
83 "//utils/misc:onlab-misc",
84 "//utils/osgi:onlab-osgi",
85 "//core/api:onos-api",
86 "//incubator/api:onos-incubator-api",
87 ],
88 required_features = [
89 "scr",
90 "onos-thirdparty-base",
91 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -070092)
93
94osgi_feature(
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070095 name = "onos-core",
96 description = "ONOS core components",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -070097 included_bundles = [
98 "//core/net:onos-core-net",
99 "//core/common:onos-core-common",
100 "//core/store/dist:onos-core-dist",
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700101 # "//core/store/primitives:onos-core-primitives",
102 # "//core/store/persistence:onos-core-persistence",
103 # "//core/store/serializers:onos-core-serializers",
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700104 ],
Ray Milkeya8cf59e2018-06-06 16:39:45 -0700105 required_features = ["onos-api"],
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700106)
107
108
109FEATURES = [
Thomas Vachuskaf25c2482018-06-12 13:18:45 -0700110 "//tools/package/features:onos-thirdparty-base",
111 "//tools/package/features:onos-thirdparty-web",
112 "//tools/package/features:onos-api",
113 "//tools/package/features:onos-core",
114# "//tools/package/features:onos-incubator",
115# "//tools/package/features:onos-rest",
116# "//tools/package/features:onos-gui",
117# "//tools/package/features:onos-gui2",
118# "//tools/package/features:onos-cli",
119# "//tools/package/features:onos-security",
Thomas Vachuskaa8e1bd42018-06-11 15:45:11 -0700120]
121
122osgi_feature_repo(
123 name = "onos-features",
124 exported_features = FEATURES,
Thomas Vachuskaaab45d12018-06-05 16:39:46 -0700125 visibility = ["//visibility:public"],
126)
127
128#osgi_feature (
129# name = "onos-incubator",
130# description = "ONOS core incubator components",
131# required_features = ["onos-core"],
132# included_bundles = [
133# "//incubator/net:onos-incubator-net",
134# "//incubator/store:onos-incubator-store",
135# "//incubator/rpc:onos-incubator-rpc",
136# ]
137#)
138#
139#osgi_feature (
140# name = "onos-rest",
141# description = "ONOS REST API components",
142# required_features = ["onos-api", "onos-thirdparty-web"],
143# included_bundles = [
144# "//utils/rest:onlab-rest",
145# "//web/api:onos-rest",
146# ]
147#)
148#
149#osgi_feature (
150# name = "onos-gui",
151# description = "ONOS GUI console components",
152# required_features = ["onos-api", "onos-thirdparty-web"],
153# included_bundles = [
154# "//lib:jetty_websocket",
155# "//utils/rest:onlab-rest",
156# "//web/gui:onos-gui",
157# ]
158#)
159#
160#osgi_feature (
161# name = "onos-gui2",
162# description = "ONOS GUI2 console components",
163# required_features = ["onos-api", "onos-thirdparty-web"],
164# included_bundles = [
165# "//lib:jetty_websocket",
166# "//utils/rest:onlab-rest",
167# "//web/gui2:onos-gui2",
168# ]
169#)
170#
171#osgi_feature (
172# name = "onos-cli",
173# description ="ONOS admin command console components",
174# required_features = ["onos-api"],
175# included_bundles = [
176# "//cli:onos-cli",
177# ]
178#)
179#
180#osgi_feature (
181# name = "onos-security",
182# description ="Security-Mode ONOS",
183# required_features = ["onos-api"],
184# included_bundles = [
185# "//lib:org.apache.felix.framework.security",
186# "//core/security:onos-security",
187# ]
188#)