Micronaut Framework 4.10.0 Released!
by Sergio Del Amo CaballeroThe Micronaut Foundation is excited to announce the release of Micronaut framework 4.10.0!
AI
- Micronaut MCP, a new module, enables you to develop Model MCP (Model Context Protocol) servers easily.
- Micronaut Langchain4j updates to LangChain4J 1.5.0 with support for the ChatMemory API.
Micronaut Core
Micronaut Core 4.10.7 enables:
- Modification of class annotations with a Mixin
- It’s possible to introspect all the classes in one package. Create a
package-info.javafile and annotate the package with@Introspected. - Loading resources directly from configuration strings
- New certificate provider configuration for more flexibility and better reloading
- New
ReadBufferAPI to replaceByteBuffer<?> - Netty: Event loop threads are now named default-eventLoopGroup instead of default-nioEventLoopGroup
- Netty: Improved configuration for native transports
- Micronaut HTTP Server Netty: Add an option to disable request decompression (micronaut.server.netty.request-decompression-enabled)
- Micronaut HTTP Server Netty: For the Micronaut loom carrier, the APIs on the OpenJDK loom branch are now supported
Runtimes
- Update to Netty
4.2.7.Final - Micronaut Servlet updates to
Jetty 12.1.1,Tomcat 11.0.11, and Undertow2.3.19.Final.
Security
Micronaut Security adds the ability to proxy .well-known requests to an Auth Server, and it supports the HTTP WWW-Authenticate response header. It enables token validation using the remote authorization server’s UserInfo endpoint.
Validation
Micronaut Validation adds new annotations such as @InEnum, @InList, …
Database Migration
- Micronaut Liquibase updates to Liquibase 4.33.0.
Data and Persistence
- Micronaut Redis updates to Lettuce 6.8.1.RELEASE.
- Micronaut R2DBC updates to
r2dbc-io-asyncer-mysqlto1.4.1, andr2dbc-postgresqlto1.1.0.RELEASE. - Micronaut SQL updates
ojdbcto23.9.0.25.07, MariaDB to3.5.6, and MySQL Connector to9.4.0, Hikari to6.3.3, and Tomcat JDBC to11.0.12.
- Micronaut Neo4j updates to Neo4J
5.28.10.
JSON Schema
- Micronaut JSON Schema adds the
JsonSchemaClassPathResourceLoaderAPI.
Dev & Test
- Micronaut Test updates to JUnit
5.14.0, and Mockito5.20.0. Micronaut test adds a new dependency to detect Netty Leaks. - Micronaut Test Resources adds a Test Resources Provider for Oracle Test Pilot.
- Micronaut Control Panel adds an Object Storage Panel.
Reactive Libraries
- Micronaut Reactor updates to Project Reactor bill of materials (BOM)
2024.0.11. - Micronaut RxJava3 updates to RxJava3
3.1.12
Cloud
- Micronaut Oracle Cloud updates to OCI SDK
3.74.2, and it supports client certificate refresh from the certificate service. - Micronaut Azure updates to Azure Cosmos 4.74.0, and Azure SDK 1.3.0.
- Micronaut GCP updates to Google Auth Library OAuth2 HTTP
1.39.1, Google Cloud Core2.60.0, Google Cloud PubSub1.142.0, and Google Secret Manager2.76.0. - Micronaut Object Storage adds support for pre-signed requests.
Configuration
- Micronaut Logging updates SLF4J
2.0.17, Logback1.5.19to Log4j22.25.2
Messaging
- Micronaut NATS updates to NATS
2.23.0
Analytics
- Micronaut Tracing updates to OpenTelemetry
1.54.1. - Micronaut Micrometer updates to Micrometer 1.15.4.
API
- Micronaut Spring updates to Spring Boot
3.5.6and Spring6.2.11.
Update
- Micronaut OpenRewrite, a new module, with OpenRewrite recipes specific to Micronaut applications.
Misc
- Micronaut Email updates to Jakarta Mail API
2.1.5andangus-mail2.0.5
Gradle Plugins
Update the Micronaut Gradle Plugins version to use the latest version (4.6.0)
Maven Plugins
Core Maven
Micronaut Maven Plugin
Build Plugins
- Exec Maven Plugin 3.6.2
- Maven Compiler Plugin 3.14.1
- Maven Shade Plugin 3.6.1
- Maven Failsafe Plugin 3.5.4
- Maven Surefire Plugin 3.5.4
- GMavenPlus Plugin 4.2.1
- GraalPy Maven Plugin 25.0.0
- OpenRewrite Maven Plugin 6.19.0
Build and Development Tools
GraalVM
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.