Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4a438c5

Browse files
committedNov 26, 2019
Warnings as errors
1 parent 4558a00 commit 4a438c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ task sourcesJar(type: Jar, dependsOn: classes) {
132132
allprojects {
133133
gradle.projectsEvaluated {
134134
tasks.withType(JavaCompile) {
135-
options.compilerArgs << "-Xlint:all"
135+
options.compilerArgs << "-Xlint:all" << "-Werror"
136+
}
137+
tasks.withType(Javadoc) {
138+
options.addStringOption('Xwerror', '-quiet')
136139
}
137140
}
138141
}

0 commit comments

Comments
 (0)
Please sign in to comment.