Skip to content

Commit

Permalink
Upgraded Java version in workflows
Browse files Browse the repository at this point in the history
- Updated build.yml and tests.yml
  • Loading branch information
josemmo committed May 26, 2024
1 parent 806e023 commit a90aad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

# Build plugin
- name: Build with Maven
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'

# Build plugin
- name: Build with Maven
Expand All @@ -33,7 +33,7 @@ jobs:
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ startsWith(matrix.version, '1.16') && '11' || (startsWith(matrix.version, '1.17') && '16' || '17') }}
java-version: ${{ startsWith(matrix.version, '1.16') && '11' || (startsWith(matrix.version, '1.17') && '16' || '21') }}

# Setup Node.js
- name: Setup Node.js
Expand Down

0 comments on commit a90aad5

Please sign in to comment.