xref: /aosp_15_r20/external/dokka/Android.bp (revision 1b2d298c530bf0473cc943e8414a5ff577a994bc)
1*1b2d298cSOwner Cleanup Bot// Copyright 2018 Google Inc. All rights reserved.
2*1b2d298cSOwner Cleanup Bot//
3*1b2d298cSOwner Cleanup Bot// Licensed under the Apache License, Version 2.0 (the "License");
4*1b2d298cSOwner Cleanup Bot// you may not use this file except in compliance with the License.
5*1b2d298cSOwner Cleanup Bot// You may obtain a copy of the License at
6*1b2d298cSOwner Cleanup Bot//
7*1b2d298cSOwner Cleanup Bot//     http://www.apache.org/licenses/LICENSE-2.0
8*1b2d298cSOwner Cleanup Bot//
9*1b2d298cSOwner Cleanup Bot// Unless required by applicable law or agreed to in writing, software
10*1b2d298cSOwner Cleanup Bot// distributed under the License is distributed on an "AS IS" BASIS,
11*1b2d298cSOwner Cleanup Bot// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*1b2d298cSOwner Cleanup Bot// See the License for the specific language governing permissions and
13*1b2d298cSOwner Cleanup Bot// limitations under the License.
14*1b2d298cSOwner Cleanup Bot
15*1b2d298cSOwner Cleanup Botpackage {
16*1b2d298cSOwner Cleanup Bot    default_applicable_licenses: ["external_dokka_license"],
17*1b2d298cSOwner Cleanup Bot}
18*1b2d298cSOwner Cleanup Bot
19*1b2d298cSOwner Cleanup Bot// Added automatically by a large-scale-change
20*1b2d298cSOwner Cleanup Bot//
21*1b2d298cSOwner Cleanup Bot// large-scale-change included anything that looked like it might be a license
22*1b2d298cSOwner Cleanup Bot// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
23*1b2d298cSOwner Cleanup Bot//
24*1b2d298cSOwner Cleanup Bot// Please consider removing redundant or irrelevant files from 'license_text:'.
25*1b2d298cSOwner Cleanup Bot// See: http://go/android-license-faq
26*1b2d298cSOwner Cleanup Botlicense {
27*1b2d298cSOwner Cleanup Bot    name: "external_dokka_license",
28*1b2d298cSOwner Cleanup Bot    visibility: [":__subpackages__"],
29*1b2d298cSOwner Cleanup Bot    license_kinds: [
30*1b2d298cSOwner Cleanup Bot        "SPDX-license-identifier-Apache-2.0",
31*1b2d298cSOwner Cleanup Bot    ],
32*1b2d298cSOwner Cleanup Bot    license_text: [
33*1b2d298cSOwner Cleanup Bot        "LICENSE",
34*1b2d298cSOwner Cleanup Bot        "NOTICE",
35*1b2d298cSOwner Cleanup Bot    ],
36*1b2d298cSOwner Cleanup Bot}
37*1b2d298cSOwner Cleanup Bot
38*1b2d298cSOwner Cleanup Botjava_binary_host {
39*1b2d298cSOwner Cleanup Bot    name: "dokka",
40*1b2d298cSOwner Cleanup Bot    srcs: [
41*1b2d298cSOwner Cleanup Bot        "core/src/main/**/*.kt",
42*1b2d298cSOwner Cleanup Bot        "runners/cli/**/*.kt",
43*1b2d298cSOwner Cleanup Bot        "integration/**/*.kt",
44*1b2d298cSOwner Cleanup Bot        "buildSrc/**/*.groovy"
45*1b2d298cSOwner Cleanup Bot    ],
46*1b2d298cSOwner Cleanup Bot    static_libs: [
47*1b2d298cSOwner Cleanup Bot      "dokka-tools-common-m2-deps",
48*1b2d298cSOwner Cleanup Bot    ],
49*1b2d298cSOwner Cleanup Bot    // Pin to Java 8 since dokka doesn't compile with the Java 9 module system
50*1b2d298cSOwner Cleanup Bot    // (it references packages under com.sun.tools.doclets which are not
51*1b2d298cSOwner Cleanup Bot    // exported from the jdk.javadoc module) (see b/140097603):
52*1b2d298cSOwner Cleanup Bot    java_version: "1.8",
53*1b2d298cSOwner Cleanup Bot    use_tools_jar: true,
54*1b2d298cSOwner Cleanup Bot    java_resource_dirs: ["core/src/main/resources"],
55*1b2d298cSOwner Cleanup Bot}
56