Skip to content

Commit 0cf8636

Browse files
committed
Warnings as errors
1 parent 0043611 commit 0cf8636

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: build.gradle

+4-1
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,10 @@ task sourcesJar(type: Jar, dependsOn: classes) {
133133
allprojects {
134134
gradle.projectsEvaluated {
135135
tasks.withType(JavaCompile) {
136-
options.compilerArgs << "-Xlint:all"
136+
options.compilerArgs << "-Xlint:all" << "-Werror"
137+
}
138+
tasks.withType(Javadoc) {
139+
options.addStringOption('Xwerror', '-quiet')
137140
}
138141
}
139142
}

0 commit comments

Comments
 (0)