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

Support pinning java-version as `"latest"`

Open aep-sunlife opened this issue 9 months ago • 2 comments

Description:

As a developer, I want to create a GitHub Actions job that tests my JVM projects against floating, bleeding edge Java versions. For comparison, workflows for other languages like Go support this with the "latest" version value.

Justification:

Today, I do not see an option to let the Java version automatically target the latest stable Java release version. Which breaks efforts at futureproof testing, with each new major release of Java.

aep-sunlife avatar May 14 '25 19:05 aep-sunlife

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

mahabaleshwars avatar May 15 '25 07:05 mahabaleshwars

Hi @aep-sunlife, thank you for suggesting support for a java-version: latest option. While we recognize the benefits such as futureproofing CI pipelines and aligning with practices in other ecosystems. This feature currently hasn't received enough community interest or engagement.

We'll continue monitoring demand and revisit this in the future if more users indicate a need. In the meantime, we recommend explicitly specifying the desired Java version or using matrix builds to test against multiple versions.

Thanks again for your feedback and contribution!

aparnajyothi-y avatar Aug 11 '25 05:08 aparnajyothi-y