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 | |
Colin Cross | 635b303 | 2019-07-24 12:22:02 -0700 | [diff] [blame] | 15 | java_binary_host { |
| 16 | name: "dokka", |
Gautam Ajjarapu | e387603 | 2019-08-07 13:43:56 -0700 | [diff] [blame] | 17 | 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 Gillin | 7b2e0b0 | 2019-08-27 13:35:54 +0100 | [diff] [blame] | 26 | // 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 Ajjarapu | e387603 | 2019-08-07 13:43:56 -0700 | [diff] [blame] | 30 | 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 Zhang | 3ac4756 | 2018-06-22 10:47:56 -0700 | [diff] [blame] | 33 | } |