Skip to content

Commit 373813d

Browse files
committed
Display lint warnings.
1 parent 4ac0923 commit 373813d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

build.gradle

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ task sourcesJar(type: Jar, dependsOn: classes) {
5555
from sourceSets.main.allSource;
5656
}
5757

58+
/*
59+
* Lint all the things!
60+
*/
61+
allprojects {
62+
gradle.projectsEvaluated {
63+
tasks.withType(JavaCompile) {
64+
options.compilerArgs << "-Xlint:all"
65+
}
66+
}
67+
}
68+
5869
/*
5970
* Javadoc: we need to tell where the overview.html is, it will not pick it up
6071
* automatically...

0 commit comments

Comments
 (0)