Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 1 | load("//tools/build/bazel:project_javadoc.bzl", "project_javadoc") |
Ray Milkey | dabd84f | 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 | |
Thomas Vachuska | 1d735e4 | 2018-08-08 16:00:09 -0700 | [diff] [blame] | 26 | 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] | 27 | "@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 Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 32 | "@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 | |
| 57 | EXTERNAL_GROUPS = { |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 58 | "Network Model & Services": ["org.onosproject.*"], |
| 59 | "Incubator for Network Model & Services": ["org.onosproject.incubator.*"], |
| 60 | "Utilities": ["org.onlab.*"], |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 61 | "App & Extensions": [ |
| 62 | "org.onosproject.dhcp", |
| 63 | "org.onosproject.cpman", |
| 64 | "org.onosproject.routing", |
| 65 | ], |
| 66 | } |
| 67 | |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 68 | project_javadoc( |
| 69 | name = "external", |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 70 | srcs = SOURCES, |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 71 | groups = EXTERNAL_GROUPS, |
Ray Milkey | dd5a7bf | 2018-07-26 13:06:33 -0700 | [diff] [blame] | 72 | title = "ONOS Java API (%s)" % ONOS_VERSION, |
| 73 | deps = JAVADOC_DEPS, |
Thomas Vachuska | c3226e9 | 2018-07-25 12:00:57 -0700 | [diff] [blame] | 74 | ) |