MapStruct 1.6.1 bug fix released

It is my pleasure to announce the 1.6.1 bug fix release of MapStruct. This release includes 1 enhancement and 8 bug fixes, including some regressions introduced in 1.6.0.

With this release we support the use of the Java 19 LinkedHashSet and LinkedHashMap factory methods.

Read more...

News

MapStruct Spring Extensions 1.1.2 released

It is my pleasure to announce the next official release of MapStruct Spring Extensions. What started out as a StackOverflow question turned into its own (sub-)project within the MapStruct organization.

Changes in this release:

  • TypeDescriptors will now be kept as fields in generated ConversionServiceAdapters which can speed up the conversion process. Thanks to Jesse Bonzo for this contribution.
  • The generated ConverterScan so far used the legacy @PostConstruct annotation from the deprecated javax.annotation package underneath. Thanks to Jeff Schnitzer’s contribution, the generator now checks for the availability of the “new” jakarta.annotation.PostConstruct annotation and will prefer this if it’s available. For reasons of backwards compatibility, javax.annotation.PostConstruct is the fallback.

Including the annotations and extensions defined in this project will generate a class acting as bridge between MapStruct’s conventions and Spring' s ConversionService API that in turn can be added to any Mapper’s uses attribute. See the examples for details.

Read more...

MapStruct 1.6.0 is out

I am very happy to announce the final release of MapStruct 1.6! This is our 6th major release since November 2015.

As you can see with this release we decided to remove the .Final and only use the version (1.6.0). We’ll keep doing this for final releases.

Besides bug fixes, the 1.6 release brings some new exciting features:

  • Access to target / source property names in conditional and mapping methods
  • Conditional mapping for source parameters
  • Passing annotations to generated code
  • Add javadoc to generated code
  • New built-in conversions
Read more...

MapStruct 1.6.0.RC1 is out

I am very happy to announce the first (and last) release candidate of MapStruct 1.6. We are looking into release the final version of 1.6 in the next two weeks.

This release provides mostly bug fixes since 1.6.0.Beta2.

This release contains 2 breaking changes, have a look at them when upgrading

Read more...