Skip to content

Commit

Permalink
Use Eclipse Temurin, not AdoptOpenJDK in publish artifact action
Browse files Browse the repository at this point in the history
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/[email protected]
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.
  • Loading branch information
MarkEWaite committed Mar 25, 2022
1 parent 77a5bb2 commit abd028b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-release-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit abd028b

Please sign in to comment.