From 8ffa36e7e21e8ce5512f65b014b7b0eadcf03e89 Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Fri, 4 Mar 2022 15:21:54 -0500 Subject: [PATCH] Fix java-version-checker source/target compatibility settings (#2354) Signed-off-by: Andriy Redko --- distribution/tools/java-version-checker/build.gradle | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/tools/java-version-checker/build.gradle b/distribution/tools/java-version-checker/build.gradle index 1990c2b35c151..d3b1422de475a 100644 --- a/distribution/tools/java-version-checker/build.gradle +++ b/distribution/tools/java-version-checker/build.gradle @@ -11,7 +11,8 @@ apply plugin: 'opensearch.build' -targetCompatibility = JavaVersion.VERSION_1_7 +sourceCompatibility = JavaVersion.VERSION_1_8 +targetCompatibility = JavaVersion.VERSION_1_8 // targetting very old java versions enables a warning by default on newer JDK: disable it. compileJava.options.compilerArgs += '-Xlint:-options'