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 | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 2 | |
| 3 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 4 | name = "onos-thirdparty-base", |
| 5 | description = "ONOS 3rd party dependencies", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 6 | 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 Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 48 | required_features = [], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 49 | ) |
| 50 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 51 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 52 | name = "onos-thirdparty-web", |
| 53 | description = "ONOS 3rd party dependencies for web apps", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 54 | 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 Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 73 | required_features = [ |
| 74 | "war", |
| 75 | "onos-thirdparty-base", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 76 | ], |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 77 | ) |
| 78 | |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 79 | osgi_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 Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 92 | ) |
| 93 | |
| 94 | osgi_feature( |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 95 | name = "onos-core", |
| 96 | description = "ONOS core components", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 97 | included_bundles = [ |
| 98 | "//core/net:onos-core-net", |
| 99 | "//core/common:onos-core-common", |
| 100 | "//core/store/dist:onos-core-dist", |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 101 | # "//core/store/primitives:onos-core-primitives", |
| 102 | # "//core/store/persistence:onos-core-persistence", |
| 103 | # "//core/store/serializers:onos-core-serializers", |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 104 | ], |
Ray Milkey | a8cf59e | 2018-06-06 16:39:45 -0700 | [diff] [blame] | 105 | required_features = ["onos-api"], |
Thomas Vachuska | a8e1bd4 | 2018-06-11 15:45:11 -0700 | [diff] [blame] | 106 | ) |
| 107 | |
| 108 | |
| 109 | FEATURES = [ |
| 110 | "//features:onos-thirdparty-base", |
| 111 | "//features:onos-thirdparty-web", |
| 112 | "//features:onos-api", |
| 113 | "//features:onos-core", |
| 114 | # "//features:onos-incubator", |
| 115 | # "//features:onos-rest", |
| 116 | # "//features:onos-gui", |
| 117 | # "//features:onos-gui2", |
| 118 | # "//features:onos-cli", |
| 119 | # "//features:onos-security", |
| 120 | ] |
| 121 | |
| 122 | osgi_feature_repo( |
| 123 | name = "onos-features", |
| 124 | exported_features = FEATURES, |
Thomas Vachuska | aab45d1 | 2018-06-05 16:39:46 -0700 | [diff] [blame] | 125 | 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 | #) |