Micronaut Framework 5.0, planned for Q2 2026, will require Java 25 as its minimum baseline. This enables the framework to leverage modern Java features including Virtual Threads, Structured Concurrency, Scoped Values, Pattern Matching for switch, Record Patterns, and String Templates. The shift also brings performance improvements from Java 25, faster CI build times by dropping the multi-version test matrix, and updated documentation samples using modern Java syntax. Major cloud providers (AWS Lambda, AWS Elastic Beanstalk, Google Cloud Functions) already support Java 25, with Azure Functions and Oracle Cloud expected to follow. Users who need Java 17 or 21 support can remain on Micronaut Framework 4.x.
Table of contents
Use modern Java featuresCloud vendors ready for Java 25Show modern code in our documentationPerformance improvementsReduce CI build timesA message to the Java communityHow to continue using Java 17 or 21 with the Micronaut Framework?Sort: