MapStruct Spring Extensions 1.1.3 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:
- The change introduced in the previous release which stored TypeDescriptors as fields in the generated Adapter class caused rare issues with certain generic type definitions. Jesse Bonzo has thankfully provided a fix for this.
- The modified converter scan led to errors when used with multiple
SpringMapperConfig
s in the same project, because it would generate several configurations with identical bean names. Thanks to simonovdenis, we have now got an option to configure the name for the generated configuration as well.
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.
Thanks
Thanks to Sjaak Derksen for suggesting this solution and Filip Hrisafov for opening the community project. Also thanks to Jeff Schnitzer, Jesse Bonzo, Cosimo Damiano Prete, Daniel Shiplett, Alexey, Olivier Boudet, John Kelly, Myat Min, Hypercube Software, coding-guo, freund17, Joose Haverinen, pw-lehre, and George Noble for their suggestions and fixes in previous releases. If you feel like there’s something missing in MapStruct which could make the Spring experience any smoother, please get involved!
Also, if your favourite library or framework could use some tweaking with regard to MapStruct, contact us.
Happy coding with MapStruct Spring Extensions!
Download
You can fetch the release from Maven Central using the following GAV coordinates:
- Annotation JAR: org.mapstruct.extensions.spring:mapstruct-spring-annotations:1.1.3
- Annotation processor JAR: org.mapstruct.extensions.spring:mapstruct-spring-extensions:1.1.3
- Test Extensions with Converter Scan JAR: org.mapstruct.extensions.spring:mapstruct-spring-extensions:1.1.3
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:
- Get help in our Gitter room or at the mapstruct-users group
- Report bugs and feature requests via the issue tracker
- Follow @GetMapStruct on Twitter