From 64bfe42878bbd33c18b875e05923887554f395cd Mon Sep 17 00:00:00 2001 From: Stephen Gold Date: Wed, 15 Apr 2020 18:22:44 -0700 Subject: [PATCH] build with -Xlink:unchecked --- common.gradle | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common.gradle b/common.gradle index 21ffc4d01..aea012a60 100644 --- a/common.gradle +++ b/common.gradle @@ -12,6 +12,12 @@ version = jmeFullVersion sourceCompatibility = '1.8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' +gradle.projectsEvaluated { + tasks.withType(JavaCompile) { // compile-time options: + options.compilerArgs << '-Xlint:unchecked' + } +} + repositories { mavenCentral() maven {