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