Micronaut Core 4.2.0
What's Changed
New Features π
- Add StreamingFileUpload.asInputStream by @yawkat in #9787
- Add DefaultHttpClient constructor with ssl builder by @yawkat in #9875
- Facilitate troubleshooting with trace logging for health check results when
endpoints.health.details-visible
is unavailable. by @wetted in #9895 - Respect @Format annotation for fields passed as http request body arguments by @oujesky in #9883
- feat: dispatch OPTIONS requests by @sdelamo in #10011
- Implement zealous block detection for HttpClient by @yawkat in #10010
KSP
- KSP: skip
ExecutableVisitor
warning for default parameters by @dstepanov in #9833 - KSP: Implement annotation defaults retrieval by @dstepanov in #9786
- KSP: performance improvements by @dstepanov in #9832
Bug Fixes π
- Add alias annotations before the stereotypes by @dstepanov in #9942
Improvements β
- Polish
DefaultMutableConversionService
by @dstepanov in #9744 - Performance optimizations by @dstepanov in #9701
- imp: build route with a media type other than JSON by @sdelamo in #9756
- Performance improvement and cleanup of
PropertySourcePropertyResolver
by @dstepanov in #9766 - Changing Jakarta provide to
BeanProvider
as it's lazy by @dstepanov in #9779 - Fix processing order of introduced method in Java by @dstepanov in #9784
- Small bean context optimizations by @dstepanov in #9788
- Correct how maps/sets are initialized with a correct size by @dstepanov in #9834
- Improve default annotation values by @dstepanov in #9838
- Support generating source files by @dstepanov in #9960
- Improve usability of @Mapper annotation by @graemerocher in #9980
- Replace DEFAULT_EVENT_LOOP_THREADS with a lazy getter by @yawkat in #9815
- Bind form values as an array to simplify deserialization by @dstepanov in #10070
- Remove unused imports by @altro3 in #10039
- Add BinaryTypeConfiguration by @timyates in #9530
- AST: Support resolving the class element represented by
GenericElement
by @dstepanov in #9757 - Another HTTP filters refactoring by @dstepanov in #9722
- Skip calling
containsBean
forio.micronaut.context.BeanProvider
by @dstepanov in #9768 - Implement enum constant in kotlin element factory by @altro3 in #9774
- Conversion service improvements by @dstepanov in #9770
- Improve bean qualifiers by @dstepanov in #9778
- Add missing
@Override
annotations by @altro3 in #10040 - change comment copy by @sdelamo in #10103
- imp: avoid name shadowning of result by @sdelamo in #10101
- Text proofreading by @altro3 in #10038
- imp: Exception 'java.io.IOException' is never thrown in the method by @sdelamo in #10102
- Checkstyle fixes. Remove tests conditions for JDK version less 17 by @altro3 in #10045
Tests β
- Fix frequent CI failures of MDCReactorSpec by @jeremyg484 in #10031
- Add tests clarifying annotations on hidden methods by @dstepanov in #9821
- test: set explicitely WRITE_IN_METAINF=false by @sdelamo in #9792
- Move old tests from JUnit4 to JUnit Jupiter by @altro3 in #10041
- tck: RequestUriTest by @sdelamo in #9986
Docs π
- docs: how to use the Micronaut ResourceLoader API with example using ResourceResolver by @wetted in #10054
- Fixes in adoc format by @altro3 in #10037
- docs: fix broken, stale, and deprecated links in user guide by @wetted in #9819
- Clarify how to return text-plain responses for answers others than Strings by @wetted in #9911
- Docs: Update reference field name in explaination by @dnyaneshwar2023 in #10093
Dependency updates π
- fix(deps): update dependency com.fasterxml.jackson.core:jackson-databind to v2.15.3 by @renovate in #9988
- fix(deps): update netty monorepo to v4.1.101.final by @renovate in #10097
- fix(deps): update managed.jackson to v2.15.3 by @renovate in #9997
- fix(deps): update asm to v9.6 by @renovate in #10047
- chore(deps): update plugin me.champeau.jmh to v0.7.2 by @renovate in #10043
- fix(deps): update dependency com.squareup.okio:okio to v3.6.0 by @renovate in #10064
- fix(deps): update dependency io.netty.incubator:netty-incubator-codec-http3 to v0.0.22.final by @renovate in #10081
- fix(deps): update dependency com.github.javaparser:javaparser-symbol-solver-core to v3.25.6 by @renovate in #10057
- Merge branch '4.1.x' into '4.2.x' by @sdelamo in #10099
Kotlin
Micronaut Modules
Micronaut AWS
Micronaut Groovy
- fix(deps): update dependency io.micronaut.groovy:micronaut-runtime-groovy to v4.1.0 by @renovate in #10088
Micronaut Reactor
- build: Reactor 3.5.11 and Micronaut Reactor 3.0.3 by @sdelamo in #9966
- fix(deps): update dependency io.micronaut.reactor:micronaut-reactor-bom to v3.0.4 by @renovate in #10015
CI βοΈBuild π
- Use the current JDK for testing, but 17 for building by @timyates in #9989
- Add Java 21 by @timyates in #9978
- Fix develocity badge by @timyates in #9996
GraalVM
- chore(deps): update graalvm/setup-graalvm action to v1.1.5 by @renovate in #10063
- chore(deps): update dependency org.graalvm.buildtools.native:org.graalvm.buildtools.native.gradle.plugin to v0.9.28 by @renovate in #10002
Micronaut Build Plugin
- chore(deps): update plugin io.micronaut.build.shared.settings to v6.5.7 by @renovate in #9976
- chore(deps): update dependency io.micronaut.build.internal:micronaut-gradle-plugins to v6.6.0 by @renovate in #10033
- chore(deps): update dependency io.micronaut.build.internal:micronaut-gradle-plugins to v6.6.1 by @renovate in #10105
SVM
New Contributors
- @dnyaneshwar2023 made their first contribution in #10093
Full Changelog: v4.1.12...v4.2.0