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

Use Java 21 #175

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Use Java 21 #175

merged 1 commit into from
Nov 26, 2024

Conversation

bestbeforetoday
Copy link
Contributor

Using Java 21 as the runtime allows chaincode developers to exploit newer Java features, and provides JVM performance improvements. Java 11 is no longer supported by RedHat and public support from other vendors ends in 2027.

I aim to (and have tested) fabric-chaincode-java with Java 21, so this change will match the forthcoming target Java runtime for the chaincode container. Chaincode written for Java 11 and later is still fully supported. The only caveat is that Java chaincode that package a Gradle wrapper with the chaincode must now use Gradle 8.5 or later, since that Gradle version added support for execution with Java 21. Gradle 8.5 was released in November 2023.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review November 24, 2024 23:16
@denyeart denyeart merged commit 7baf56c into hyperledger-labs:main Nov 26, 2024
5 checks passed
@bestbeforetoday bestbeforetoday deleted the java21 branch November 26, 2024 07:58
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.

2 participants