Skip to content

Commit

Permalink
build.gradle: Enable javadoc doclint
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowdalic committed Mar 28, 2018
1 parent 4421abd commit 093e0e0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,18 @@ allprojects {
downloadJavadoc = true
}
}

if (JavaVersion.current().isJava8Compatible()) {
tasks.withType(Javadoc) {
// The '-quiet' as second argument is actually a hack,
// since the one paramater addStringOption doesn't seem to
// work, we extra add '-quiet', which is added anyway by
// gradle.
// See https://github.com/gradle/gradle/issues/2354
options.addStringOption('Xdoclint:all', '-quiet')
}
}

}

configure(subprojects.findAll{!it.name.endsWith('-java7') && !it.name.endsWith('-android21')}) {
Expand Down

0 comments on commit 093e0e0

Please sign in to comment.