Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register JDK in locations searched by gradle and other tools #504

Open
mwisnicki opened this issue Jan 11, 2024 · 1 comment
Open

Register JDK in locations searched by gradle and other tools #504

mwisnicki opened this issue Jan 11, 2024 · 1 comment

Comments

@mwisnicki
Copy link

mwisnicki commented Jan 11, 2024

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.

@mwisnicki
Copy link
Author

To test create gradle project with

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(21)
    }
}

where version is higher than your global jdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant