Register JDK in locations searched by gradle and other tools

Open
#504 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java, powershell

Research direction

Start by reviewing the Scoop Java manifests and how installed JDK paths are exposed to tools such as Gradle. Compare the proposed ~/.jdks symlink layout with the alternative ~/.m2/toolchains.xml approach, then verify that installed JDKs are discoverable through the intended mechanism.

Written by the indexing model from the issue text.

Description

It would be nice if gradle and other Java tools could find JDKs installed by scoop.

The easiest solution is to link them under ~/.jdks/ where Intellij is normally installing them.

e.g. ln -s ~/scoop/apps/openjdk21/21.0.1-12 ~/.jdks/openjdk-21.0.1

Another much more complicated option would to to register them in ~/.m2/toolchains.xml.

Dominant language
PowerShell
Stars
314
Forks
111
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ScoopInstaller/Java

All issues in ScoopInstaller/Java

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.