From 64ade975548afc5336f7f05c2d69fc24f3ffc33e Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Thu, 25 Jul 2024 12:59:31 +0800 Subject: [PATCH] fix set java compile version to 21 is not take effect (#362) Signed-off-by: Hailong Cui --- build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index 00e68f86..5d191b02 100644 --- a/build.gradle +++ b/build.gradle @@ -64,11 +64,6 @@ allprojects { version = "${opensearch_build}" } -java { - targetCompatibility = JavaVersion.VERSION_21 - sourceCompatibility = JavaVersion.VERSION_21 -} - apply plugin: 'java' apply plugin: 'jacoco' apply plugin: 'idea' @@ -80,6 +75,11 @@ apply plugin: 'opensearch.opensearchplugin' apply plugin: 'opensearch.testclusters' apply plugin: 'opensearch.pluginzip' +java { + targetCompatibility = JavaVersion.VERSION_21 + sourceCompatibility = JavaVersion.VERSION_21 +} + def sqlJarDirectory = "$buildDir/dependencies/opensearch-sql-plugin" def jsJarDirectory = "$buildDir/dependencies/opensearch-job-scheduler" def adJarDirectory = "$buildDir/dependencies/opensearch-time-series-analytics"