Skip to content

Pass spi namespaced processor options to custom spi#3070

Merged
filiphr merged 8 commits into
mapstruct:mainfrom
ro0sterjam:pass-namespaced-processor-options-to-custom-spi
Apr 30, 2023
Merged

Pass spi namespaced processor options to custom spi#3070
filiphr merged 8 commits into
mapstruct:mainfrom
ro0sterjam:pass-namespaced-processor-options-to-custom-spi

Conversation

@ro0sterjam

@ro0sterjam ro0sterjam commented Nov 4, 2022

Copy link
Copy Markdown
Contributor

Currently we are unable to configure custom mapstruct spi implementations because the compilerArg options are not passed down to the spi classes.

This PR exposes these options to MapStructProcessingEnvironment. I've limited it to only options under the namespace of mapstruct.ap.spi. to limit the exposure of unrelated options.

Fixes #3071

@filiphr

filiphr commented Nov 12, 2022

Copy link
Copy Markdown
Member

@ro0sterjam have a look at my comments in #3071

Comment thread processor/src/main/java/org/mapstruct/ap/MappingProcessor.java Outdated
@ro0sterjam

ro0sterjam commented Nov 16, 2022

Copy link
Copy Markdown
Contributor Author

@filiphr thank you for your guidance. Can you take a look at my changes and let me know what you think? If it looks good I'll proceed with updating the documentation.

@ro0sterjam

Copy link
Copy Markdown
Contributor Author

Added docs and test

@ro0sterjam

Copy link
Copy Markdown
Contributor Author

Bump on this.

@filiphr

filiphr commented Nov 26, 2022

Copy link
Copy Markdown
Member

Thanks for your work on this @ro0sterjam. There is no need to do a bump. We are working on this in our free time and we don't always have time to speedily review it. The PR will be part of the 1.6 release and we'll review it soon.

@ro0sterjam

Copy link
Copy Markdown
Contributor Author

Thanks @filiphr, completely understood and apologies for the bump.

Create a compile error when an AdditionalSupportedOptionsProvider uses the mapstruct prefix
Allow multiple AdditionalSupportedOptionsProvider
@filiphr

filiphr commented Apr 22, 2023

Copy link
Copy Markdown
Member

@ro0sterjam I did some small polishing. Can you please check it out and let me know if you agree with it? If yes then I will resolve the conflict and merge it manually (unless you want to resolve the conflict and force push to your branch)

@ro0sterjam

Copy link
Copy Markdown
Contributor Author

Looked over the changes and no objections from me! Good idea about supporting multiple AdditionalSupportedOptionsProvider.

@filiphr filiphr merged commit 931591a into mapstruct:main Apr 30, 2023
@filiphr

filiphr commented Apr 30, 2023

Copy link
Copy Markdown
Member

This has been integrated into main. Thanks @ro0sterjam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support configurable Spi Implementations

2 participants