Skip to content

[MPLUGIN-419] Allow @Parameter on setters methods#151

Merged
slawekjaranowski merged 1 commit intomasterfrom
MPLUGIN-419
Oct 19, 2022
Merged

[MPLUGIN-419] Allow @Parameter on setters methods#151
slawekjaranowski merged 1 commit intomasterfrom
MPLUGIN-419

Conversation

@slawekjaranowski
Copy link
Copy Markdown
Member

  • new implementation
  • remove some of unused or unneeded methods

@michael-o michael-o removed their request for review October 15, 2022 18:33
Comment thread maven-plugin-plugin/src/site/apt/examples/using-annotations.apt.vm Outdated
@kwin
Copy link
Copy Markdown
Member

kwin commented Oct 17, 2022

@slawekjaranowski slawekjaranowski requested a review from kwin October 17, 2022 19:13
@slawekjaranowski
Copy link
Copy Markdown
Member Author

Would be good to update https://maven.apache.org/guides/plugin/guide-java-plugin-development.html#parameters and https://maven.apache.org/developers/mojo-api-specification.html subsequently.

Agree - documentation should be updated .... we need to review it after release

@slawekjaranowski
Copy link
Copy Markdown
Member Author

@kwin thanks for approve.
Please look again - I rebased code with your last change.

@kwin
Copy link
Copy Markdown
Member

kwin commented Oct 19, 2022

@kwin thanks for approve. Please look again - I rebased code with your last change.

Still looks good ;-)

@gnodet
Copy link
Copy Markdown
Contributor

gnodet commented Oct 19, 2022

Looks good (apart from the very minor indentation issue).
Some of it had already been integrated in the v4 api through gnodet/maven@6317b8c, but both @Parameter and @Component annotations were actually modified. Does it make sense or should I revert the changes on @Component ?

- new implementation
- remove some of unused or unneeded methods
@slawekjaranowski
Copy link
Copy Markdown
Member Author

Looks good (apart from the very minor indentation issue). Some of it had already been integrated in the v4 api through gnodet/maven@6317b8c, but both @Parameter and @Component annotations were actually modified. Does it make sense or should I revert the changes on @Component ?

We can add support for @Compoent with method in next step.
I must check if old @Compoent can be injected by method - maybe you know it.

I hope we can also add support for old and new annotation together.
As soon Maven 4 alpha will be published we will have open way for it.

@gnodet
Copy link
Copy Markdown
Contributor

gnodet commented Oct 19, 2022

Looks good (apart from the very minor indentation issue). Some of it had already been integrated in the v4 api through gnodet/maven@6317b8c, but both @Parameter and @Component annotations were actually modified. Does it make sense or should I revert the changes on @Component ?

We can add support for @Compoent with method in next step. I must check if old @Compoent can be injected by method - maybe you know it.

I don't think so at the moment. The question is more whether sisu-inject supports injecting components using setters, but I would think so.

I hope we can also add support for old and new annotation together. As soon Maven 4 alpha will be published we will have open way for it.

That's done in #117 . Both annotation packages are supported. It's ready for review (may need to rebase based on recent changes), but I think it would be better in a new major version of the plugin tools.

@slawekjaranowski slawekjaranowski merged commit 5aa58e3 into master Oct 19, 2022
@slawekjaranowski slawekjaranowski deleted the MPLUGIN-419 branch October 19, 2022 21:43
@jira-importer
Copy link
Copy Markdown

Resolve #726

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.

4 participants