-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Gradle Model build failure with Java 21 #45279
Comments
/cc @glefloch, @quarkusio/devtools |
Try adding this to
|
You need to have a Java 17 available that is resolvable by the Gradle resolver. Personally, I now use SDKMAN! to manage my JDKs and it seems fine. BTW, let's avoid adding the bug label for things that are not really bugs in the software itself. |
@gsmet So now, anyone who we ask to contribute and who are at newer JDKs must deal with JDK 17 resolution? |
Foojay Toolchains Plugin is an official Gradle plugin that will download the required JDK locally if it is not available. |
Well, feel free to document it if you think it's needed. Keep in mind Java 17 is our base JDK so I wouldn't say that's surprising you need Java 17 around. And while @Eng-Fouad 's suggestion might be practical for user applications, I don't think our build should download random JDKs by itself. |
@gsmet I was able to build Quarkus with Java 21, without this failure. I have Java17 around, in case I need it, but I didn't not have to use any managers. |
@gsmet SDKMan helped, thanks for the hint. @Eng-Fouad Thanks for trying to help, but indeed, I'll stick with SDKMan :-) Thanks |
Describe the bug
I keep getting
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
Java 21
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)Maven version: 3.9.8
Additional information
No response
The text was updated successfully, but these errors were encountered: