fix(deps): update mapstruct monorepo to v1.6.0.rc1 #2127
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.6.0.Beta2
->1.6.0.RC1
1.6.0.Beta2
->1.6.0.RC1
1.6.0.Beta2
->1.6.0.RC1
Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
mapstruct/mapstruct (org.mapstruct:mapstruct)
v1.6.0.RC1
Compare Source
Enhancements
This reverts #2560, because we've decided that
@BeanMapping(ignoreByDefault = true)
should only be applied to target properties and not to source properties.Source properties are ignored anyway, the
BeanMapping#unmappedSourcePolicy
should be used to control what should happen with unmapped source policyBugs
@SubclassMapping
not working with@BeanMapping#ignoreUnmappedSourceProperties
(#3609)Documentation
unmappedSourcePolicy
default value (#3635)Build
Breaking changes
Presence checks for source parameters
In 1.6, support for presence checks on source parameters has been added.
This means that even if you want to map a source parameter directly to some target property the new
@SourceParameterCondition
or@Condition(appliesTo = ConditionStrategy.SOURCE_PARAMETERS)
should be used.e.g.
If we had the following in 1.5:
Then MapStruct would generate
In order for the same to be generated in 1.6, the mapper needs to look like this:
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR has been generated by Mend Renovate. View repository job log here.