From 42a7356ecd70e8e7eed6d14d150d63e52a254194 Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Mon, 7 Oct 2024 12:45:47 -0400 Subject: [PATCH] Set common-utils 3.0.0 baseline JDK version to JDK-21 Signed-off-by: Andriy Redko --- build.gradle | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 4b0df736..332ae8d4 100644 --- a/build.gradle +++ b/build.gradle @@ -9,7 +9,7 @@ buildscript { opensearch_version = System.getProperty("opensearch.version", "3.0.0-SNAPSHOT") isSnapshot = "true" == System.getProperty("build.snapshot", "true") buildVersionQualifier = System.getProperty("build.version_qualifier", "") - kotlin_version = System.getProperty("kotlin.version", "1.8.21") + kotlin_version = System.getProperty("kotlin.version", "1.9.25") } repositories { @@ -30,7 +30,7 @@ buildscript { plugins { id 'java-library' id 'maven-publish' - id 'com.diffplug.spotless' version '6.22.0' + id 'com.diffplug.spotless' version '6.25.0' } repositories { @@ -51,8 +51,8 @@ allprojects { } } -targetCompatibility = JavaVersion.VERSION_11 -sourceCompatibility = JavaVersion.VERSION_11 +targetCompatibility = JavaVersion.VERSION_21 +sourceCompatibility = JavaVersion.VERSION_21 apply plugin: 'java' apply plugin: 'jacoco' @@ -143,13 +143,13 @@ tasks.register('ktlintFormat', JavaExec) { compileKotlin { kotlinOptions { freeCompilerArgs = ['-Xjsr305=strict'] - jvmTarget = "11" + jvmTarget = "21" } } compileTestKotlin { kotlinOptions { - jvmTarget = "11" + jvmTarget = "21" } }