Java 25 is now available from Java buildpacks
The Paketo Buildpacks team is excited to announce that, after only 3 days since the first Java 25 builds appeared, Java 25 is now an option for your Paketo Buildpacks Java builds.
Check out those release notes!
https://github.com/paketo-buildpacks/java/releases/tag/v18.14.0
https://github.com/paketo-buildpacks/java-native-image/releases/tag/v11.17.0
But even better, try them out now!
First option: force Java to 25 using BP_JVM_VERSION
cd paketo-buildpacks/samples/java/maven
pack config default-builder paketobuildpacks/builder-noble-java-tiny:latest
pack build applications/maven --env BP_JVM_VERSION=25
[...]
[builder] Using Java version 25 from BP_JVM_VERSION
[...]
Second option: set your .sdkmanrc to Java 25
cd paketo-buildpacks/samples/java/maven
sdk install java 25-zulu
sdk use java 25-zulu
sdk env init
cat .sdkmanrc
java=25-zulu
pack config default-builder paketobuildpacks/builder-noble-java-tiny:latest
pack build applications/maven
[...]
[builder] Using Java version 25 extracted from .sdkmanrc
[builder] BellSoft Liberica JDK 25.0.0: Contributing to layer
[builder] Downloading from https://github.com/bell-sw/Liberica/releases/download/25+37/bellsoft-jdk25+37-linux-aarch64.tar.gz
[...]
What about the other JDK / JRE distributions?
At the time of writing: Azul Zulu, Bellsoft Liberica (not NIK yet), Oracle and GraalVM, SAP Machine, Amazon Corretto all got upgraded to support Java 25 (and lost support for Java 24)
…