From 89636d29cd254bc5a8760311919ab02061fe8b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sun, 14 Sep 2014 20:59:36 +0200 Subject: gradle: add -Xlint:unchecked && -Xlint:deprecation --- build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 +} -- cgit v1.1-2-g2b99