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

Support Temurin JMOD distribution

Open koppor opened this issue 10 months ago • 3 comments

Description:

From JDK24 onwards, Temurin's default distribution does not ship JMODs any more: https://github.com/adoptium/adoptium-support/issues/1271

They are going to provide another download for it: https://github.com/adoptium/adoptium-support/issues/1271#issuecomment-2809696132

There should be an additional option jmod: true/false in the configuration at https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#Eclipse-Temurin

Justification:

Some users want to have JMODs and use Temurin.

Are you willing to submit a PR?

Unfortunately, I have no resources for this.

koppor avatar Apr 25 '25 13:04 koppor

Hi @koppor, Thank you for creating this feature request. We will investigate it and provide feedback as soon as we have some updates.

gowridurgad avatar Apr 28 '25 02:04 gowridurgad

This is a problem now for normal builds. At least for 25-ea the jmod package is download by default instead of the JDK.

See this build log where it cannot find a java command anymore because it downloads:

https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25%2B21-ea-beta/OpenJDK-jmods_x64_linux_hotspot_25_21-ea.tar.gz

instead of

https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25%2B21-ea-beta/OpenJDK-jdk_x64_linux_hotspot_25_21-ea.tar.gz

The previous build with jdk-25+20 worked fine and we didn't change anything on our side.

Update 12th August 2025: seems to work fine again and uses currently 25.0.0-ea.35.0.ea

karussell avatar May 09 '25 08:05 karussell

@karussell I am experiencing the same issue in the last ~24 hours

ilgrosso avatar May 09 '25 12:05 ilgrosso