Skip to content

Commit

Permalink
Set minimum Java version to 11 (#27)
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 <[email protected]>
  • Loading branch information
andrross authored Sep 12, 2024
1 parent 6b8744d commit fec2c39
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 fec2c39

Please sign in to comment.