Skip to content

chore(deps): Bump mapstruct-version from 1.5.5.Final to 1.6.0#15129

Merged
apupier merged 1 commit intomainfrom
dependabot/maven/mapstruct-version-1.6.0
Aug 13, 2024
Merged

chore(deps): Bump mapstruct-version from 1.5.5.Final to 1.6.0#15129
apupier merged 1 commit intomainfrom
dependabot/maven/mapstruct-version-1.6.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Aug 13, 2024

Bumps mapstruct-version from 1.5.5.Final to 1.6.0.
Updates org.mapstruct:mapstruct from 1.5.5.Final to 1.6.0

Release notes

Sourced from org.mapstruct:mapstruct's releases.

1.6.0

Previous Release Notes

1.6.0.RC1

Enhancements

  • Breaking change: (#3574) - 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 policy

Bugs

  • Breaking change: Presence check method used only once when multiple source parameters are provided (#3601)
  • Fix @SubclassMapping not working with @BeanMapping#ignoreUnmappedSourceProperties (#3609)
  • Fix duplicate method generation with recursive auto mapping (#3591)

Documentation

  • Fix documentation of unmappedSourcePolicy default value (#3635)
  • Fix documentation link of before and after mapping when using builders (#3639)
  • Fix typo in experimental note (#3634)
  • Add example classes for the passing target type documentation (#3504)

Build

  • Enforce whitespaces around the for colon with CheckStyle (#3642)

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:

@Mapper
public interface OrderMapper {
@Mapping(source = "dto", target = "customer", conditionQualifiedByName = "mapCustomerFromOrder")
Order map(OrderDTO dto);
@Condition
@Named("mapCustomerFromOrder")

</tr></table>

... (truncated)

Commits
  • 38ec5c5 Releasing version 1.6.0
  • 81ca739 #3638 Remove deprecation note of enum mapping via @​Mapping
  • 0f24633 Fix update website script to be able to run Linux
  • 6365a60 Next version 1.6.0-SNAPSHOT
  • 6ef64ea Releasing version 1.6.0.RC1
  • bbb9bb4 Fix typo in changelog
  • 5ce9c53 Add release notes
  • e2edb1a #3504 Add example classes for the passing target type documentation
  • 3047760 #3591 Fix duplicate method generation with recursive auto mapping
  • df49ce5 #3609 Pass bean mapping ignored unmapped source properties to subclass forged...
  • Additional commits viewable in compare view

Updates org.mapstruct:mapstruct-processor from 1.5.5.Final to 1.6.0

Release notes

Sourced from org.mapstruct:mapstruct-processor's releases.

1.6.0

Previous Release Notes

1.6.0.RC1

Enhancements

  • Breaking change: (#3574) - 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 policy

Bugs

  • Breaking change: Presence check method used only once when multiple source parameters are provided (#3601)
  • Fix @SubclassMapping not working with @BeanMapping#ignoreUnmappedSourceProperties (#3609)
  • Fix duplicate method generation with recursive auto mapping (#3591)

Documentation

  • Fix documentation of unmappedSourcePolicy default value (#3635)
  • Fix documentation link of before and after mapping when using builders (#3639)
  • Fix typo in experimental note (#3634)
  • Add example classes for the passing target type documentation (#3504)

Build

  • Enforce whitespaces around the for colon with CheckStyle (#3642)

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:

@Mapper
public interface OrderMapper {
@Mapping(source = &quot;dto&quot;, target = &quot;customer&quot;, conditionQualifiedByName = &quot;mapCustomerFromOrder&quot;)
Order map(OrderDTO dto);
@Condition
@Named(&quot;mapCustomerFromOrder&quot;)

</tr></table>

... (truncated)

Commits
  • 38ec5c5 Releasing version 1.6.0
  • 81ca739 #3638 Remove deprecation note of enum mapping via @​Mapping
  • 0f24633 Fix update website script to be able to run Linux
  • 6365a60 Next version 1.6.0-SNAPSHOT
  • 6ef64ea Releasing version 1.6.0.RC1
  • bbb9bb4 Fix typo in changelog
  • 5ce9c53 Add release notes
  • e2edb1a #3504 Add example classes for the passing target type documentation
  • 3047760 #3591 Fix duplicate method generation with recursive auto mapping
  • df49ce5 #3609 Pass bean mapping ignored unmapped source properties to subclass forged...
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps `mapstruct-version` from 1.5.5.Final to 1.6.0.

Updates `org.mapstruct:mapstruct` from 1.5.5.Final to 1.6.0
- [Release notes](https://github.com/mapstruct/mapstruct/releases)
- [Commits](mapstruct/mapstruct@1.5.5.Final...1.6.0)

Updates `org.mapstruct:mapstruct-processor` from 1.5.5.Final to 1.6.0
- [Release notes](https://github.com/mapstruct/mapstruct/releases)
- [Commits](mapstruct/mapstruct@1.5.5.Final...1.6.0)

---
updated-dependencies:
- dependency-name: org.mapstruct:mapstruct
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: org.mapstruct:mapstruct-processor
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file java Pull requests that update Java code labels Aug 13, 2024
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟

🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run

  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot.

  • You can label PRs using build-all, build-dependents, skip-tests and test-dependents to fine-tune the checks executed by this PR.

  • Build and test logs are available in the Summary page. Only Apache Camel committers have access to the summary.

  • ⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@apupier
Copy link
Copy Markdown
Contributor

apupier commented Aug 13, 2024

/component-test mapstruct

Result ✅ The tests passed successfully

@github-actions
Copy link
Copy Markdown
Contributor

🤖 The Apache Camel test robot will run the tests for you 👍

@apupier apupier merged commit 33c6e94 into main Aug 13, 2024
@dependabot dependabot bot deleted the dependabot/maven/mapstruct-version-1.6.0 branch August 13, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

camel-4 core-build-and-dependencies dependencies Pull requests that update a dependency file java Pull requests that update Java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants