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"