blob: ba7933be734bcae97444851d1f57f1890c69fc1b [file] [log] [blame]
Nan Zhang3ac47562018-06-22 10:47:56 -07001// Copyright 2018 Google Inc. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
Bob Badour1e42b162021-02-12 18:25:31 -080015package {
16 default_applicable_licenses: ["external_dokka_license"],
17}
18
19// Added automatically by a large-scale-change
20//
21// large-scale-change included anything that looked like it might be a license
22// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
23//
24// Please consider removing redundant or irrelevant files from 'license_text:'.
25// See: http://go/android-license-faq
26license {
27 name: "external_dokka_license",
28 visibility: [":__subpackages__"],
29 license_kinds: [
30 "SPDX-license-identifier-Apache-2.0",
31 ],
32 license_text: [
33 "LICENSE",
34 "NOTICE",
35 ],
36}
37
Colin Cross635b3032019-07-24 12:22:02 -070038java_binary_host {
39 name: "dokka",
Gautam Ajjarapue3876032019-08-07 13:43:56 -070040 srcs: [
41 "core/src/main/**/*.kt",
42 "runners/cli/**/*.kt",
43 "integration/**/*.kt",
44 "buildSrc/**/*.groovy"
45 ],
46 static_libs: [
47 "dokka-tools-common-m2-deps",
48 ],
Pete Gillin7b2e0b02019-08-27 13:35:54 +010049 // Pin to Java 8 since dokka doesn't compile with the Java 9 module system
50 // (it references packages under com.sun.tools.doclets which are not
51 // exported from the jdk.javadoc module) (see b/140097603):
52 java_version: "1.8",
Louis Pullen-Freilich66257792020-06-22 17:34:35 +010053 kotlincflags: ["-language-version 1.3 -api-version 1.3 -jvm-target 1.8"],
Gautam Ajjarapue3876032019-08-07 13:43:56 -070054 use_tools_jar: true,
55 java_resource_dirs: ["core/src/main/resources"],
Nan Zhang3ac47562018-06-22 10:47:56 -070056}