1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-09 09:09:38 +02:00

Enable javadoc 'html' doclint

Also make all 'test' tasks depend on the 'javadoc' task.

Fixes SMACK-650.
This commit is contained in:
Florian Schmaus 2017-12-25 12:51:41 +01:00
parent 89c97bb46c
commit 34373e8710
71 changed files with 200 additions and 220 deletions

View file

@ -178,8 +178,7 @@ allprojects {
// since the one paramater addStringOption doesn't seem to
// work, we extra add '-quiet', which is added anyway by
// gradle.
// TODO enable all doclints, see SMACK-650
options.addStringOption('Xdoclint:all,-html', '-quiet')
options.addStringOption('Xdoclint:all', '-quiet')
}
}
tasks.withType(Javadoc) {
@ -193,6 +192,10 @@ allprojects {
configurations.errorprone {
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.0.15'
}
// Make all project's 'test' target depend on javadoc, so that
// javadoc is also linted.
test { dependsOn javadoc }
}
gradle.taskGraph.whenReady { taskGraph ->