Micronaut Framework 4.0.0: What's New for Developers
The Micronaut Foundation has released Micronaut Framework 4.0.0, bringing several updates and improvements for developers. One of the key updates is the support for Apache Groovy 4, Kotlin 1.8, and Java 17 as language baselines. Developers using Kotlin can now build their Micronaut applications with KSP (Kotlin Symbol Processing) while still having the option to use Kapt for Gradle and Maven. The framework also includes support for the latest GraalVM release and has shifted to runtime initialization for GraalVM, ensuring consistency in behavior between JIT and Native applications. Additionally, Micronaut Framework 4 requires Gradle 8 for building applications. Another notable feature introduced in this release is the expression language, which allows developers to put expressions in annotations. The expressions are evaluated at compilation time, making them GraalVM ready. The HTTP layer has also been rewritten to improve performance and reduce reactive stack frames. Other improvements include experimental support for HTTP/3 and io_uring, as well as the addition of annotation-based filters for server and client filters. Overall, Micronaut Framework 4.0.0 brings significant updates and improvements for developers, enhancing the development experience and performance of Micronaut applications.