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 15package { 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 38java_binary_host { 39 name: "dokka", 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 ], 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", 53 kotlincflags: ["-language-version 1.3 -api-version 1.3 -jvm-target 1.8"], 54 use_tools_jar: true, 55 java_resource_dirs: ["core/src/main/resources"], 56} 57