https://github.com/aboutbits/mapstruct-extensions
Mapstruct extensions like custom naming strategies.
https://github.com/aboutbits/mapstruct-extensions
java lombok mapstruct
Last synced: 4 months ago
JSON representation
Mapstruct extensions like custom naming strategies.
- Host: GitHub
- URL: https://github.com/aboutbits/mapstruct-extensions
- Owner: aboutbits
- License: mit
- Created: 2024-07-29T14:52:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-09-11T05:52:02.000Z (5 months ago)
- Last Synced: 2025-09-11T08:55:10.140Z (5 months ago)
- Topics: java, lombok, mapstruct
- Language: Java
- Homepage:
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# Mapstruct extensions
Some customizations for mapstruct
## Setup
Add this library to the classpath by adding the following maven dependency. Versions can be found [here](../../packages)
```xml
it.aboutbits
mapstruct-extensions
x.x.x
```
## CustomAccessorNamingStrategy
The [CustomAccessorNamingStrategy.java](src%2Fmain%2Fjava%2Fit%2Faboutbits%2Fmapstruct%2Fspi%2FCustomAccessorNamingStrategy.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.
## Build & Publish
To build and publish the chart, visit the GitHub Actions page of the repository and trigger the workflow "Release Package" manually.
## Information
About Bits is a company based in South Tyrol, Italy. You can find more information about us on [our website](https://aboutbits.it).
### Support
For support, please contact [info@aboutbits.it](mailto:info@aboutbits.it).
### Credits
- [All Contributors](../../contributors)
### License
The MIT License (MIT). Please see the [license file](license.md) for more information.