From 117398b765c43733de508f17b5fa5fc781efa842 Mon Sep 17 00:00:00 2001 From: nnatarajan Date: Mon, 8 Jun 2020 18:55:23 -0600 Subject: [PATCH] FINERACT-959 Tighten javac compilerArgs, turn more warnings into errors (and fix related problems) --- fineract-provider/build.gradle | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle index f10c246b2..440f8a692 100644 --- a/fineract-provider/build.gradle +++ b/fineract-provider/build.gradle @@ -298,7 +298,14 @@ configurations { } tasks.withType(JavaCompile) { - options.compilerArgs += ["-Xlint:unchecked","-Xlint:cast","-Werror"] // TODO FINERACT-959 (gradually) enable -Xlint:all (see "javac -help -X") + options.compilerArgs += ["-Xlint:unchecked","-Xlint:cast","-Xlint:auxiliaryclass","-Xlint:deprecation", + "-Xlint:dep-ann","-Xlint:divzero","-Xlint:empty","-Xlint:exports","-Xlint:fallthrough", + "-Xlint:finally","-Xlint:module","-Xlint:opens","-Xlint:options","-Xlint:overloads", + "-Xlint:overrides","-Xlint:path","-Xlint:processing","-Xlint:removal", + "-Xlint:requires-automatic","-Xlint:requires-transitive-automatic","-Xlint:try", + "-Xlint:varargs","-Xlint:preview","-Werror"] + // TODO FINERACT-959 (gradually) enable -Xlint:all (see "javac -help -X") + options.deprecation = true options.errorprone { disableWarningsInGeneratedCode = true