Micronaut Framework 5.1.0 Released!
The Micronaut Foundation is excited to announce the release of Micronaut framework 5.1.0! If you haven’t yet updated to Micronaut Framework 5, this is an excellent opportunity to do so!
What’s new in Micronaut 5.1.0
Micronaut Core (5.0.7 → 5.1.10)
Adds explicit @Introspected.Property, sequenced-collection injection, CDI integration hooks, KSP traversal of Kotlin inner classes, configuration-based logger levels, and per-service client SSL enabled by default. It also fixes request-bean binding, Jackson/introspection properties, AOP proxies, factory beans, and suspend-function type aliases.
Open DI
Micronaut 5.1 makes the release of Open DI 1.0.0 possible.
ODI is a CDI Lite implementation backed by Micronaut’s compile-time dependency injection infrastructure.
ODI runtime uses CDI APIs while the build uses an annotation processor to generate Micronaut bean definitions and proxy classes. Applications keep the ODI processor on the annotation processor path and run with the ODI CDI runtime plus the Jakarta CDI API.
Data Access
Micronaut Data (5.0.6 → 5.1.1)
Adds SQLite dialect support, value-based ETags for optimistic locking, Jakarta JPA metamodel generation, and fixes escaped column names in runtime SQL sorting.
Micronaut SQL / JDBC (7.0.2 → 7.1.0)
Adds a MyBatis integration.
Micronaut Coherence (6.0.0 → 7.0.1)
Updates Oracle Coherence to 26.04.
Micronaut EclipseStore (2.0.0 → 2.1.0)
Updates Eclipse Store to 4.1.0.
Micronaut MongoDB (6.0.1 → 6.1.0)
Updates the MongoDB Java Driver to 5.9.1.
Micronaut Neo4j (8.0.0 → 8.1.0)
Updates the Neo4j Java Driver to 6.2.0.
Micronaut R2DBC (7.0.2 → 7.1.0)
Updates R2DBC MySQL to 1.0.5.RELEASE, MariaDB to 1.4.1, and PostgreSQL to 1.1.2.
Micronaut Redis (7.0.0 → 7.1.0)
Updates Lettuce to 7.6.0.RELEASE.
AI
Micronaut LangChain4j (2.0.1 → 2.2.0)
Adds Oracle chat-memory auto-configuration, Chroma embedding-store support, AI-service guardrails resolved from Micronaut beans, evaluation testing, agentic support, and injected Google credentials for Vertex AI.
Micronaut MCP (1.0.0 → 2.0.0)
Updates the MCP Java SDK to 2.0.0.
Cloud
Micronaut AWS (5.0.2 → 5.1.0)
Adds AWS CRT and Apache HttpClient 5 support for AWS SDK v2, fixes Lambda embedded-server startup and payload handling, and updates AWS SDK v2 to 2.48.3.
Micronaut Azure (6.0.0 → 6.1.0)
Updates Azure SDK to 1.3.7 and Azure Cosmos to 4.81.0.
Micronaut GCP (6.0.0 → 6.1.0)
Updates google-cloud-pubsub to 1.152.0, google-cloud-secretmanager to 2.94.0, google-cloud-core to 2.72.0, and Google OAuth2 HTTP to 1.49.0.
Micronaut Oracle Cloud (6.0.3 → 6.1.3)
Updates to OCI SDK 3.91.0.
Micronaut Kubernetes (8.0.0 → 9.0.0)
Updates the Kubernetes Java Client to 27.0.0.
Tracing (8.0.0 → 8.2.0)
Updates OpenTelemetry to 1.64.0 and adds Oracle UCP telemetry support.
Micronaut Object Storage (3.0.0 → 3.1.0)
Adds a storage-metadata persistence SPI, InputStream uploads, deterministic local-storage ETags, multipart lifecycle support for S3 and OCI, and local multipart uploads.
Languages
Micronaut Kotlin (5.0.0 → 5.1.0)
Updates Ktor to 3.5.1.
Messaging
Micronaut JMS updates ActiveMQ Jakarta to 6.2.7 and Artemis Jakarta Client to 2.55.0. Micronaut Kafka updates Apache Kafka to 4.3.1 and adds non-blocking retry topics, a consumer-record interception hook, and the ability to stop listeners after retries are exhausted. Micronaut MQTT updates HiveMQ MQTT client to 1.3.17; Micronaut NATS updates the NATS Java Client to 2.26.0; Micronaut Pulsar updates Apache Pulsar to 4.2.3; and Micronaut RabbitMQ updates its Java client to 5.34.0, fixes publisher completion blocking consumers, and fails channel initialization when resources are locked.
Miscellaneous
Micronaut Cache updates Infinispan to 16.2.1 and Hazelcast to 5.7.0. Micronaut Email adds Mailpit integration. Micronaut Security adds an OWASP HTML Sanitizer module, @RunAs authentication delegation, OIDC locale resolution, optional OpenID metadata fetching, authentication mapping, and normalized trailing slashes for intercept-URL rules. Micronaut Reactor updates to Project Reactor 2025.0.6, and Micronaut Views adds Jinjava as a template-rendering option.
Database Migration, Dev & Test, and APIs
Micronaut Flyway receives dependency and Micronaut alignment; Micronaut Liquibase updates Flyway to 2.6.2. Micronaut Test updates JUnit, Kotest, MockK, and REST Assured, while Test Resources adds Floci support. Control Panel expands Kafka support and improves safety when optional implementations are absent. Validation adds a URL validation annotation.
Micronaut GraphQL adds multipart and Apollo-style batched requests; Micronaut gRPC updates gRPC Java to 1.82.22; JSON Schema honors @JsonProperty on enum constants; OpenAPI adds opt-in $dynamicAnchor and $dynamicRef generation and upgrades OpenAPI Generator to 7.24.0; Serialization adds JSON-B/JSON-P compliance and more annotation support; Servlet updates Jetty, Undertow, and Tomcat; and Spring updates Spring Framework to 7.0.8 and Spring Boot to 4.1.0.
Micronaut Elasticsearch updates the Elasticsearch Java Client to 9.4.3, OpenSearch updates its Java client to 3.9.0, TOML adds TOML 1.1 parsing, Logging updates SLF4J, Logback, and Log4j 2, and SourceGen fixes switch-expression ordering so generated code preserves the caller correctly.