What's Changed
- Use Java 21 runtime in
hyperledger/fabric-javaenv
Docker image by @bestbeforetoday in #364
Migration considerations
The hyperledger/fabric-javaenv
Docker image version 2.5.5 (and later) now uses a Java 21 runtime. Java smart contracts deployed to containers based on that image (which is the case with the Fabric v2.5 and v3.0 default chaincode builder) must now use Gradle wrappers at version 8.5 or later, since that version of Gradle added support for execution using Java 21.
The fabric-chaincode-shim
library is now compiled with Java 11 as the bytecode target. While Java 11 has been documented as the minimum supported Java level since v2.1, Java 8 continued to be used as the compile target until v2.5.4, meaning that chaincode compiled for Java 8 continued to work. Chaincode must now be compiled for Java 11 (or later) for compatibility with fabric-chaincode-shim
.
Full Changelog: v2.5.4...v2.5.5