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