MapStruct 1.2.0.CR2 released

I’m very happy to announce the second candidate release of MapStruct 1.2!

The CR2 release mostly provides bug fixes and other smaller improvements since the CR1, e.g. related to the handling of mappingInheritanceStrategy (issue #1255). Further fixes concern the handling nested target properties (#1269).

The most notable change in the release is the extension of the mappingInheritenceStrategy. With the inclusion of #1065 in 1.2.0.Beta2 we added support inheritance of reverse methods from @MapperConfig. This inadvertently lead to #1255. Therefore, now there are 4 strategies:

  • EXPLICIT - Only inherits if explicitly stated (Same as before)
  • AUTO_INHERIT_FROM_CONFIG - Will automatically inherit only forward configuration (Behaviour is same as before)
  • AUTO_INHERIT_REVERSE_FROM_CONFIG - Will automatically inherit only reverse configuration (New strategy)
  • AUTO_INHERIT_ALL_FROM_CONFIG - Will automatically inherit both forward and reverse configuration (New Strategy)

Overall, 6 issues have been fixed with the CR2 release. Please see the release notes for more details on the issues fixed.

Thanks to everyone contributing to this release: Darren Rambaud and the long-term MapStruct afficionados Andreas Gudian, Gunnar Morling and Sjaak Derksen.

Download

You can find MapStruct 1.2 CR 2 in Maven Central under the following GAV coordinates:

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

Next steps

With this candidate release we believe that we’re ready for releasing MapStruct 1.2 Final.

We are confident that the final release will be out in in few weeks.

Please give the candidate release a spin and let us know as soon as possible if you run into any trouble. To get in touch, post a comment below or use one the following channels:

comments powered by Disqus