Micronaut Framework 4.9.0 Released!
by Sergio Del Amo CaballeroThe Micronaut Foundation is excited to announce the release of Micronaut framework 4.9.0!
Micronaut Core Improvements
Netty 4.2.2
Micronaut 4.9.0 updates to Netty 4.2. This Netty release changes the default buffer allocator, which may affect application performance.
Event loop Carrier
micronaut-http-server-netty
4.9.0 introduces an experimental mode to run virtual threads on the Netty event loop. This can lead to more predictable performance when migrating from async code to virtual threads. Read “Transitioning to virtual threads using the Micronaut Loom Carrier“.
@ClassImport
@ClassImport
annotation allows to process already compiled classes as if they were ordinary non-compiled classes.
@Mixin
It’s possible to define a Mixin class by annotating it with @Mixin
and specifying which class does it reference.
Mixins only modify the Micronaut annotations metadata model. Original classes are not modified in any way. Mixins are currently supported only in Java.
HTTP/3
If you were using the experimental HTTP/3 support you need to replace the dependency io.netty.incubator:netty-incubator-codec-http3
with io.micronaut:micronaut-http-netty-http3
.
Graceful Shutdown
This release includes a Graceful shutdown API. A graceful shutdown allows you to stop accepting new work and finish in-progress tasks.
Cache Control API
A fluid API CacheControl permits you to populate the HTTP Cache-Control header in an HTTP Response easily.
KSP 2
This release supports KSP 2 (starting from the version 2.0.2) and it’s tested to work with Kotlin 2.
Jakarta Data
Micronaut Data provides implementation support for the Jakarta Data 1.0 specification, allowing developers to leverage Jakarta Data’s standardized approach to data access within Micronaut applications.
Protocol Buffers Json Support
Micronaut gRPC, thanks to a community contribution, adds a new module that adds the ability to send JSON-serialized messages via a POST HTTP 1.1 call.
ProjectGen
Micronaut ProjectGen, a new experimental module, provides an API for generating JVM Projects (Gradle or Maven).
Persistence
- Micronaut SQL updates ojdbc to
23.8.0.25.04
, MariaDB to3.5.3
, and MySQL Connector to9.2.0
, Hikari to6.3.0
, and Tomcat JDBC to11.0.7
. - Micronaut Coherence updates to Coherence
25.03.1
.
Cloud
- Micronaut AWS updates to AWS SDK v1
1.12.787
, and AWS SDK v22.31.66
. - Micronaut Azure updates to Azure Cosmos
4.71.0
, and Azure SDK1.2.35
. Moreover, it adds a new modulemicronaut-azure-tracing
to use Azure Monitor Tracing. - Micronaut GCP updates to Google Auth Library OAuth2 HTTP
1.37.0
, Google Cloud Core2.57.1
, Google Cloud PubSub1.140.1
, and Google Secret Manager2.64.0
. - Micronaut Oracle Cloud updates to OCI SDK
3.67.2
Database Migration
- Micronaut Liquibase updates to Liquibase
4.32.0
.
Reactive Libraries
- Micronaut Reactor updates to Project Reactor bill of materials (BOM)
2024.0.7
.
Security
- Micronaut Security updates to Nimbus JOSE + JWT
10.3
.
Miscellaneous
- Micronaut Langchain4J updates to the first stable release of Langchain4j.
- Micronaut Picocli updates to Picocli 4.7.7
- Micronaut MQTT updates to HiveMQ MQTT Client
1.3.7
. - Micronaut Test updates to JUnit5
5.12.2
, Mockito5.18.0
, and REST-assured 5.5.5. - Micronaut Spring updates to Spring Boot
3.5.0
and Spring6.2.8
. - Micronaut Cache updates to Infinispan
15.2.4.Final
, and Caffeine 3.2.1. - Micronaut logging updates to Logback
1.5.18
and SLF4J 2.0.17. - Micronaut Views updates to Pebble
3.24
, JTE3.2.1
, and JStachio1.3.7
. - Micronaut NATS updates to NATS Java Client
2.21.2
- Micronaut JMS updates to activemq-jakarta to
6.1.6
, and artemis-jakarta-client to2.41.0
. - Micronaut Neo4j updates to Neo4J Java Driver
5.28.5
. - Micronaut Graal Languages updates to GraalPy
24.2.1
. - Micronaut OpenSearch updates to OpenSearch
2.24.0
.
NEXT STEPS
If you haven’t yet updated to Micronaut framework 4, this is an excellent opportunity to do so!
Please feel free to reach out to us if you need any assistance.