From 318b9e9d10b9bddd9681f0fbeb1696e818d8f209 Mon Sep 17 00:00:00 2001 From: Andrew Ross Date: Thu, 12 Sep 2024 23:32:53 +0000 Subject: [PATCH] Set minimum Java version to 11 Also add Java 11 and 17 to the precommit workflows. Signed-off-by: Andrew Ross --- .github/workflows/check.yml | 4 ++-- build.gradle | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index ff27aa5..adc9140 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -11,7 +11,7 @@ jobs: needs: Get-CI-Image-Tag strategy: matrix: - java: [ 21 ] + java: [ 11, 17, 21 ] if: github.repository == 'opensearch-project/opensearch-system-templates' runs-on: ubuntu-latest container: @@ -40,7 +40,7 @@ jobs: if: github.repository == 'opensearch-project/opensearch-system-templates' strategy: matrix: - java: [ 21 ] + java: [ 11, 17, 21 ] os: [windows-latest, macos-13] runs-on: ${{ matrix.os }} steps: diff --git a/build.gradle b/build.gradle index 1816e9a..e007c70 100644 --- a/build.gradle +++ b/build.gradle @@ -82,8 +82,8 @@ allprojects { } java { - targetCompatibility = JavaVersion.VERSION_21 - sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_11 + sourceCompatibility = JavaVersion.VERSION_11 } }