Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 1 | load("//tools/build/bazel:project_javadoc.bzl", "project_javadoc") |
Ray Milkey | 16be840 | 2019-05-02 10:44:59 -0700 | [diff] [blame] | 2 | load("//tools/build/bazel:generate_workspace.bzl", "CORE_DEPS") |
| 3 | load("//tools/build/bazel:variables.bzl", "ONOS_VERSION") |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 4 | |
| 5 | SOURCES = glob(["src/main/javadoc/doc-files/*"]) + [ |
| 6 | "src/main/javadoc/overview.html", |
| 7 | "//utils/osgi:onlab-osgi-sources", |
| 8 | "//utils/junit:onlab-junit-sources", |
| 9 | "//utils/misc:onlab-misc-sources", |
| 10 | "//utils/rest:onlab-rest-sources", |
| 11 | "//core/api:onos-api-sources", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 12 | "//core/net:onos-core-net-sources", |
| 13 | "//core/common:onos-core-common-sources", |
| 14 | "//core/store/primitives:onos-core-primitives-sources", |
| 15 | "//core/store/serializers:onos-core-serializers-sources", |
| 16 | "//core/store/dist:onos-core-dist-sources", |
Thomas Vachuska | 5bd7b55 | 2018-11-08 15:41:27 -0800 | [diff] [blame] | 17 | # "//core/security:onos-security-sources", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 18 | "//core/store/persistence:onos-core-persistence-sources", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 19 | "//cli:onos-cli-sources", |
| 20 | "//web/api:onos-rest", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 21 | "//apps/cpman/api:onos-apps-cpman-api-sources", |
| 22 | "//apps/routing-api:onos-apps-routing-api-sources", |
| 23 | "//apps/dhcp/api:onos-apps-dhcp-api-sources", |
| 24 | ] |
| 25 | |
| 26 | INTERNAL_SOURCES = [ |
| 27 | "//protocols/rest/api:onos-protocols-rest-api-sources", |
| 28 | "//protocols/rest/ctl:onos-protocols-rest-ctl-sources", |
| 29 | "//protocols/bgp/bgpio:onos-protocols-bgp-bgpio-sources", |
| 30 | "//protocols/bgp/api:onos-protocols-bgp-api-sources", |
| 31 | "//protocols/bgp/ctl:onos-protocols-bgp-ctl-sources", |
| 32 | "//protocols/netconf/api:onos-protocols-netconf-api-sources", |
| 33 | "//protocols/netconf/ctl:onos-protocols-netconf-ctl-sources", |
| 34 | "//protocols/openflow/api:onos-protocols-openflow-api-sources", |
| 35 | "//protocols/openflow/ctl:onos-protocols-openflow-ctl-sources", |
| 36 | "//protocols/ospf/api:onos-protocols-ospf-api-sources", |
| 37 | "//protocols/ospf/protocol:onos-protocols-ospf-protocol-sources", |
| 38 | "//protocols/ospf/ctl:onos-protocols-ospf-ctl-sources", |
| 39 | "//protocols/ovsdb/rfc:onos-protocols-ovsdb-rfc-sources", |
| 40 | "//protocols/ovsdb/api:onos-protocols-ovsdb-api-sources", |
| 41 | "//protocols/ovsdb/ctl:onos-protocols-ovsdb-ctl-sources", |
Thomas Vachuska | 6796e02 | 2018-08-09 14:53:04 -0700 | [diff] [blame] | 42 | # "//protocols/p4runtime/api:onos-protocols-p4runtime-api-sources", |
| 43 | # "//protocols/p4runtime/model:onos-protocols-p4runtime-model-sources", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 44 | "//protocols/pcep/pcepio:onos-protocols-pcep-pcepio-sources", |
| 45 | "//protocols/pcep/server/api:onos-protocols-pcep-server-api-sources", |
| 46 | "//protocols/pcep/server/ctl:onos-protocols-pcep-server-ctl-sources", |
| 47 | "//protocols/snmp/api:onos-protocols-snmp-api-sources", |
| 48 | "//protocols/snmp/ctl:onos-protocols-snmp-ctl-sources", |
| 49 | "//protocols/isis/api:onos-protocols-isis-api-sources", |
| 50 | "//protocols/isis/ctl:onos-protocols-isis-ctl-sources", |
| 51 | "//protocols/isis/isisio:onos-protocols-isis-isisio-sources", |
| 52 | "//protocols/lisp/api:onos-protocols-lisp-api-sources", |
| 53 | "//protocols/lisp/ctl:onos-protocols-lisp-ctl-sources", |
| 54 | "//protocols/lisp/msg:onos-protocols-lisp-msg-sources", |
| 55 | "//protocols/tl1/api:onos-protocols-tl1-api-sources", |
| 56 | "//protocols/tl1/ctl:onos-protocols-tl1-ctl-sources", |
| 57 | "//protocols/restconf/client/api:onos-protocols-restconf-client-api-sources", |
| 58 | "//protocols/restconf/client/ctl:onos-protocols-restconf-client-ctl-sources", |
| 59 | "//protocols/xmpp/core/api:onos-protocols-xmpp-core-api-sources", |
| 60 | "//protocols/xmpp/core/ctl:onos-protocols-xmpp-core-ctl-sources", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 61 | "//drivers/utilities:onos-drivers-utilities-sources", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 62 | "//providers/netconf/device:onos-providers-netconf-device-sources", |
| 63 | "//providers/openflow/device:onos-providers-openflow-device-sources", |
| 64 | "//providers/openflow/packet:onos-providers-openflow-packet-sources", |
| 65 | "//providers/openflow/flow:onos-providers-openflow-flow-sources", |
| 66 | "//providers/openflow/group:onos-providers-openflow-group-sources", |
| 67 | "//providers/openflow/meter:onos-providers-openflow-meter-sources", |
| 68 | "//providers/ovsdb/device:onos-providers-ovsdb-device-sources", |
| 69 | "//providers/ovsdb/tunnel:onos-providers-ovsdb-tunnel-sources", |
| 70 | "//providers/rest/device:onos-providers-rest-device-sources", |
| 71 | "//providers/snmp/device:onos-providers-snmp-device-sources", |
| 72 | "//providers/isis/cfg:onos-providers-isis-cfg-sources", |
| 73 | "//providers/isis/topology:onos-providers-isis-topology-sources", |
| 74 | "//providers/lisp/device:onos-providers-lisp-device-sources", |
| 75 | "//providers/tl1/device:onos-providers-tl1-device-sources", |
| 76 | "//providers/general/device:onos-providers-general-device-sources", |
Carmelo Cascone | 4164436 | 2018-08-09 16:56:43 -0700 | [diff] [blame] | 77 | # "//providers/p4runtime/packet:onos-providers-p4runtime-packet-sources", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 78 | "//apps/pcep-api:onos-apps-pcep-api-sources", |
| 79 | "//apps/optical-model:onos-apps-optical-model-sources", |
| 80 | "//apps/mappingmanagement/api:onos-apps-mappingmanagement-api-sources", |
| 81 | ] |
| 82 | |
Thomas Vachuska | 1d735e4 | 2018-08-08 16:00:09 -0700 | [diff] [blame] | 83 | JAVADOC_DEPS = CORE_DEPS + KRYO + ATOMIX + REST + CLI + JACKSON + TEST + NETTY + METRICS + ONOS_YANG + [ |
Thomas Vachuska | 6796e02 | 2018-08-09 14:53:04 -0700 | [diff] [blame] | 84 | "@io_netty_netty//jar", |
| 85 | "@io_netty_netty_codec//jar", |
| 86 | "@io_netty_netty_transport//jar", |
| 87 | "@io_netty_netty_handler//jar", |
| 88 | "@io_netty_netty_transport_native_epoll//jar", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 89 | "@commons_math3//jar", |
| 90 | "@joda_time//jar", |
| 91 | "@mapdb//jar", |
| 92 | "@httpclient_osgi//jar", |
| 93 | "@httpcore_osgi//jar", |
| 94 | "@bndlib//jar", |
| 95 | "@jersey_client//jar", |
| 96 | "@jersey_server//jar", |
| 97 | "@jersey_security//jar", |
| 98 | "@org_apache_felix_scr_bnd//jar", |
| 99 | "@openflowj//jar", |
| 100 | "@org_apache_servicemix_bundles_snmp4j//jar", |
| 101 | "@snmp_core//jar", |
| 102 | "@mibs_net_snmp//jar", |
| 103 | "@mibs_rfc//jar", |
| 104 | "@tinder_xmpp//jar", |
| 105 | "@aalto_xml//jar", |
| 106 | "@stax2_api//jar", |
| 107 | "@bcprov_jdk15on//jar", |
| 108 | "@bcpkix_jdk15on//jar", |
| 109 | "@sshd_core//jar", |
| 110 | "@ganymed_ssh2//jar", |
| 111 | "@concurrent_trees//jar", |
| 112 | ] |
| 113 | |
| 114 | EXTERNAL_GROUPS = { |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 115 | "Network Model & Services": ["org.onosproject.*"], |
| 116 | "Incubator for Network Model & Services": ["org.onosproject.incubator.*"], |
| 117 | "Utilities": ["org.onlab.*"], |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 118 | "App & Extensions": [ |
| 119 | "org.onosproject.dhcp", |
| 120 | "org.onosproject.cpman", |
| 121 | "org.onosproject.routing", |
| 122 | ], |
| 123 | } |
| 124 | |
| 125 | INTERNAL_GROUPS = { |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 126 | "Network Model & Services": ["org.onosproject.*"], |
| 127 | "Incubator for Network Model & Services": ["org.onosproject.incubator.*"], |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 128 | "Core Subsystems": [ |
| 129 | "org.onosproject.cfg.impl", |
| 130 | "org.onosproject.cluster.impl", |
| 131 | "org.onosproject.core.impl", |
| 132 | "org.onosproject.event.impl", |
| 133 | "org.onosproject.net.config.impl", |
| 134 | "org.onosproject.net.device.impl", |
| 135 | "org.onosproject.net.driver.impl", |
| 136 | "org.onosproject.net.edgeservice.impl", |
| 137 | "org.onosproject.net.flow.impl", |
| 138 | "org.onosproject.net.flowobjective.impl", |
| 139 | "org.onosproject.net.flowobjective.impl.composition", |
| 140 | "org.onosproject.net.group.impl", |
| 141 | "org.onosproject.net.host.impl", |
| 142 | "org.onosproject.net.intent.impl", |
| 143 | "org.onosproject.net.intent.impl.compiler", |
| 144 | "org.onosproject.net.intent.impl.phase", |
| 145 | "org.onosproject.net.intf.impl", |
| 146 | "org.onosproject.net.link.impl", |
| 147 | "org.onosproject.net.newresource.impl", |
| 148 | "org.onosproject.net.packet.impl", |
| 149 | "org.onosproject.net.proxyarp.impl", |
| 150 | "org.onosproject.net.resource.impl", |
| 151 | "org.onosproject.net.statistic.impl", |
| 152 | "org.onosproject.net.topology.impl", |
| 153 | "org.onosproject.json", |
| 154 | "org.onosproject.json.*", |
| 155 | "org.onosproject.common.*", |
Thomas Vachuska | 5bd7b55 | 2018-11-08 15:41:27 -0800 | [diff] [blame] | 156 | # "org.onosproject.security.impl", |
| 157 | # "org.onosproject.security.store", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 158 | ], |
| 159 | "Distributed Stores": [ |
| 160 | "org.onosproject.store.*", |
| 161 | "org.onosproject.persistence.impl", |
| 162 | ], |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 163 | "Utilities": ["org.onlab.*"], |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 164 | "GUI, REST & Command-Line": [ |
| 165 | "org.onosproject.ui.impl*", |
| 166 | "org.onosproject.rest.*", |
| 167 | "org.onosproject.cli*", |
| 168 | "org.onosproject.codec.impl", |
| 169 | ], |
| 170 | "Builtin Applications": [ |
| 171 | "org.onosproject.app.*", |
| 172 | "org.onosproject.acl*", |
| 173 | "org.onosproject.aaa", |
| 174 | "org.onosproject.fwd", |
| 175 | "org.onosproject.dhcp*", |
| 176 | "org.onosproject.flowanalyzer", |
| 177 | "org.onosproject.cpman*", |
| 178 | "org.onosproject.mobility", |
| 179 | "org.onosproject.proxyarp", |
| 180 | "org.onosproject.calendar", |
| 181 | "org.onosproject.olt*", |
| 182 | "org.onosproject.optical*", |
| 183 | "org.onosproject.newoptical*", |
| 184 | "org.onosproject.sdnip", |
| 185 | "org.onosproject.sdnip.*", |
| 186 | "org.onosproject.config", |
| 187 | "org.onosproject.routing", |
| 188 | "org.onosproject.routing*", |
| 189 | "org.onosproject.bgprouter", |
| 190 | "org.onosproject.segmentrouting*", |
| 191 | "org.onosproject.reactive.routing*", |
| 192 | "org.onosproject.messagingperf", |
| 193 | "org.onosproject.virtualbng*", |
| 194 | "org.onosproject.cordfabric*", |
| 195 | "org.onosproject.xosintegration*", |
| 196 | "org.onosproject.cip*", |
| 197 | "org.onosproject.vtn*", |
| 198 | "org.onosproject.cord*", |
| 199 | "org.onosproject.mcast*", |
| 200 | "org.onosproject.mfwd*", |
| 201 | "org.onosproject.mlb*", |
| 202 | "org.onosproject.igmp*", |
| 203 | "org.onosproject.pim*", |
| 204 | "org.onosproject.vpls*", |
| 205 | "org.onosproject.vrouter*", |
| 206 | "org.onosproject.faultmanagement*", |
| 207 | "org.onosproject.iptopology*", |
| 208 | "org.onosproject.drivermatrix*", |
| 209 | "org.onosproject.pathpainter*", |
| 210 | "org.onosproject.openstack*", |
| 211 | "org.onosproject.scalablegateway*", |
| 212 | "org.onosproject.forwarder*", |
| 213 | "org.onosproject.sfc*", |
| 214 | "org.onosproject.netcfgmonitor*", |
| 215 | "org.onosproject.flowperf", |
| 216 | "org.onosproject.loadtest", |
| 217 | "org.onosproject.events", |
| 218 | "org.onosproject.bmv2*", |
| 219 | "org.onosproject.xosclient*", |
| 220 | "org.onosproject.kafkaintegration*", |
| 221 | "org.onosproject.gangliametrics*", |
| 222 | "org.onosproject.graphitemetrics*", |
| 223 | "org.onosproject.influxdbmetrics*", |
| 224 | "org.onosproject.yms*", |
| 225 | ], |
| 226 | "Test Instrumentation & Applications": [ |
| 227 | "org.onosproject.metrics.*", |
| 228 | "org.onosproject.demo*", |
| 229 | "org.onosproject.election*", |
| 230 | "org.onosproject.distributedprimitives*", |
| 231 | "org.onosproject.intentperf*", |
| 232 | "org.onosproject.messagingperf*", |
| 233 | "org.onosproject.optical.testapp*", |
| 234 | ], |
| 235 | "OpenFlow Providers & Controller": [ |
| 236 | "org.onosproject.openflow.*", |
| 237 | "org.onosproject.provider.of.*", |
| 238 | ], |
| 239 | "NetConf Protocol & Providers": [ |
| 240 | "org.onosproject.netconf*", |
| 241 | "org.onosproject.provider.netconf*", |
| 242 | ], |
| 243 | "OVSDB Protocol & Providers": [ |
| 244 | "org.onosproject.provider.ovsdb*", |
| 245 | "org.onosproject.ovsdb*", |
| 246 | ], |
| 247 | "PCEP Protocol & Providers": [ |
| 248 | "org.onosproject.pce.*", |
| 249 | "org.onosproject.pcerest*", |
| 250 | "org.onosproject.pceweb*", |
| 251 | "org.onosproject.pcep*", |
| 252 | "org.onosproject.pcepio*", |
| 253 | "org.onosproject.provider.pcep*", |
| 254 | ], |
| 255 | "BGP-LS Protocol & Providers": [ |
| 256 | "org.onosproject.bgp.controller*", |
| 257 | "org.onosproject.bgp*", |
| 258 | "org.onosproject.provider.bgp*", |
| 259 | ], |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 260 | "OSPF Protocol & Providers": ["org.onosproject.ospf*"], |
| 261 | "ISIS Protocol & Providers": ["org.onosproject.isis*"], |
| 262 | "LISP Protocol & Providers": ["org.onosproject.lisp*"], |
| 263 | "SNMP Protocol & Providers": ["org.onosproject.snmp*"], |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 264 | "REST Protocol & Providers": [ |
| 265 | "org.onosproject.protocol.rest*", |
| 266 | "org.onosproject.provider.rest*", |
| 267 | ], |
| 268 | "Other Providers": [ |
| 269 | "org.onosproject.provider.*", |
| 270 | "org.onosproject.protocol.*", |
| 271 | ], |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 272 | "Device Drivers": ["org.onosproject.driver*"], |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 273 | } |
| 274 | |
| 275 | project_javadoc( |
| 276 | name = "external", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 277 | srcs = SOURCES, |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 278 | groups = EXTERNAL_GROUPS, |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 279 | title = "ONOS Java API (%s)" % ONOS_VERSION, |
| 280 | deps = JAVADOC_DEPS, |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 281 | ) |
| 282 | |
| 283 | project_javadoc( |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 284 | name = "internal", |
| 285 | srcs = SOURCES + INTERNAL_SOURCES, |
| 286 | groups = INTERNAL_GROUPS, |
| 287 | internal = True, |
| 288 | title = "ONOS Java API (%s)" % ONOS_VERSION, |
| 289 | deps = JAVADOC_DEPS, |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 290 | ) |