You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Input property that would configure if the JDK should be configured as default or not #560
I use oracle-actions/setup-java to fetch Java EA (e.g. Java 22). I do not want Java 22 to be set as default since it would fail the build (e.g. Gradle does not yet support running with Java 22).
I need Java 22 for tests only, so I want Java 22 to be present, however, I would like to keep JAVA_HOME untouched.
@IvanZosimov I would be very interested in this feature too. I have been working on supporting Java for GitHub Actions for quite a while and my Java actions require a JDK but... I don't want this JDK to taint the JDK that is installed for running the job.
Thus having the option to tell setup-java to not alter the default would be awesome.
Reacted by Max Rydahl Andersen, Cat Core and Bruno Borges
Activity
IvanZosimov commentedon Nov 27, 2023
Hi, @vlsi 👋 Thanks for the feature request! We will take a look and let you know about our decision.
gsmet commentedon Jan 21, 2025
@IvanZosimov I would be very interested in this feature too. I have been working on supporting Java for GitHub Actions for quite a while and my Java actions require a JDK but... I don't want this JDK to taint the JDK that is installed for running the job.
Thus having the option to tell
setup-javato not alter the default would be awesome.gsmet commentedon Jun 15, 2026
I created: #1017
Add set-default option
feat: Add set-default option (actions#1017)