Releases: micronaut-projects/micronaut-platform
Micronaut Platform 4.7.1
Micronaut Platform 4.7.0
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.
Micronaut Platform 4.6.3
Micronaut Platform 4.6.2
Micronaut Platform 4.6.1
Micronaut Platform 4.6.0
This release updates the Micronaut Platform BOM (Bill of materials) to the following releases:
- Micronaut Core 4.6.2. Micronaut Core 4.6.x reintroduces the build-time initialization of the metadata built at compilation.
Runtimes
- Micronaut Servlet 4.10.1 updates to
Tomcat10.1.28
, Undertow2.3.15
and Servlet API6.1.0
. - Micronaut CRaC 2.4.0 updates to CRaC 1.5.0.
- Micronaut Chabots 1.2.0
- Micronaut Picocli 5.5.0
Dev & Tests
- Micronaut Test 4.5.0 updates to Hamcrest 3.0, JUnit5 5.11.0, and Mockk v1.13.12.
- Micronaut Test Resources 2.5.4
- Micronaut Control Panel 1.5.0
Validation
Reactive Libraries
- Micronaut Reactor 3.5.0 updates to Project Reactor BOM 2023.0.9.
- Micronaut RxJava2 2.5.0
- Micronaut RXJava3 3.5.0 updates to RxJava 3.1.9.
Cloud
- Micronaut AWS 4.7.1 adds support for AWS Lambda Function v2 and it updates to Lambda Java Runtime Interaface client
2.6.0
, AWS lambda1.2.3
, AWS lambda Events3.13.0
, AWS SDK v11.12.770
, and AWS SDK v22.27.11
. - Micronaut Azure 5.7.1 adds support for Azure Logging.
- Micronaut Oracle Cloud 4.2.0 updates to OCI SDK
3.47.0
. - Micronaut GCP 5.7.1 updates to Google Auth Library OAuth2 HTTP
1.24.1
, Google functions framework API1.1.0
, Google function invoker1.3.1
, Google Cloud Core2.42.0
, Google Cloud PubSub1.132.1
, and Google Secret Manager2.47.0
. - Micronaut Pulsar 2.4.0 updates to Pulsar 3.3.1.
- Micronaut Object Storage 2.6.0
- Micronaut Tracing updates to OpenTelemetry BOM
1.40.0
, GCP Open-Telemetry Operations Exporters for Java0.31.0
, OpenTelemetry AWS Resource Support & AWS X-Ray Propagator1.37.0
, OpenTelemetry Instrumentation for Java1.33.5
, and OpenTelemetry Semantic Conventions for Java1.26.0
. - Micronaut Discovery Client
4.4.0
Database Migration Libraries
- Micronaut Flyway 7.4.0 updates to Flyway to v10.17.1.
- Micronaut Liquibase 6.5.0 updates to Liquibase 4.29.1.
Persistence
- Micronaut SQL 5.8.1 changes the way to disable datasources, and it updates to Vertx
4.5.9
, mariadb-java-client3.4.1
, ojdbc21.15.0.0
, h22.3.232
, jOOQ3.19.11
, Tomcat JDBC10.1.28
, mssql-jdbc12.8.0.jre11
, and JDBI3.45.3
. - Micronaut Data 4.9.0 contains improvements to the criteria API expressions.
- Micronaut EclipseStore
1.7.0
adds Azure blob storage support. - Micronaut Microstream
2.6.0
- Micronaut Mongo
5.4.0
updates to MongoDB Java Driver4.11.3
. - Micronaut R2DBC
5.6.1
updates to R2DBC MariaDB1.2
. - Micronaut Redis
6.6.0
- Micronaut Cassandra
6.5.0
- Micronaut Neo4j
6.7.0
updates to Neo4J5.23.0
.
Programming Languages
- Micronaut Groovy
4.4.0
- Micronaut Kotlin
4.4.0
updates to Ktor2.3.12
.
Messaging
- Micronaut Kafka
5.6.0
- Micronaut MQTT
3.4.0
- Micronaut RabbitMQ
4.5.0
- Micronaut JMS
4.0.0
updating fromjavax
tojakarta
. This upgrade is a breaking change. It aligns the JMS module with the rest of the framework, which transitioned tojakarta
in the 4.0.0 release. - Micronaut NATS 4.5.0 updates to NATS Java Client to
2.20.1
.
Build
- Micronaut Sourcegen
1.3.1
- Micronaut AOT
2.5.0
contains improvements to logback optimizations. - Micronaut JSON Schema
1.2.0
updates to JSON Schema Validator1.5.1
.
Analytics
- Micronaut ElasticSearch
5.6.0
updates to ElasticSearch8.15.0
. - Micronaut OpenSearch updates to OpenSearch
2.13.0
. - Micronaut JMX 4.4.0
- Micronaut Micrometer
5.8.0
updates to Micrometer1.13
.
Errors
Configuration
- Micronaut Logging
1.4.0
updates to SLF4J 2.0.16, and Logback 1.5.7. - Micronaut TOML
2.4.0
Serialization
API
- [Micronaut JAX-RS
4.6.0
](https://...
v4.5.1
What's Changed
Other Changes 💡
- fix(deps): update dependency org.apache.maven:maven-core to v3.9.8 by @renovate in #1547
- fix(deps): update dependency com.github.spotbugs:spotbugs-annotations to v4.8.6 by @renovate in #1548
- fix(deps): update dependency io.micronaut.gcp:micronaut-gcp-bom to v5.6.1 by @renovate in #1552
- fix(deps): update dependency io.micronaut.oraclecloud:micronaut-oraclecloud-bom to v4.1.1 by @renovate in #1556
- fix(deps): update dependency org.apache.maven.plugins:maven-jar-plugin to v3.4.2 by @renovate in #1555
- fix(deps): update dependency io.micronaut.servlet:micronaut-servlet-bom to v4.9.2 by @renovate in #1554
- fix(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.0 by @renovate in #1546
- fix(deps): update dependency org.apache.maven.plugins:maven-failsafe-plugin to v3.3.0 by @renovate in #1545
- fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom to v2.10.2 by @renovate in #1553
- fix(deps): update dependency org.projectlombok:lombok to v1.18.34 by @renovate in #1559
- fix(deps): update dependency io.micronaut.beanvalidation:micronaut-hibernate-validator-bom to v4.4.0 by @renovate in #1558
- fix(deps): update dependency org.junit:junit-bom to v5.10.3 by @renovate in #1557
- fix(deps): update dependency io.micronaut.validation:micronaut-validation-bom to v4.6.1 by @renovate in #1565
- fix(deps): update dependency io.micronaut.data:micronaut-data-bom to v4.8.3 by @renovate in #1562
- fix(deps): update dependency com.microsoft.azure:azure-functions-maven-plugin to v1.36.0 by @renovate in #1561
- fix(deps): update dependency io.micronaut.testresources:micronaut-test-resources-bom to v2.5.4 by @renovate in #1571
- fix(deps): update dependency io.micronaut.reactor:micronaut-reactor-bom to v3.4.1 by @renovate in #1576
- fix(deps): update dependency io.micronaut.data:micronaut-data-bom to v4.8.4 by @renovate in #1574
- fix(deps): update dependency org.apache.maven.plugins:maven-surefire-plugin to v3.3.1 by @renovate in #1569
- fix(deps): update dependency org.apache.maven.plugins:maven-failsafe-plugin to v3.3.1 by @renovate in #1568
- fix(deps): update dependency io.micronaut.test:micronaut-test-bom to v4.4.0 by @renovate in #1578
- fix(deps): update dependency io.micronaut.views:micronaut-views-bom to v5.4.1 by @renovate in #1581
- fix(deps): update dependency io.micronaut.security:micronaut-security-bom to v4.9.1 by @renovate in #1580
- fix(deps): update dependency io.micronaut.openapi:micronaut-openapi-bom to v6.11.1 by @renovate in #1579
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.5.4 by @renovate in #1582
- fix(deps): align graalvm versions with micronaut-core by @auke- in #1567
- fix(deps): update dependency io.micronaut.sourcegen:micronaut-sourcegen-bom to v1.1.1 by @renovate in #1584
- fix(deps): update dependency io.micronaut.micrometer:micronaut-micrometer-bom to v5.7.1 by @renovate in #1583
- fix(deps): update dependency org.graalvm.sdk:graal-sdk to v23.1.4 by @renovate in #1577
- fix(deps): update dependency org.graalvm.nativeimage:svm to v23.1.4 by @renovate in #1575
New Contributors
Full Changelog: v4.5.0...v4.5.1
v4.5.0
What's Changed
Enhancements to Existing Modules
Micronaut Core
- NIO domain socket support micronaut-projects/micronaut-core#10852
- New request body API micronaut-projects/micronaut-core#10781
Micronaut Data
The big features in Micronaut Data for this release are multi-tenancy via discriminator (partition key) and cursor based pagination.
- Support
@IdClass
and multiple@Id
by @dstepanov in micronaut-projects/micronaut-data#2871 - Support discriminator multitenancy by @dstepanov in micronaut-projects/micronaut-data#2876
- Initial addition of cursored pagination for SQL by @andriy-dmytruk in micronaut-projects/micronaut-data#2884
Micronaut Servlet
Micronaut Servlet features several new enhancements:
- Support configuring minThreads and maxThreads micronaut-projects/micronaut-servlet#722
- Support Virtual Threads in Jetty & Tomcat micronaut-projects/micronaut-servlet#701
- Make servlet more flexible / support servlet annotations micronaut-projects/micronaut-servlet#702
- Support for http/2 over plaintext for Jetty & Tomcat micronaut-projects/micronaut-servlet#706
- Support MessageBodyReader/Writer abstraction in Servlet micronaut-projects/micronaut-servlet#707
- Attribute binders for ServletConfig/ServletContext micronaut-projects/micronaut-servlet#708
- allow registering other servlet container initializers micronaut-projects/micronaut-servlet#711
- Support management port in servlet micronaut-projects/micronaut-servlet#712
- Support for access log for each servlet server implementation micronaut-projects/micronaut-servlet#713
Micronaut Micrometer
Micronaut 4.5 includes several useful community contributions to the Micrometer module:
- Build more tags using method context by @hrothwell in micronaut-projects/micronaut-micrometer#753
- Add micronaut-micrometer-registry-otlp binding for micrometer-registry-otlp by @cltnschlosser in micronaut-projects/micronaut-micrometer#729
- Adding support for histograms by @lcavadas in micronaut-projects/micronaut-micrometer#740
New Modules
Micronaut JSON Schema
A new module is available for generating JSON schema definitions from classes at build time.
Micronaut SourceGen
A new SourceGen module is available for writing source generators, generating Builder classes and generating Wither classes. The goal is to provide a long term replacement for Lombok and simplify the ability to write new source generators with the framework.
Micronaut Guice
A new Guice module is available that allows the import of existing Guice modules, simplifying migration to Micronaut for Guice users.
New Features 🎉
- Adds Guice, JSON Schema and SourceGen modules by @graemerocher in #1481
Dependency updates 🚀
- views 5.3.0 by @sdelamo in #1453
- fix(deps): update dependency org.graalvm.buildtools:native-maven-plugin to v0.10.2 by @renovate in #1468
- fix(deps): update dependency io.micronaut.security:micronaut-security-bom to v4.8.0 by @renovate in #1480
- fix(deps): update dependency io.micronaut.sql:micronaut-sql-bom to v5.7.0 by @renovate in #1483
- fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom to v2.10.0 by @renovate in #1482
- fix(deps): update dependency io.micronaut.openapi:micronaut-openapi-bom to v6.10.0 by @renovate in #1484
- fix(deps): update dependency io.micronaut.views:micronaut-views-bom to v5.4.0 by @renovate in #1485
- fix(deps): update dependency io.micronaut.spring:micronaut-spring-bom to v5.7.0 by @renovate in #1486
- fix(deps): update dependency org.apache.maven.plugins:maven-enforcer-plugin to v3.5.0 by @renovate in #1487
- fix(deps): update dependency io.micronaut.r2dbc:micronaut-r2dbc-bom to v5.5.0 by @renovate in #1489
- fix(deps): update dependency io.micronaut.data:micronaut-data-bom to v4.8.0 by @renovate in #1488
- fix(deps): update dependency io.micronaut.neo4j:micronaut-neo4j-bom to v6.6.0 by @renovate in #1490
- fix(deps): update dependency io.micronaut.opensearch:micronaut-opensearch-bom to v1.1.0 by @renovate in #1491
- fix(deps): update dependency com.google.cloud.tools:jib-maven-plugin to v3.4.3 by @renovate in #1492
- fix(deps): update dependency io.micronaut.problem:micronaut-problem-json-bom to v3.4.0 by @renovate in #1493
- fix(deps): update dependency io.micronaut.liquibase:micronaut-liquibase-bom to v6.4.0 by @renovate in #1496
- fix(deps): update dependency io.micronaut.tracing:micronaut-tracing-bom to v6.6.0 by @renovate in #1494
- fix(deps): update dependency io.micronaut.sourcegen:micronaut-sourcegen-bom to v1.1.0 by @renovate in #1500
- fix(deps): update dependency io.micronaut.kafka:micronaut-kafka-bom to v5.5.0 by @renovate in #1499
- fix(deps): update dependency io.micronaut.flyway:micronaut-flyway-bom to v7.3.0 by @renovate in #1498
- fix(deps): update dependency org.apache.maven.plugins:maven-shade-plugin to v3.6.0 by @renovate in #1501
- fix(deps): update dependency com.microsoft.azure:azure-functions-maven-plugin to v1.35.0 by @renovate in #1497
- fix(deps): update dependency io.micronaut:micronaut-core-bom to v4.5.1 by @renovate in #1502
- fix(deps): update dependency io.micronaut.serde:micronaut-serde-bom to v2.10.1 by @renovate in #1503
- fix(deps): update dependency io.micronaut.graphql:micronaut-graphql-bom to v4.4.0 by @renovate in #1504
- fix(deps): update dependency io.micronaut.validation:micronaut-validation-bom to v4.6.0 by @renovate in #1508
- fix(deps): update dependency io.micronaut.security:micronaut-security-bom to v4.9.0 by @renovate in #1507
- fix(deps): update dependency io.micronaut.picocli:micronaut-picocli-bom to v5.4.0 by @renovate in #1506
- fix(deps): update dependency io.micronaut.jaxrs:micronaut-jaxrs-bom to v4.5.0 by @renovate in #1505
- chore(deps): update dependency gradle to v8.8 by @renovate in #1509
- fix(deps): update dependency io.micronaut.servlet:micronaut-servlet-bom to v4.9.0 by @renovate in #1511
- fix(deps): update dependency io.micronaut.openapi:micronaut-openapi-bom to v6.11.0 by @renovate in #1510
- chore(deps): update dependency gradle to v8.8 by @renovate in #1513
- fix(deps): update dependency io.micronaut.eclipsestore:micronaut-eclipsestore-bom to v1.5.0 by @renovate in #1515
- fix(deps): update dependency io.micronaut.grpc:micronaut-grpc-bom to v4.5.0 by @renovate in #1516
- fix(deps): update dependency io.micronaut.aws:micronaut-aws-bom to v4.6.0 by @renovate in #1518
- chore(deps): update dependency gradle to v8.8 by @renovate in #1517
- fix(deps): update dependency io.micronaut.controlpanel:micronaut-control-panel-bom to v1.4.0 by @renovate in #1520
- fix(deps): update dependency io.micronaut.data:micronaut-data-bom to v4.8.1 by @renovate in #1519
- fix(deps): update dependency io.micronaut.nats:micronaut-nat...
Micronaut Platform 4.4.3
Micronaut Platform 4.4.2
What's Changed
Dependency Upgrades 🚀
Micronaut Modules
Maven
fix(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3.1.2 (#1455)
fix(deps): update dependency org.apache.maven.plugins:maven-install-plugin to v3.1.2 (#1456)
fix(deps): update dependency org.apache.maven.plugins:maven-shade-plugin to v3.5.3 (#1446)
CI ⚙️Build 🐘
- chore(deps): update actions/checkout action to v4.1.4 (#1450)
- chore(deps): update gradle/gradle-build-action action to v3.3.2 (#1451)
Micronaut Build Plugin
- build settings 7.0.1
- chore(deps): update plugin io.micronaut.build.shared.settings to v6.7.1 (#1444)
- fix(deps): update dependency io.micronaut.build.internal.publishing:io.micronaut.build.internal.publishing.gradle.plugin to v6.7.1 (#1445)
Full Changelog: v4.4.1...v4.4.2