From bf0c9741faa5b9fb33a73a049d03d641abfa0a7f Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Wed, 22 Nov 2017 21:25:19 -0800 Subject: [PATCH] Let's add -Xlint:unchecked to build.gradle You can see that -Xlint:deprecated is also there, but commented out. Mostly because I'm not prepared to fix them all just now. :) --- build.gradle | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ffc8fe0..30e7199 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ apply plugin: 'application' ext { sourceCompatibility = '1.8' targetCompatibility = '1.8' - + swtVersion = "4.6.1" junitVersion = "4.12" antVersion = "1.8.2" @@ -43,6 +43,11 @@ dependencies { testCompile "junit:junit:$junitVersion" } +compileJava { + options.encoding = 'UTF-8' + options.compilerArgs << "-Xlint:unchecked" // << "-Xlint:deprecation" +} + task acJar(type: Jar) { dependencies { // Just to pass the compile step; these classes are stripped out below. @@ -104,4 +109,4 @@ artifacts { archives linuxJar archives macosxJar archives windowsJar -} \ No newline at end of file +}