Skip to content

Commit 79a06d3

Browse files
committed
Warnings as errors
1 parent fbb7695 commit 79a06d3

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
@@ -90,7 +90,10 @@ task sourcesJar(type: Jar, dependsOn: classes) {
9090
allprojects {
9191
gradle.projectsEvaluated {
9292
tasks.withType(JavaCompile) {
93-
options.compilerArgs << "-Xlint:all"
93+
options.compilerArgs << "-Xlint:all" << "-Werror"
94+
}
95+
tasks.withType(Javadoc) {
96+
options.addStringOption('Xwerror', '-quiet')
9497
}
9598
}
9699
}

0 commit comments

Comments
 (0)