From abd028bbb373a87708d60ad3d2e5b18b589c7e54 Mon Sep 17 00:00:00 2001 From: Mark Waite Date: Fri, 25 Mar 2022 11:52:42 -0600 Subject: [PATCH] Use Eclipse Temurin, not AdoptOpenJDK in publish artifact action The 'adopt' distribution has moved to Eclipse Temurin and won't be updated at the AdoptOpenJDK location. https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#adopt describes the transition. https://github.com/actions/setup-java#usage provides more general purpose info. The current Adopt version is reporting: Run actions/setup-java@v2 Resolved Java 8.0.292+1 from tool-cache Setting Java 8.0.292+1 as the default Java configuration: Distribution: adopt Version: 8.0.292+1 Path: /opt/hostedtoolcache/Java_Adopt_jdk/8.0.292-1/x64 The current Temurin version reports: Run actions/setup-java@v3.0.0 Resolved Java 8.0.322+6 from tool-cache Setting Java 8.0.322+6 as the default Java configuration: Distribution: temurin Version: 8.0.322+6 Path: /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/8.0.322-6/x64 The upgrade from JDK 8u292 to 8u322 is a positive step, since it is using a JDK version that is 12 months newer. --- .github/workflows/publish-release-artifact.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-release-artifact.yml b/.github/workflows/publish-release-artifact.yml index 7d2571883aec..bc451cbb1bb2 100644 --- a/.github/workflows/publish-release-artifact.yml +++ b/.github/workflows/publish-release-artifact.yml @@ -13,9 +13,9 @@ jobs: steps: - uses: actions/checkout@v3 - name: Set up JDK 8 - uses: actions/setup-java@v2 + uses: actions/setup-java@v3.0.0 with: - distribution: 'adopt' + distribution: 'temurin' java-version: 8 - name: Set version id: set-version