-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Toolchain cannot download JDK 18 #20344
Comments
AdoptOpenJDK & Adoptium don't seem to fully support 18 yet, we're going to investigate. |
Adoptium DOES support JDK 18: But looks like AdoptOpenJDK does NOT have JDK 18: Although, this is misleading:
|
In my opinion, we should change to using the Adoptium APIs for everything that we can (8, 11, 17, 18+) and only use AdoptOpenJDK APIs for builds that need it (non-LTS <18). This should be a compatible change. Also note, this is blocking #20276 |
would probably need to add another property for an adoptium alternate base URI in addition to the adoptopenjdk base uri? e.g. org.gradle.jvm.toolchain.install.adoptopenjdk.baseUri=https://mycorp.com/adoptopenjdk/api
org.gradle.jvm.toolchain.install.adoptium.baseUri=https://mycorp.com/adoptium/api |
Hello,
i have setup my project to use toolchains, but Gradle fails to download JDK 18 when running in Github Actions.
This is the error i get:
Expected Behavior
Gradle should be able to download JDK 18.
Current Behavior
Gradle fails to download JDK 18.
Context
I am trying to run tests for my project with Github Actions. Given my project will use JDK 8 and 18 to run tests via the Gradle toolchain feature, i haven't installed any JDK via Github Actions, since Gradle is supposed to be able to download them.
I also use the Gradle build action which can cache the downloaded JDK, so it makes sense to let Gradle download the necessary JDK, keeping my workflow file simpler, and letting Gradle do its magic.
Steps to Reproduce
You can check my repo which is public: https://github.com/gotson/NightMonkeys/tree/ci
Running
gradle build
in an environment that doesn't have an installed JDK 18 will fail.Your Environment
gradle.build file
Github Action run that failed
The text was updated successfully, but these errors were encountered: