diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 6f72111..bd3817f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -11,7 +11,7 @@ jobs: needs: Get-CI-Image-Tag strategy: matrix: - java: [ 11, 17, 21 ] + java: [ 21 ] if: github.repository == 'opensearch-project/custom-codecs' runs-on: ubuntu-latest container: @@ -38,7 +38,7 @@ jobs: if: github.repository == 'opensearch-project/custom-codecs' strategy: matrix: - java: [ 11, 17, 21 ] + java: [ 21 ] os: [windows-latest, macos-13] runs-on: ${{ matrix.os }} steps: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2611fe8..90a4701 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: - uses: actions/setup-java@v4 with: distribution: temurin # Temurin is a distribution of adoptium - java-version: 17 + java-version: 21 - name: Checkout custom-codecs Repo uses: actions/checkout@v4 diff --git a/.github/workflows/publish-maven-snapshots.yml b/.github/workflows/publish-maven-snapshots.yml index b1374b0..6e5db19 100644 --- a/.github/workflows/publish-maven-snapshots.yml +++ b/.github/workflows/publish-maven-snapshots.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-java@v3 with: distribution: temurin - java-version: 11 + java-version: 21 - uses: actions/checkout@v3 - uses: aws-actions/configure-aws-credentials@v1 with: diff --git a/build.gradle b/build.gradle index e0d842f..00a6f89 100644 --- a/build.gradle +++ b/build.gradle @@ -78,8 +78,8 @@ allprojects { } java { - targetCompatibility = JavaVersion.VERSION_11 - sourceCompatibility = JavaVersion.VERSION_11 + targetCompatibility = JavaVersion.VERSION_21 + sourceCompatibility = JavaVersion.VERSION_21 } }