From e74b4fe04ed9a3a44fb43ffeb3298b82a1fe4f47 Mon Sep 17 00:00:00 2001 From: Victor Andreasson Date: Thu, 5 Sep 2024 02:07:13 +0200 Subject: [PATCH] Use Java 17 for pipeline builds --- .github/workflows/prerelease.yml | 6 ++++++ .github/workflows/release.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 3e31fc0a1..16f0ec980 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -22,6 +22,12 @@ jobs: - name: Get version name from git tag run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - name: Setup Gradle uses: gradle/actions/setup-gradle@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f0cc862e..445b2a478 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,12 @@ jobs: - name: Get version name from git tag run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + - name: Setup Gradle uses: gradle/actions/setup-gradle@v3