-
Notifications
You must be signed in to change notification settings - Fork 36
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
Gretty ignoring the JDK set from the Toolchain #261
Comments
I agree, it would be nice to have toolchain support. Do you think you can prepare a patch yourself and do a PR? I would gladly review a patch and help out with a new release. |
I would need to dig into the plugin and it would be my first gradle thing, but I can have a go. It took me a while to figure out that I'm on 4 and not on 3. the documentation is still for version 3 and not 4 so it is a bit strange. |
Cool @mdeinum! This is definitely an opportunity to learn.
In case you get stuck, please ask for help/guidance on Gitter/Matrix (find the link on the front page in the README, labeled "chat on gitter") 👍
Yes, the Gretty docs could improve on that 🙈 |
I believe this issue has been resolved in both 3.x and 4.x thanks to @mr-serjey! |
With Gradle you can specify a Java Toolchain to use a certain JDK. Currenty I'm developing for JDK19, although Gradle itself doesn't run (yet) on JDK 19, I can specify a toolchain to point to Java 19 and have my classes compiled and tested with it.
However when using Gretty to launch tomcat that same JDK isn't honoured and falls back to JDK17. Which ofcourse will lead to issues with class compatiblity.
It would be nice if Gretty would take the selected toolchain into consideration when running the server.
The text was updated successfully, but these errors were encountered: