Created
October 26, 2016 14:23
-
-
Save fejd/ea70ab7bfd6e4da85268935119287ae0 to your computer and use it in GitHub Desktop.
Treat Java unchecked and deprecation warnings as errors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
allprojects { | |
gradle.projectsEvaluated { | |
tasks.withType(JavaCompile) { | |
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment