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

Add images with both Java 17 and 21 #265

Closed
wants to merge 1 commit into from
Closed

Conversation

keeganwitt
Copy link
Owner

@keeganwitt keeganwitt commented Oct 11, 2023

Copying ideas from #248 to create an image with both Java 17 and 21 to work around the fact Gradle doesn't support Java 21 yet.

The latest (8.4) release notes say

Gradle now supports using Java 21 for compiling, testing, and starting other Java programs. This can be accomplished by configuring your build or task to use a Java 21 toolchain.

You cannot currently run Gradle on Java 21 because Kotlin lacks support for JDK 21. However, you can expect support for running Gradle with Java 21 in a future version.

They also note this in their compatibility guide. This is why Java 21 images aren't published to Docker Hub.

@keeganwitt keeganwitt mentioned this pull request Oct 11, 2023
@keeganwitt keeganwitt force-pushed the java-17-and-21 branch 2 times, most recently from 518cbbc to 6917795 Compare October 12, 2023 02:23
@keeganwitt
Copy link
Owner Author

Java 21 is supported by Gradle 8.5 and later.

@keeganwitt keeganwitt deleted the java-17-and-21 branch April 3, 2024 16:12
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

Successfully merging this pull request may close these issues.

None yet

1 participant