-
Notifications
You must be signed in to change notification settings - Fork 74
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
Java 21 Image #260
Comments
Hi Do you have any updates/ETA for this issue? JDK 21 was released 3 weeks ago. Gradle 8.4 was released 5 days ago. However Dockerfile here still uses JDK 20. |
All I know about it is here: adoptium/containers#427. I can't release it until they do. |
They released the images for 21 today. But another problem: Gradle doesn't support it yet. Similar to the issue we had with Java 20 (#247). |
I'll merge the new images, but they won't be published until Gradle announces support for Java 21. Please reply to this thread if you require an image that has both Java 17 (for launching Gradle) and Java 21 for use in compilation via a toolchain. |
#265 creates images with both Java 17 and 21. If that's needed by anyone, let me know. This is a bit better situation than what we had with Java 20 because at least both versions are LTS releases. |
It would be cool to have this image :) |
For me as well. Gradle already claimed support for JDK 21 (if you use Gradle 8.4 and Groovy scripts). |
So is JDK 21 fully supported for using build.gradle groovy setup? |
Not that I've seen. If someone can point to somewhere Gradle has stated this, I'll publish the 21 images. |
Here's notes from 8.4 official release:
So I couldn't find anything about impossibility to build apps using Groovy scripts. |
I thought it meant because Gradle itself depends on Kotlin, they aren't able to make Gradle itself support Java 21 until Kotlin does. At least that seemed to be the consensus in the issue about Java 20. But looking at gradle/gradle#25777, it looks like they just bumped the asm version and I don't understand why that alone would break the ability to run Gradle on a newer JVM. Edit: gradle/gradle#25574 (comment) confirms from a Gradle employee that as long as you're not using Kotlin build scripts, it's supposed to work.
|
So will you push new Docker image ? |
I'm doing some experimenting first. Gradle has stated that Kotlin scripts don't work with 21, but in my testing, it has worked. So, I'm confused what the limitations actually are. |
Here's the Java 21 Gradle issue: gradle/gradle#25574 |
Ah, it's usages of the kotlin-dsl plugin that don't work, as demonstrated in #266. I think as long as we document clearly what the limitations are, it's OK to publish the 21 images. |
Official images PR: docker-library/official-images#15537 |
@keeganwitt Thank you a lot |
No description provided.
The text was updated successfully, but these errors were encountered: