blob: 2d264402766fdfcdd08257183076eea01cd16223 [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
Thomas Vachuska1d735e42018-08-08 16:00:09 -070026JAVADOC_DEPS = CORE_DEPS + KRYO + ATOMIX + REST + CLI + JACKSON + TEST + NETTY + METRICS + ONOS_YANG + [
Thomas Vachuska6796e022018-08-09 14:53:04 -070027 "@io_netty_netty//jar",
28 "@io_netty_netty_codec//jar",
29 "@io_netty_netty_transport//jar",
30 "@io_netty_netty_handler//jar",
31 "@io_netty_netty_transport_native_epoll//jar",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070032 "@commons_math3//jar",
33 "@joda_time//jar",
34 "@mapdb//jar",
35 "@httpclient_osgi//jar",
36 "@httpcore_osgi//jar",
37 "@bndlib//jar",
38 "@jersey_client//jar",
39 "@jersey_server//jar",
40 "@jersey_security//jar",
41 "@org_apache_felix_scr_bnd//jar",
42 "@openflowj//jar",
43 "@org_apache_servicemix_bundles_snmp4j//jar",
44 "@snmp_core//jar",
45 "@mibs_net_snmp//jar",
46 "@mibs_rfc//jar",
47 "@tinder_xmpp//jar",
48 "@aalto_xml//jar",
49 "@stax2_api//jar",
50 "@bcprov_jdk15on//jar",
51 "@bcpkix_jdk15on//jar",
52 "@sshd_core//jar",
53 "@ganymed_ssh2//jar",
54 "@concurrent_trees//jar",
55]
56
57EXTERNAL_GROUPS = {
Ray Milkeydd5a7bf2018-07-26 13:06:33 -070058 "Network Model & Services": ["org.onosproject.*"],
59 "Incubator for Network Model & Services": ["org.onosproject.incubator.*"],
60 "Utilities": ["org.onlab.*"],
Thomas Vachuskac3226e92018-07-25 12:00:57 -070061 "App & Extensions": [
62 "org.onosproject.dhcp",
63 "org.onosproject.cpman",
64 "org.onosproject.routing",
65 ],
66}
67
Thomas Vachuskac3226e92018-07-25 12:00:57 -070068project_javadoc(
69 name = "external",
Thomas Vachuskac3226e92018-07-25 12:00:57 -070070 srcs = SOURCES,
Thomas Vachuskac3226e92018-07-25 12:00:57 -070071 groups = EXTERNAL_GROUPS,
Ray Milkeydd5a7bf2018-07-26 13:06:33 -070072 title = "ONOS Java API (%s)" % ONOS_VERSION,
73 deps = JAVADOC_DEPS,
Thomas Vachuskac3226e92018-07-25 12:00:57 -070074)