MapStruct 1.5.2.Final bug fix released

It is my pleasure to announce the 1.5.2.Final bug fix release of MapStruct. You might ask yourself, where is 1.5.1. We released that version on 5th of June 2022, 3 days after the 1.5.0.Final release. It had a fix for a bug that was reported by our good friends from JHipster.

This release includes 1 enhancements and 2 bug fixes.

With this release we started supporting Text blocks for all the expressions.

Text block support

In this release we relaxed the rules for the expressions and we now also support text blocks.

@Mapping(target = "fieldName", expression =
        """
            java(
                EnumType1.ENUM_VALUE_1 == dto.getValueOfEnum1()
                    ? EnumType2.ENUM_VALUE_2
                    : dto.getValueOfEnum2()
            )    
        """)

Thanks

Thanks to our entire community for reporting these errors.

Happy coding with MapStruct 1.5.2!!

Download

You can fetch the new release from Maven Central using the following GAV coordinates:

Alternatively, you can get ZIP and TAR.GZ distribution bundles - containing all the JARs, documentation etc. - from GitHub.

If you run into any trouble or would like to report a bug, feature request or similar, use the following channels to get in touch:

comments powered by Disqus