Thomas Vachuska | a8e1bd4 | 2018-06-11 15:45:11 -0700 | [diff] [blame] | 1 | load("//tools/build/bazel:osgi_features.bzl", "osgi_feature", "osgi_feature_repo") |
Ray Milkey | 5a520c7 | 2018-11-01 10:35:06 -0700 | [diff] [blame] | 2 | load("//tools/build/bazel:modules.bzl", "FEATURES") |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 3 | |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 4 | osgi_feature_repo( |
| 5 | name = "onos-features", |
| 6 | exported_features = FEATURES, |
| 7 | visibility = ["//visibility:public"], |
| 8 | ) |
| 9 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 10 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 11 | name = "onos-thirdparty-base", |
| 12 | description = "ONOS 3rd party dependencies", |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 13 | included_bundles = ATOMIX + [ |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 14 | "@commons_lang//jar", |
| 15 | "@commons_lang3//jar", |
| 16 | "@commons_text//jar", |
Ray Milkey | 0faa721 | 2018-11-07 09:13:41 -0800 | [diff] [blame] | 17 | "@commons_codec//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 18 | "@commons_configuration//jar", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 19 | "@com_google_guava_guava//jar", |
| 20 | "@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", |
| 26 | "@io_netty_netty_transport_native_epoll//jar", |
| 27 | "@io_netty_netty_transport_native_unix_common//jar", |
| 28 | "@io_netty_netty_resolver//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 29 | "@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 Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 44 | "@concurrent_trees//jar", |
| 45 | "@commons_io//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 46 | "@mapdb//jar", |
| 47 | "@bcpkix_jdk15on//jar", |
| 48 | "@bcprov_jdk15on//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 49 | "@commons_beanutils//jar", |
| 50 | "@jdom//jar", |
| 51 | "@sigar//jar", |
Ray Milkey | d84f89b | 2018-08-17 14:54:17 -0700 | [diff] [blame] | 52 | "@org_osgi_util_function//jar", |
| 53 | "@org_osgi_util_promise//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 54 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 55 | required_features = [], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 56 | visibility = ["//visibility:public"], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 57 | ) |
| 58 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 59 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 60 | name = "onos-thirdparty-web", |
| 61 | description = "ONOS 3rd party dependencies for web apps", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 62 | included_bundles = [ |
| 63 | "@jersey_common//jar", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 64 | "@javax_annotation_api_mvn//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 65 | "@javax_ws_rs_api//jar", |
| 66 | "@hk2_api//jar", |
| 67 | "@hk2_locator//jar", |
| 68 | "@hk2_osgi_resource_locator//jar", |
| 69 | "@javax_inject//jar", |
| 70 | "@jersey_server//jar", |
| 71 | "@jersey_hk2//jar", |
| 72 | "@aopalliance_repackaged//jar", |
| 73 | "@hk2_utils//jar", |
| 74 | "@validation_api//jar", |
| 75 | "@javassist//jar", |
| 76 | "@jersey_container_servlet//jar", |
| 77 | "@jersey_container_servlet_core//jar", |
| 78 | "@jersey_media_multipart//jar", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 79 | "@jersey_client//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 80 | "@mimepull//jar", |
| 81 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 82 | required_features = [ |
| 83 | "war", |
| 84 | "onos-thirdparty-base", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 85 | ], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 86 | visibility = ["//visibility:public"], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 87 | ) |
| 88 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 89 | osgi_feature( |
| 90 | name = "onos-api", |
| 91 | description = "ONOS services and model API", |
| 92 | included_bundles = [ |
| 93 | "//utils/misc:onlab-misc", |
| 94 | "//utils/osgi:onlab-osgi", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 95 | "//utils/rest:onlab-rest", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 96 | "//core/api:onos-api", |
| 97 | "//incubator/api:onos-incubator-api", |
| 98 | ], |
| 99 | required_features = [ |
| 100 | "scr", |
| 101 | "onos-thirdparty-base", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 102 | "onos-thirdparty-web", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 103 | ], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 104 | visibility = ["//visibility:public"], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 105 | ) |
| 106 | |
| 107 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 108 | name = "onos-core", |
| 109 | description = "ONOS core components", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 110 | included_bundles = [ |
| 111 | "//core/net:onos-core-net", |
| 112 | "//core/common:onos-core-common", |
| 113 | "//core/store/dist:onos-core-dist", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 114 | "//core/store/primitives:onos-core-primitives", |
| 115 | "//core/store/persistence:onos-core-persistence", |
| 116 | "//core/store/serializers:onos-core-serializers", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 117 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 118 | required_features = ["onos-api"], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 119 | visibility = ["//visibility:public"], |
Thomas Vachuska | a8e1bd4 | 2018-06-11 15:45:11 -0700 | [diff] [blame] | 120 | ) |
| 121 | |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 122 | osgi_feature( |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 123 | name = "onos-incubator", |
| 124 | description = "ONOS core incubator components", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 125 | included_bundles = [ |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 126 | "//incubator/net:onos-incubator-net", |
| 127 | "//incubator/store:onos-incubator-store", |
| 128 | "//incubator/rpc:onos-incubator-rpc", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 129 | ], |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 130 | required_features = ["onos-core"], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 131 | visibility = ["//visibility:public"], |
| 132 | ) |
| 133 | |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 134 | osgi_feature( |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 135 | name = "onos-rest", |
| 136 | description = "ONOS REST API components", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 137 | included_bundles = [ |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 138 | "//web/api:onos-rest", |
| 139 | ], |
| 140 | required_features = [ |
| 141 | "onos-api", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 142 | ], |
| 143 | visibility = ["//visibility:public"], |
| 144 | ) |
| 145 | |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 146 | osgi_feature( |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 147 | name = "onos-cli", |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 148 | description = "ONOS admin command console components", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 149 | included_bundles = [ |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 150 | "//cli:onos-cli", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 151 | ], |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 152 | required_features = ["onos-api"], |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 153 | visibility = ["//visibility:public"], |
| 154 | ) |
| 155 | |
Ray Milkey | 6d94e9f | 2018-07-15 18:04:26 -0700 | [diff] [blame] | 156 | osgi_feature( |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 157 | name = "onos-gui", |
| 158 | description = "ONOS GUI console components", |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 159 | included_bundles = [ |
Ray Milkey | 6d94e9f | 2018-07-15 18:04:26 -0700 | [diff] [blame] | 160 | "//web/gui:onos-gui", |
Ray Milkey | 6d94e9f | 2018-07-15 18:04:26 -0700 | [diff] [blame] | 161 | ], |
| 162 | required_features = [ |
| 163 | "onos-api", |
Ray Milkey | 6b3775a | 2018-06-28 11:18:44 -0700 | [diff] [blame] | 164 | ], |
| 165 | visibility = ["//visibility:public"], |
| 166 | ) |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 167 | |
Sean Condon | f6af2a5 | 2018-08-19 10:43:24 +0100 | [diff] [blame] | 168 | osgi_feature( |
| 169 | name = "onos-gui2", |
| 170 | description = "ONOS GUI2 components", |
| 171 | included_bundles = [ |
| 172 | "//web/gui2:onos-gui2", |
Sean Condon | f6af2a5 | 2018-08-19 10:43:24 +0100 | [diff] [blame] | 173 | ], |
| 174 | required_features = [ |
| 175 | "onos-api", |
Sean Condon | f6af2a5 | 2018-08-19 10:43:24 +0100 | [diff] [blame] | 176 | ], |
| 177 | visibility = ["//visibility:public"], |
| 178 | ) |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 179 | |
Thomas Vachuska | d0d7ea1 | 2018-10-10 10:27:04 -0700 | [diff] [blame] | 180 | #osgi_feature( |
| 181 | # name = "onos-security", |
| 182 | # description = "Security-Mode ONOS", |
| 183 | # included_bundles = [ |
| 184 | # "@org_apache_felix_framework_security//jar", |
| 185 | # "//core/security:onos-security", |
| 186 | # ], |
| 187 | # required_features = ["onos-api"], |
| 188 | # visibility = ["//visibility:public"], |
| 189 | #) |