blob: bb37e3af6688d665bb84f335d5c199e39c9f7400 [file] [log] [blame]
Thomas Vachuskac3226e92018-07-25 12:00:57 -07001load("//tools/build/bazel:project_javadoc.bzl", "project_javadoc")
Ray Milkeydabd84f2019-05-02 10:44:59 -07002load("//tools/build/bazel:generate_workspace.bzl", "CORE_DEPS")
3load("//tools/build/bazel:variables.bzl", "ONOS_VERSION")
Thomas Vachuskac3226e92018-07-25 12:00:57 -07004
5SOURCES = 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 Vachuskac3226e92018-07-25 12:00:57 -070012 "//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 Vachuska5bd7b552018-11-08 15:41:27 -080017 # "//core/security:onos-security-sources",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070018 "//core/store/persistence:onos-core-persistence-sources",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070019 "//cli:onos-cli-sources",
20 "//web/api:onos-rest",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070021 "//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
26INTERNAL_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 Vachuska6796e022018-08-09 14:53:04 -070042 # "//protocols/p4runtime/api:onos-protocols-p4runtime-api-sources",
43 # "//protocols/p4runtime/model:onos-protocols-p4runtime-model-sources",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070044 "//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 Vachuskac3226e92018-07-25 12:00:57 -070061 "//drivers/utilities:onos-drivers-utilities-sources",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070062 "//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 Cascone41644362018-08-09 16:56:43 -070077 # "//providers/p4runtime/packet:onos-providers-p4runtime-packet-sources",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070078 "//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 Vachuska1d735e42018-08-08 16:00:09 -070083JAVADOC_DEPS = CORE_DEPS + KRYO + ATOMIX + REST + CLI + JACKSON + TEST + NETTY + METRICS + ONOS_YANG + [
Thomas Vachuska6796e022018-08-09 14:53:04 -070084 "@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 Vachuskac3226e92018-07-25 12:00:57 -070089 "@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
114EXTERNAL_GROUPS = {
Ray Milkeydd5a7bf2018-07-26 13:06:33 -0700115 "Network Model & Services": ["org.onosproject.*"],
116 "Incubator for Network Model & Services": ["org.onosproject.incubator.*"],
117 "Utilities": ["org.onlab.*"],
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700118 "App & Extensions": [
119 "org.onosproject.dhcp",
120 "org.onosproject.cpman",
121 "org.onosproject.routing",
122 ],
123}
124
125INTERNAL_GROUPS = {
Ray Milkeydd5a7bf2018-07-26 13:06:33 -0700126 "Network Model & Services": ["org.onosproject.*"],
127 "Incubator for Network Model & Services": ["org.onosproject.incubator.*"],
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700128 "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 Vachuska5bd7b552018-11-08 15:41:27 -0800156 # "org.onosproject.security.impl",
157 # "org.onosproject.security.store",
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700158 ],
159 "Distributed Stores": [
160 "org.onosproject.store.*",
161 "org.onosproject.persistence.impl",
162 ],
Ray Milkeydd5a7bf2018-07-26 13:06:33 -0700163 "Utilities": ["org.onlab.*"],
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700164 "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 Milkeydd5a7bf2018-07-26 13:06:33 -0700260 "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 Vachuskac3226e92018-07-25 12:00:57 -0700264 "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 Milkeydd5a7bf2018-07-26 13:06:33 -0700272 "Device Drivers": ["org.onosproject.driver*"],
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700273}
274
275project_javadoc(
276 name = "external",
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700277 srcs = SOURCES,
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700278 groups = EXTERNAL_GROUPS,
Ray Milkeydd5a7bf2018-07-26 13:06:33 -0700279 title = "ONOS Java API (%s)" % ONOS_VERSION,
280 deps = JAVADOC_DEPS,
Thomas Vachuskac3226e92018-07-25 12:00:57 -0700281)
282
283project_javadoc(
Ray Milkeydd5a7bf2018-07-26 13:06:33 -0700284 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 Vachuskac3226e92018-07-25 12:00:57 -0700290)