Nan Zhang | 3ac4756 | 2018-06-22 10:47:56 -0700 | [diff] [blame] | 1 | // 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 Badour | 1e42b16 | 2021-02-12 18:25:31 -0800 | [diff] [blame] | 15 | package { |
| 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 |
| 26 | license { |
| 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 Cross | 635b303 | 2019-07-24 12:22:02 -0700 | [diff] [blame] | 38 | java_binary_host { |
| 39 | name: "dokka", |
Gautam Ajjarapu | e387603 | 2019-08-07 13:43:56 -0700 | [diff] [blame] | 40 | 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 Gillin | 7b2e0b0 | 2019-08-27 13:35:54 +0100 | [diff] [blame] | 49 | // 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-Freilich | 6625779 | 2020-06-22 17:34:35 +0100 | [diff] [blame] | 53 | kotlincflags: ["-language-version 1.3 -api-version 1.3 -jvm-target 1.8"], |
Gautam Ajjarapu | e387603 | 2019-08-07 13:43:56 -0700 | [diff] [blame] | 54 | use_tools_jar: true, |
| 55 | java_resource_dirs: ["core/src/main/resources"], |
Nan Zhang | 3ac4756 | 2018-06-22 10:47:56 -0700 | [diff] [blame] | 56 | } |