mirror of https://github.com/grpc/grpc-java.git
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:
parent
21c34d7862
commit
c521a31886
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue