Update GitHub workflows to use JDK 21 (Oracle)

All workflows now use JDK 21 with the Oracle distribution instead of JDK 17 or 11 with Temurin. This ensures consistency and leverages the latest Java features and security updates.
This commit is contained in:
amithkoujalgi 2025-09-18 02:00:55 +05:30
parent 5b71c8eacf
commit 8df36a9b98
No known key found for this signature in database
GPG Key ID: E29A37746AF94B70
4 changed files with 11 additions and 11 deletions

View File

@ -28,8 +28,8 @@ jobs:
if: matrix.language == 'java'
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '11'
distribution: oracle
java-version: '21'
- name: Initialize CodeQL
uses: github/codeql-action/init@v3

View File

@ -14,11 +14,11 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
java-version: '21'
distribution: 'oracle'
server-id: github
settings-path: ${{ github.workspace }}

View File

@ -26,11 +26,11 @@ jobs:
steps:
- uses: actions/checkout@v5
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
java-version: '21'
distribution: 'oracle'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

View File

@ -36,11 +36,11 @@ jobs:
run: |
curl -fsSL https://ollama.com/install.sh | sh
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v5
with:
java-version: '17'
distribution: 'temurin'
java-version: '21'
distribution: 'oracle'
server-id: github
settings-path: ${{ github.workspace }}