Support Scoop installed JDK discovery on Windows #29121
Labels
a:feature
A new functionality
in:toolchains
Java Toolchains
👋 team-triage
Issues that need to be triaged by a specific team
Expected Behavior
Gradle should detect JDKs installed by Scoop (GitHub).
Scoop is a popular (20k+ stars) installer on Windows for command-line, non MSI installers similar to SDKMAN!, asdf and jabba that are already installed.
Through the Java bucket scoop can manage the install of many different JVM versions and distributions
Current Behavior (optional)
Currently Gradle does not detect the installation location of JDKs installed with scoop, unless invoked or if JAVA_HOME points to one of the installs. Builds may fail if they can't detect correctly installed required JVM versions.
Context
Scoop installs apps in self-contained folders, generally under
%USERPROFILE%/scoop/apps
Each combination of JVM version (8, 11, 17, etc) and distribution (Temurin, Corretto) has it's own folder e.g
temurin21-jdk
.With each folder there is a symlink of
current
that links to the latest installed version of that JVM within the folder.Also see ScoopInstaller/Java#504
The text was updated successfully, but these errors were encountered: