Skip to content

Commit

Permalink
Set minimum Java version to 11
Browse files Browse the repository at this point in the history
Also add Java 11 and 17 to the precommit workflows.

Signed-off-by: Andrew Ross <andrross@amazon.com>
  • Loading branch information
andrross committed Sep 12, 2024
1 parent d709a0c commit 318b9e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ allprojects {
}

java {
targetCompatibility = JavaVersion.VERSION_21
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}
}

Expand Down

0 comments on commit 318b9e9

Please sign in to comment.