Micronaut Framework 4.7.0 Released!
by Sergio Del Amo CaballeroMicronaut Framework 4.7.0 updates the Micronaut Platform BOM (Bill of materials) to the following releases:
Core
Micronaut Core contains multiple improvements. To highlight a few, it improves the HTTP Client implementations, the display of circular dependency errors, adds a new API FilterBodyParser
, the possibility to disable normalization of property keys in @EachProperty
beans, and it adds nicer HTML error pages.
LangChain4J
Micronaut LangChain4J provides integration with Langchain4j.
For example, Micronaut LangChain4J makes easy to inject your favourite language model in your Micronaut beans:
import dev.langchain4j.model.chat.ChatLanguageModel;
import jakarta.inject.Singleton;
@Singleton
class DefaultJokeGenerator implements JokeGenerator {
private final ChatLanguageModel model;
DefaultJokeGenerator(ChatLanguageModel model) {
this.model = model;
}
@Override
public String generateJoke() {
return model.generate("Tell me a joke about Java?");
}
}
GraalPy
Micronaut Graal Languages is a collection of components for integration of Graal based dynamic languages with Micronaut Framework.
With Micronaut GraalPy eases exposing Python modules as Java Beans within a Micronaut application. We published two guides:
- Creating your first Micronaut Graalpy Application
- Creating a Micronaut Graalpy application using a python package
Build Plugins
There are new versions of both Maven 4.7.1
, and Gradle 4.4.4
Plugins.
Micronaut Security
Micronaut Security adds a new module, Micronaut Security Cross-Site Request Forgery (CSRF) to help you protect your applications against CSRF attacks. CSRF protection is integrated also in Micronaut Views with a CSRF Token View Model Processor, and CSRF hidden field in form generation.
Micrometer
Micronaut Micrometer updates to Micrometer 1.13.6 and it adds new module for Prometheus PushGateway.
Cloud
- Micronaut AWS updates to AWS lambda Events 3.14.0, AWS SDK v1 1.12.777, and AWS SDK v2 2.29.11.
- Micronaut Azure updates to Azure Cosmos 4.64.0, and Azure SDK 1.2.29.
- Micronaut GCP updates to Google Auth Library OAuth2 HTTP 1.29.0, Google Cloud Core 2.47.0, Google Cloud PubSub 1.134.1, and Google Secret Manager 2.53.0.
- Micronaut Oracle Cloud updates to OCI SDK
3.53.0
. - Micronaut Tracing adds the module Micronaut Tracing OpenTelemetry JDBC to create span objects on the every JDBC query, and it updates to OpenTelemetry BOM 1.43.0.
Analytics
- Micronaut ElasticSearch updates to ElasticSearch 8.15.3.
- Micronaut OpenSearch updates to OpenSearch 2.16.0.
Persistence
- Micronaut OpenAPI keeps getting better and better thanks to community contribution.
- Micronaut Data contains multiple improvements. Among others, it includes improvements to pagination and Criteria.
- Micronaut SQL updates
ojdbc
to23.5.0.24.07
, MariaDB to3.5.0
, and MySQL Connector to9.1.0
, Hikari to6.0.0
, and Tomcat JDBC to11.0.1
. Moreover, it is now possible to disable individual datasources both in JPA and JDBC. - Micronaut R2DBC updates to
r2dbc-io-asyncer-mysql
to1.3.0
,r2dbc-mariadb
to1.3.0
, andr2dbc-postgresql
to1.0.7.RELEASE
. - Micronaut MongoDB updates to Mongo Java Driver
4.11.4
.
Database Migration
- Micronaut Flyway updates to Flyway 10.21.0.Final.
Reactive Libraries
- Micronaut reactor updates to Project Reactor bill of materials (BOM)
2023.0.12
.
Misc
- Micronaut Test updates to JUnit5
5.11.3
, and Mockito5.14.2
. - Micronaut Servlet updates to Undertow
2.3.18
, Apache Tomcat10.1.31
, and Jetty11.0.24
. - Micronaut Kubernetes adds a new module
micronaut-kubernetes-client-openapi
. - Micronaut Object Storage adds a new API StreamingFileUploadRequest.
- Micronaut Spring updates to Spring Boot
3.3.5
and Spring6.1.14
. - Micronaut Kafka updates to Apache Kafka
3.8.1
. - Micronaut Neo4J updates to Neo4J Java Driver
5.26.1
. - Micronaut NATS updates to NATS Java Client
2.20.4
. - Micronaut GraphQL updates to GraphQL 22.3, and GraphQL Java Tools 14.0.0.
- Micronaut Multi-tenancy adds support for Tenancy Binding.
- Micronaut JMS updates to
activemq-jakarta
to6.1.3
, andartemis-jakarta-client
to2.38.0
. - Micronaut Pulsar updates to Pulsar Client 3.3.2
- Micronaut gRPC updates to gRPC 1.68.1
- Micronaut Logging updates to Logback 1.5.12
- Micronaut Cache updates to Infinispan 15.0.10.Final.
- Micronaut Email updates to SendGrid 4.10.3.
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.