android: fix Javadoc symbol/class not found errors (#6063)

* android: fix Javadoc symbol/class not found errors

* Removed redundant join, files API can already handle list.

* Replace usage of javaCompile with javaCompileProvider

* Avoid afterEvaluate by filling javadocs.classpath in android configuration.

* Construct FileCollection via files(Closure), which delays the file resolution.
This commit is contained in:
Chengyuan Zhang 2019-08-15 12:47:14 -07:00 committed by GitHub
parent 21c34d7862
commit c521a31886
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -57,8 +57,12 @@ dependencies {
task javadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
// TODO(ericgribkoff) Fix javadoc errors
failOnError false
classpath += files(android.getBootClasspath())
classpath += files({
android.libraryVariants.collect { variant ->
variant.javaCompileProvider.get().classpath
}
})
options {
// Disable JavaDoc doclint on Java 8.
if (JavaVersion.current().isJava8Compatible()) {