diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-14 20:59:36 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-14 20:59:36 +0200 | 
| commit | 89636d29cd254bc5a8760311919ab02061fe8b9b (patch) | |
| tree | 831b88e325cba5247c351d840cbc821b80125dce | |
| parent | 3eba81f5330c0540bedd6bf3b5d320a4ba6d6e85 (diff) | |
| download | RustAndDust-89636d29cd254bc5a8760311919ab02061fe8b9b.zip RustAndDust-89636d29cd254bc5a8760311919ab02061fe8b9b.tar.gz | |
gradle: add -Xlint:unchecked && -Xlint:deprecation
| -rw-r--r-- | build.gradle | 7 | 
1 files changed, 6 insertions, 1 deletions
| diff --git a/build.gradle b/build.gradle index a1e6864..9d83f1c 100644 --- a/build.gradle +++ b/build.gradle @@ -26,6 +26,11 @@ allprojects {          maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }          maven { url "https://oss.sonatype.org/content/repositories/releases/" }      } +    gradle.projectsEvaluated { +        tasks.withType(JavaCompile) { +            options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" +        } +    }  }  project(":desktop") { @@ -101,4 +106,4 @@ project(":core") {  tasks.eclipse.doLast {      delete ".project" -}
\ No newline at end of file +} | 
