Lombok subsection#2266
Lombok subsection#2266filiphr merged 6 commits intomapstruct:masterfrom Nikolas-Charalambidis:lombok-subsection
Conversation
Update the forked repository from the base one
filiphr
left a comment
There was a problem hiding this comment.
Looks great @Nikolas-Charalambidis. I have some comments before we merge it.
documentation/src/main/asciidoc/chapter-14-third-party-api-integration.asciidoc
Show resolved
Hide resolved
documentation/src/main/asciidoc/chapter-14-third-party-api-integration.asciidoc
Outdated
Show resolved
Hide resolved
|
@filiphr I am sorry for the delay 😄 |
filiphr
left a comment
There was a problem hiding this comment.
Thanks for the update @Nikolas-Charalambidis. I have 2 more comments regarding the lombok-mapstruct-binding and then we are good to go for merging
| </dependency> | ||
|
|
||
| <!-- additional dependency is required as of Lombok 1.18.16 --> | ||
| <dependency> |
There was a problem hiding this comment.
This dependency is not needed here but in the annotationProcessorPaths. I think that It won't work if it is here.
There was a problem hiding this comment.
|
|
||
| implementation "org.mapstruct:mapstruct:${mapstructVersion}" | ||
| implementation "org.projectlombok:lombok:1.18.16" | ||
| implementation "org.projectlombok:lombok-mapstruct-binding:0.1.0" |
There was a problem hiding this comment.
This should be annotationProcessor and not implementation
There was a problem hiding this comment.
|
@filiphr Are you sure that
Correct me if I am wrong. |
|
It probably works in both cases, but it is a dependency that is only needed during the annotation processing, that's why I said that it should be in the Best practices for us is to avoid having users putting dependencies that are only needed for annotation processing on their classpath. |
|
@filiphr You are right. I have committed the fix as you said 😄 Please take a look and squash the commits on merge, if no further edits are needed. However, I am a bit confused... out of curiosity, I removed |
|
Honestly, I can't explain it. Sometimes Lombok and MapStruct work without anything specific when they are invoked in a particular order. However, Thanks for the changes |
documentation/src/main/asciidoc/chapter-14-third-party-api-integration.asciidoc
Outdated
Show resolved
Hide resolved
…egration.asciidoc
This adds a new subsection describing the integration with Lombok based on a brief discussion (#2258).
The pull requests includes:
lombok-mapstruct-bindingdependency newly as of Lombok 1.18.16