Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 1.6 KB

readme.md

File metadata and controls

49 lines (28 loc) · 1.6 KB

Mapstruct extensions

Some customizations for mapstruct

Setup

Add this library to the classpath by adding the following maven dependency. Versions can be found here

<dependency>
    <groupId>it.aboutbits</groupId>
    <artifactId>mapstruct-extensions</artifactId>
    <version>x.x.x</version>
</dependency>

CustomAccessorNamingStrategy

The CustomAccessorNamingStrategy.java adds support for Lombok's @With methods. By default, Lombok would treat these generated functions as accessors and would try to map them.

Local development:

To use this library as a local development dependency, you can simply refer to the version BUILD-SNAPSHOT.

Check out this repository and run the maven goal install. This will build and install this library as version BUILD-SNAPSHOT into your local maven cache.

Note that you may have to tell your IDE to reload your main maven project each time you build the library.

Building and releasing a new version:

To create a new version of this package and push it to the maven registry, you will have to use the GitHub actions workflow and manually trigger it.

Information

About Bits is a company based in South Tyrol, Italy. You can find more information about us on our website.

Support

For support, please contact [email protected].

Credits

License

The MIT License (MIT). Please see the license file for more information.