mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 03:27:59 +01:00
Enable Xwerror for smack-android-extensions
This commit is contained in:
parent
eab5682a03
commit
082540c633
2 changed files with 18 additions and 0 deletions
10
build.gradle
10
build.gradle
|
@ -193,6 +193,16 @@ allprojects {
|
|||
// work, we extra add '-quiet', which is added anyway by
|
||||
// gradle.
|
||||
options.addStringOption('Xdoclint:all', '-quiet')
|
||||
|
||||
// TODO: Add
|
||||
|
||||
// Treat warnings as errors.
|
||||
// See also https://bugs.openjdk.java.net/browse/JDK-8200363
|
||||
// options.addStringOption('Xwerror', '-quiet')
|
||||
|
||||
// after all javadoc warnings have been resolved and
|
||||
// remove Xwerror from the subprojects build.gradle files
|
||||
// (e.g. smack-android-extensions).
|
||||
}
|
||||
}
|
||||
tasks.withType(Javadoc) {
|
||||
|
|
|
@ -7,3 +7,11 @@ dependencies {
|
|||
compile project(':smack-android')
|
||||
compile project(':smack-extensions')
|
||||
}
|
||||
|
||||
if (JavaVersion.current().isJava8Compatible()) {
|
||||
tasks.withType(Javadoc) {
|
||||
// Treat warnings as errors.
|
||||
// See also https://bugs.openjdk.java.net/browse/JDK-8200363
|
||||
options.addStringOption('Xwerror', '-quiet')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue