From 2d9c676c7ad57be85fefa4e7047ca99573e3e62e Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Wed, 9 Oct 2024 13:07:34 -0400 Subject: [PATCH] Set opensearch-plugin-template-java plugin 3.0.0 baseline JDK version to JDK-21 (#99) Signed-off-by: Andriy Redko --- .github/workflows/CI.yml | 2 +- build.gradle | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 572991a..2f770f6 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -17,8 +17,8 @@ jobs: - macOS-latest - windows-latest java: - - 17 - 21 + - 23 name: Build and Test Plugin Template runs-on: ${{ matrix.os }} diff --git a/build.gradle b/build.gradle index be395b9..4682934 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,11 @@ def pathToPlugin = 'path.to.plugin' def pluginClassName = 'RenamePlugin' group = "RenameGroup" +java { + targetCompatibility = JavaVersion.VERSION_21 + sourceCompatibility = JavaVersion.VERSION_21 +} + tasks.register("preparePluginPathDirs") { mustRunAfter clean doLast {