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