Skip to content

Commit 3f584e1

Browse files
committed
Warnings as errors
1 parent 371997b commit 3f584e1

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
@@ -74,7 +74,10 @@ task sourcesJar(type: Jar, dependsOn: classes) {
7474
allprojects {
7575
gradle.projectsEvaluated {
7676
tasks.withType(JavaCompile) {
77-
options.compilerArgs << "-Xlint:all"
77+
options.compilerArgs << "-Xlint:all" << "-Werror"
78+
}
79+
tasks.withType(Javadoc) {
80+
options.addStringOption('Xwerror', '-quiet')
7881
}
7982
}
8083
}

0 commit comments

Comments
 (0)