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

For more details checkout the individual release announcements for the Beta1, Beta2, RC1

What’s inside

This major release brings few big new features for MapStruct:

In total 90 issues have been fixed between the 1.5.0.Final and 1.6.0 release.

What’s next

We currently have few issues that have been requested a lot:

and we have some issues with requesting support for Kotlin. The most requested here are:

We would like to see if we can tackle some of these issues in the next release. The KSP support is something that might require a lot of work and refactoring in the internals of MapStruct, but we will see.

Stats

Like every final release, we like to release some statistics about the project. We are very proud and thankful to our growing community. It is really satisfying to see how everyone helps each other in our on StackOverflow or in our GitHub Discussions. We currently have 7000+ stars and 133 contributors on GitHub. More than 100 000 people are using our IntelliJ plugin.

Most impressive though are the download numbers we get from the Maven Central repo. As an example here are the numbers for the org.mapstruct:mapstruct-processor artifact:

The number of Downloads compared to the time we released 1.5.0.Final has more than doubled (increased by 2.3 times).

Thanks

In this release we also started accepting donations through Open Collective or GitHub.

We’d like to thank all the supporters that supported us with donations in this period:

Last but not least we would like to congratulate all the enthusiastic MapStruct contributors making this release possible. In alphabetic order this are all the contributors that contributed to the 1.6 release of Mapstruct:

Happy coding with MapStruct 1.6!!

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