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") |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 2 | load("//: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", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 13 | included_bundles = [ |
| 14 | "@atomix//jar", |
| 15 | "@commons_lang//jar", |
| 16 | "@commons_lang3//jar", |
| 17 | "@commons_text//jar", |
| 18 | "@commons_configuration//jar", |
| 19 | "@guava//jar", |
| 20 | "@netty//jar", |
| 21 | "@netty_common//jar", |
| 22 | "@netty_buffer//jar", |
| 23 | "@netty_transport//jar", |
| 24 | "@netty_handler//jar", |
| 25 | "@netty_codec//jar", |
| 26 | "@netty_transport_native_epoll//jar", |
| 27 | "@netty_resolver//jar", |
| 28 | "@commons_pool//jar", |
| 29 | "@commons_math3//jar", |
| 30 | "@joda_time//jar", |
| 31 | "@metrics_core//jar", |
| 32 | "@metrics_json//jar", |
| 33 | "@minimal_json//jar", |
| 34 | "@kryo//jar", |
| 35 | "@reflectasm//jar", |
| 36 | "@asm//jar", |
| 37 | "@minlog//jar", |
| 38 | "@objenesis//jar", |
| 39 | "@jackson_core//jar", |
| 40 | "@jackson_annotations//jar", |
| 41 | "@jackson_databind//jar", |
| 42 | "@commons_collections//jar", |
| 43 | "@typesafe_config//jar", |
| 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", |
| 49 | "@commons_jxpath//jar", |
| 50 | "@commons_beanutils//jar", |
| 51 | "@jdom//jar", |
| 52 | "@sigar//jar", |
| 53 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 54 | required_features = [], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 55 | visibility = ["//visibility:public"], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 56 | ) |
| 57 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 58 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 59 | name = "onos-thirdparty-web", |
| 60 | description = "ONOS 3rd party dependencies for web apps", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 61 | included_bundles = [ |
| 62 | "@jersey_common//jar", |
| 63 | "@javax_annotation_api//jar", |
| 64 | "@javax_ws_rs_api//jar", |
| 65 | "@hk2_api//jar", |
| 66 | "@hk2_locator//jar", |
| 67 | "@hk2_osgi_resource_locator//jar", |
| 68 | "@javax_inject//jar", |
| 69 | "@jersey_server//jar", |
| 70 | "@jersey_hk2//jar", |
| 71 | "@aopalliance_repackaged//jar", |
| 72 | "@hk2_utils//jar", |
| 73 | "@validation_api//jar", |
| 74 | "@javassist//jar", |
| 75 | "@jersey_container_servlet//jar", |
| 76 | "@jersey_container_servlet_core//jar", |
| 77 | "@jersey_media_multipart//jar", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 78 | "@jersey_client//jar", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 79 | "@mimepull//jar", |
| 80 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 81 | required_features = [ |
| 82 | "war", |
| 83 | "onos-thirdparty-base", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 84 | ], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 85 | visibility = ["//visibility:public"], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 86 | ) |
| 87 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 88 | osgi_feature( |
| 89 | name = "onos-api", |
| 90 | description = "ONOS services and model API", |
| 91 | included_bundles = [ |
| 92 | "//utils/misc:onlab-misc", |
| 93 | "//utils/osgi:onlab-osgi", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 94 | "//utils/rest:onlab-rest", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 95 | "//core/api:onos-api", |
| 96 | "//incubator/api:onos-incubator-api", |
| 97 | ], |
| 98 | required_features = [ |
| 99 | "scr", |
| 100 | "onos-thirdparty-base", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 101 | "onos-thirdparty-web", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 102 | ], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 103 | visibility = ["//visibility:public"], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 104 | ) |
| 105 | |
| 106 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 107 | name = "onos-core", |
| 108 | description = "ONOS core components", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 109 | included_bundles = [ |
| 110 | "//core/net:onos-core-net", |
| 111 | "//core/common:onos-core-common", |
| 112 | "//core/store/dist:onos-core-dist", |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 113 | "//core/store/primitives:onos-core-primitives", |
| 114 | "//core/store/persistence:onos-core-persistence", |
| 115 | "//core/store/serializers:onos-core-serializers", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 116 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 117 | required_features = ["onos-api"], |
Thomas Vachuska | 1ae26c6 | 2018-07-09 13:40:16 -0700 | [diff] [blame] | 118 | visibility = ["//visibility:public"], |
Thomas Vachuska | a8e1bd4 | 2018-06-11 15:45:11 -0700 | [diff] [blame] | 119 | ) |
| 120 | |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame^] | 121 | osgi_feature ( |
| 122 | name = "onos-incubator", |
| 123 | description = "ONOS core incubator components", |
| 124 | required_features = ["onos-core"], |
| 125 | included_bundles = [ |
| 126 | "//incubator/net:onos-incubator-net", |
| 127 | "//incubator/store:onos-incubator-store", |
| 128 | "//incubator/rpc:onos-incubator-rpc", |
| 129 | ], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 130 | visibility = ["//visibility:public"], |
| 131 | ) |
| 132 | |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame^] | 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 | visibility = ["//visibility:public"], |
| 142 | ) |
| 143 | |
| 144 | osgi_feature ( |
| 145 | name = "onos-cli", |
| 146 | description ="ONOS admin command console components", |
| 147 | required_features = ["onos-api"], |
| 148 | included_bundles = [ |
| 149 | "//cli:onos-cli", |
| 150 | ], |
| 151 | visibility = ["//visibility:public"], |
| 152 | ) |
| 153 | |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 154 | #osgi_feature ( |
| 155 | # name = "onos-gui", |
| 156 | # description = "ONOS GUI console components", |
| 157 | # required_features = ["onos-api", "onos-thirdparty-web"], |
| 158 | # included_bundles = [ |
| 159 | # "//lib:jetty_websocket", |
| 160 | # "//utils/rest:onlab-rest", |
| 161 | # "//web/gui:onos-gui", |
| 162 | # ] |
| 163 | #) |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame^] | 164 | |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 165 | #osgi_feature ( |
| 166 | # name = "onos-gui2", |
| 167 | # description = "ONOS GUI2 console components", |
| 168 | # required_features = ["onos-api", "onos-thirdparty-web"], |
| 169 | # included_bundles = [ |
| 170 | # "//lib:jetty_websocket", |
| 171 | # "//utils/rest:onlab-rest", |
| 172 | # "//web/gui2:onos-gui2", |
| 173 | # ] |
| 174 | #) |
Thomas Vachuska | 03c608c | 2018-07-10 16:45:08 -0700 | [diff] [blame^] | 175 | |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 176 | #osgi_feature ( |
| 177 | # name = "onos-security", |
| 178 | # description ="Security-Mode ONOS", |
| 179 | # required_features = ["onos-api"], |
| 180 | # included_bundles = [ |
| 181 | # "//lib:org.apache.felix.framework.security", |
| 182 | # "//core/security:onos-security", |
| 183 | # ] |
| 184 | #) |