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

How to know what distributions are available? #50

Open
martinandersson opened this issue Oct 14, 2023 · 1 comment
Open

How to know what distributions are available? #50

martinandersson opened this issue Oct 14, 2023 · 1 comment

Comments

@martinandersson
Copy link

In settings.gradle:

plugins {
    id('org.gradle.toolchains.foojay-resolver-convention') version('0.7.0')
}

In build.gradle:

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(20)
        vendor = JvmVendorSpec.ORACLE
    }
}

If I swtich the version to 99, the build fails with this message;

Requesting vendor list failed: {"result":[],"message":"Requested version is not released yet."}

How can I know what version is released/available to the plugin?

I would kindly ask to update README.md with this information ❤️

@StefMa
Copy link
Contributor

StefMa commented Nov 13, 2023

This plugin uses the DiscoApi under the hood, as explained in the Readme.
To check all available jdks/distributions there, checkout this url:
https://api.foojay.io/disco/v3.0/distributions?include_versions=true

You have to note the "distribution mapping", also noted in the Readme, to fetch/pick the correct vendor.

Does this help? 🤔

However, it might be useful to add a few sentences about this to the readme.

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

2 participants