Use latest version of Java to avoid using an out of date version when building the release

See https://github.com/actions/setup-java/tree/main#check-latest for further information
This commit is contained in:
Julian Raufelder 2023-08-11 15:52:42 +02:00
parent 34c0f1d13e
commit ef4738f920
No known key found for this signature in database
4 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,7 @@ jobs:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
java-package: 'jdk+fx'
check-latest: true
cache: 'maven'
- name: Ensure major jfx version in pom equals in jdk
shell: pwsh

View File

@ -51,6 +51,7 @@ jobs:
with:
distribution: 'zulu'
java-version: ${{ env.JAVA_VERSION }}
check-latest: true
cache: 'maven'
- name: Run maven
run: mvn -B clean package -Pdependency-check,linux -DskipTests

View File

@ -45,6 +45,7 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
java-package: 'jdk+fx'
architecture: ${{ matrix.architecture }}
check-latest: true
cache: 'maven'
- name: Ensure major jfx version in pom equals in jdk
if: ${{ !contains(matrix.os, 'self-hosted') }}

View File

@ -45,6 +45,7 @@ jobs:
distribution: ${{ env.JAVA_DIST }}
java-version: ${{ env.JAVA_VERSION }}
java-package: 'jdk'
check-latest: true
cache: ${{ env.JAVA_CACHE }}
- name: Download and extract JavaFX jmods from Gluon
#In the last step we move all jmods files a dir level up because jmods are placed inside a directory in the zip
@ -246,6 +247,7 @@ jobs:
with:
distribution: ${{ env.JAVA_DIST }}
java-version: ${{ env.JAVA_VERSION }}
check-latest: true
cache: ${{ env.JAVA_CACHE }}
- name: Generate license for exe
run: >