setup-java icon indicating copy to clipboard operation
setup-java copied to clipboard

Support OpenJDK in order to use -ea versions

Open gortiz opened this issue 2 years ago • 4 comments

Description: As we know, OpenJDK used to be the place where free JRE and JDKs were downloaded from, but in the new model consumers should use other vendors like temurin, microsoft, etc. This is true for all versions but the EA, which are not packaged by these vendors and therefore they should be downloaded from OpenJDK*.

As said in OpenJDK docker page:

This image is officially deprecated and all users are recommended to find and use suitable replacements ASAP. Some examples of other Official Image alternatives (listed in alphabetical order with no intentional or implied preference):

<list of publishers>

The only tags which will continue to receive updates beyond July 2022 will be Early Access builds (which are sourced from jdk.java.net), as those are not published/supported by any of the above projects.

  • This is not 100% correct. Some vendors like Azul do offer EA versions in their webpage, but they are not included in the endpoint this action calls.

Justification: In order to support newest JVMs as fast as possible, it is very useful to be able to compile and test libraries and applications using the JDK that is being development. This is specially important in a moment like this when the release in EA is going to be LTS and will include tons of improvements and new features compared to the last LTS.

gortiz avatar May 17 '23 13:05 gortiz

Hi, @gortiz 👋 Thanks for the feature request! We will think about it and let you know if it's approved to be implemented or not.

IvanZosimov avatar May 17 '23 14:05 IvanZosimov

Hello, I am wondering why there are no support of OpenJDK at all, not even Early Access? It seems to have proper license -- GPL+classpath extension.

BohdanM-AVISPL avatar Jul 10 '23 15:07 BohdanM-AVISPL

As an alternative, you're invited to use https://github.com/oracle-actions/setup-java to install Early Access releases of the JDK:

steps:
  - name: 'Set up latest JDK EA from jdk.java.net'
    uses: oracle-actions/setup-java@v1
    with:
      website: jdk.java.net
      release: EA

Note that oracle-actions/setup-java does use actions/setup-java to perform the actual installation and configuration.

Related discussion: https://github.com/actions/setup-java/issues/69

sormuras avatar Sep 14 '23 19:09 sormuras

What is the status here?

akurtakov avatar Jul 09 '24 11:07 akurtakov