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", |
Ray Milkey | fb503a7 | 2018-12-19 14:03:17 -0800 | [diff] [blame] | 20 | "@io_netty_netty//jar", |
| 21 | "@io_netty_netty_common//jar", |
| 22 | "@io_netty_netty_buffer//jar", |
Ray Milkey | fb503a7 | 2018-12-19 14:03:17 -0800 | [diff] [blame] | 23 | "@io_netty_netty_handler//jar", |
Brian O'Connor | c694383 | 2018-12-12 17:27:11 -0800 | [diff] [blame] | 24 | "@io_netty_netty_tcnative_boringssl//jar", |
Ray Milkey | fb503a7 | 2018-12-19 14:03:17 -0800 | [diff] [blame] | 25 | "@io_netty_netty_codec//jar", |
Carmelo Cascone | 0f8b7be | 2019-01-29 16:10:57 -0800 | [diff] [blame] | 26 | "@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", |
Brian O'Connor | c694383 | 2018-12-12 17:27:11 -0800 | [diff] [blame] | 30 | "@io_netty_netty_transport//jar", |
Ray Milkey | fb503a7 | 2018-12-19 14:03:17 -0800 | [diff] [blame] | 31 | "@io_netty_netty_transport_native_epoll//jar", |
| 32 | "@io_netty_netty_transport_native_unix_common//jar", |
| 33 | "@io_netty_netty_resolver//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 34 | "@commons_pool//jar", |
| 35 | "@commons_math3//jar", |
| 36 | "@joda_time//jar", |
| 37 | "@metrics_core//jar", |
| 38 | "@metrics_json//jar", |
| 39 | "@minimal_json//jar", |
| 40 | "@kryo//jar", |
| 41 | "@reflectasm//jar", |
| 42 | "@asm//jar", |
| 43 | "@minlog//jar", |
| 44 | "@objenesis//jar", |
| 45 | "@jackson_core//jar", |
| 46 | "@jackson_annotations//jar", |
| 47 | "@jackson_databind//jar", |
| 48 | "@commons_collections//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 49 | "@concurrent_trees//jar", |
| 50 | "@commons_io//jar", |
Ramon Casellas | 4663da3 | 2018-11-12 15:44:20 +0100 | [diff] [blame] | 51 | "@commons_jxpath//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 52 | "@mapdb//jar", |
| 53 | "@bcpkix_jdk15on//jar", |
| 54 | "@bcprov_jdk15on//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 55 | "@commons_beanutils//jar", |
| 56 | "@jdom//jar", |
| 57 | "@sigar//jar", |
Ray Milkey | d84f89b | 2018-08-17 14:54:17 -0700 | [diff] [blame] | 58 | "@org_osgi_util_function//jar", |
| 59 | "@org_osgi_util_promise//jar", |
Ray Milkey | 11ce930 | 2019-02-07 14:41:17 -0800 | [diff] [blame] | 60 | "@jaxb_api//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 61 | ], |
Ray Milkey | fb503a7 | 2018-12-19 14:03:17 -0800 | [diff] [blame] | 62 | required_features = [], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 63 | visibility = ["//visibility:public"], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 64 | ) |
| 65 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 66 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 67 | name = "onos-thirdparty-web", |
| 68 | description = "ONOS 3rd party dependencies for web apps", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 69 | included_bundles = [ |
| 70 | "@jersey_common//jar", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 71 | "@javax_annotation_api_mvn//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 72 | "@javax_ws_rs_api//jar", |
| 73 | "@hk2_api//jar", |
| 74 | "@hk2_locator//jar", |
| 75 | "@hk2_osgi_resource_locator//jar", |
| 76 | "@javax_inject//jar", |
| 77 | "@jersey_server//jar", |
| 78 | "@jersey_hk2//jar", |
| 79 | "@aopalliance_repackaged//jar", |
| 80 | "@hk2_utils//jar", |
| 81 | "@validation_api//jar", |
| 82 | "@javassist//jar", |
| 83 | "@jersey_container_servlet//jar", |
| 84 | "@jersey_container_servlet_core//jar", |
| 85 | "@jersey_media_multipart//jar", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 86 | "@jersey_client//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 87 | "@mimepull//jar", |
| 88 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 89 | required_features = [ |
| 90 | "war", |
| 91 | "onos-thirdparty-base", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 92 | ], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 93 | visibility = ["//visibility:public"], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 94 | ) |
| 95 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 96 | osgi_feature( |
| 97 | name = "onos-api", |
| 98 | description = "ONOS services and model API", |
| 99 | included_bundles = [ |
| 100 | "//utils/misc:onlab-misc", |
| 101 | "//utils/osgi:onlab-osgi", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 102 | "//utils/rest:onlab-rest", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 103 | "//core/api:onos-api", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 104 | ], |
| 105 | required_features = [ |
| 106 | "scr", |
| 107 | "onos-thirdparty-base", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 108 | "onos-thirdparty-web", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 109 | ], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 110 | visibility = ["//visibility:public"], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 111 | ) |
| 112 | |
| 113 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 114 | name = "onos-core", |
| 115 | description = "ONOS core components", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 116 | included_bundles = [ |
| 117 | "//core/net:onos-core-net", |
| 118 | "//core/common:onos-core-common", |
| 119 | "//core/store/dist:onos-core-dist", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 120 | "//core/store/primitives:onos-core-primitives", |
| 121 | "//core/store/persistence:onos-core-persistence", |
| 122 | "//core/store/serializers:onos-core-serializers", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 123 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 124 | required_features = ["onos-api"], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 125 | visibility = ["//visibility:public"], |
Thomas Vachuska | a8e1bd4 | 2018-06-11 15:45:11 -0700 | [diff] [blame] | 126 | ) |
| 127 | |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 128 | osgi_feature( |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 129 | name = "onos-rest", |
| 130 | description = "ONOS REST API components", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 131 | included_bundles = [ |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 132 | "//web/api:onos-rest", |
| 133 | ], |
| 134 | required_features = [ |
| 135 | "onos-api", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 136 | ], |
| 137 | visibility = ["//visibility:public"], |
| 138 | ) |
| 139 | |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 140 | osgi_feature( |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 141 | name = "onos-cli", |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 142 | description = "ONOS admin command console components", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 143 | included_bundles = [ |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 144 | "//cli:onos-cli", |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 145 | ], |
Ray Milkey | a4f8d9d | 2018-07-11 10:36:23 -0700 | [diff] [blame] | 146 | required_features = ["onos-api"], |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame] | 147 | visibility = ["//visibility:public"], |
| 148 | ) |
| 149 | |
Thomas Vachuska | d0d7ea1 | 2018-10-10 10:27:04 -0700 | [diff] [blame] | 150 | #osgi_feature( |
| 151 | # name = "onos-security", |
| 152 | # description = "Security-Mode ONOS", |
| 153 | # included_bundles = [ |
| 154 | # "@org_apache_felix_framework_security//jar", |
| 155 | # "//core/security:onos-security", |
| 156 | # ], |
| 157 | # required_features = ["onos-api"], |
| 158 | # visibility = ["//visibility:public"], |
| 159 | #) |