blob: f67ea232af38c353a2746f5109b2b548f25409a8 [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
Colin Cross635b3032019-07-24 12:22:02 -070015java_binary_host {
16 name: "dokka",
Gautam Ajjarapue3876032019-08-07 13:43:56 -070017 srcs: [
18 "core/src/main/**/*.kt",
19 "runners/cli/**/*.kt",
20 "integration/**/*.kt",
21 "buildSrc/**/*.groovy"
22 ],
23 static_libs: [
24 "dokka-tools-common-m2-deps",
25 ],
Pete Gillin7b2e0b02019-08-27 13:35:54 +010026 // Pin to Java 8 since dokka doesn't compile with the Java 9 module system
27 // (it references packages under com.sun.tools.doclets which are not
28 // exported from the jdk.javadoc module) (see b/140097603):
29 java_version: "1.8",
Gautam Ajjarapue3876032019-08-07 13:43:56 -070030 kotlincflags: ["-language-version 1.2 -api-version 1.2 -jvm-target 1.8"],
31 use_tools_jar: true,
32 java_resource_dirs: ["core/src/main/resources"],
Nan Zhang3ac47562018-06-22 10:47:56 -070033}