If T2900-java21 instal jdk 21

This commit is contained in:
Marko Frankovic 2025-03-20 10:04:27 +01:00
parent 952c9dc6ef
commit a21e4527fa

View File

@ -29,13 +29,16 @@ jobs:
with: with:
maven-version: '3.9.9' maven-version: '3.9.9'
- name: Print JDK version - name: Set up JDK 21
run: | if: github.ref == 'refs/heads/feature/T2900-java21'
echo "Installing JDK version: $JAVA_VERSION" uses: actions/setup-java@v4
env: with:
JAVA_VERSION: ${{ secrets.JAVA_VERSION }} java-version: '21'
distribution: 'corretto'
cache: maven
- name: Set up JDK - name: Set up JDK from ENV
if: github.ref != 'refs/heads/feature/T2900-java21'
uses: actions/setup-java@v4 uses: actions/setup-java@v4
with: with:
java-version: '${{ secrets.JAVA_VERSION }}' java-version: '${{ secrets.JAVA_VERSION }}'