Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#697: Migrate to JSR330 #698

Closed
wants to merge 1 commit into from
Closed

Conversation

jarmoniuk
Copy link
Contributor

@jarmoniuk jarmoniuk commented Sep 16, 2022

Migrating to JSR330. Notable find: removed the bogus duplicate of the ArtifactResolver component in AbstractVersionsUpdaterMojo (there are two which point to the same component).

Using constructor-style injection, as advised in the reference.

@jarmoniuk
Copy link
Contributor Author

@slachiewicz @slawekjaranowski please review

@jarmoniuk jarmoniuk changed the title #697: Migrating to JSR330 #697: Migrate to JSR330 Sep 16, 2022
@jarmoniuk
Copy link
Contributor Author

jarmoniuk commented Sep 18, 2022

@slachiewicz why did you close it without merging?

@jarmoniuk
Copy link
Contributor Author

@slachiewicz @slawekjaranowski please merge ;)

@slawekjaranowski
Copy link
Member

@ajarmoniuk was merged by direct push in commit: a54e87f instead of using GH gui

Another case for manual push is that this PR will be missing from auto generated releases notes.
@slachiewicz what is purpose for direct push it?

@jarmoniuk
Copy link
Contributor Author

I see. Thanks for the explanation.

@slachiewicz slachiewicz added this to the 2.13.0 milestone Sep 18, 2022
@slachiewicz
Copy link
Member

this time i was forking from command line, not from GH ui. I've updated, rebased change before push to test it locally.

@slachiewicz
Copy link
Member

maybe release note action configuration should be updated?

@slawekjaranowski
Copy link
Member

As I know release-derafter only take list of merged PR .. so we should process all important changes by PR with merged status ... 😄

@slachiewicz
Copy link
Member

i've updated release note with my merge PR plus few small styling updates

@slawekjaranowski
Copy link
Member

We will see what will happen after next release note rebuilds ... try to re-run Release Drafter action

@slachiewicz
Copy link
Member

all my changes dropped :( thx for explanation

@jarmoniuk jarmoniuk deleted the jsr330 branch September 18, 2022 10:06
@jarmoniuk
Copy link
Contributor Author

jarmoniuk commented Sep 18, 2022

@slachiewicz I've noticed that you're now trying to replace constructor-based injection with injecting fields. -- that is, placing the @Inject annotations next to fields. While this is certainly possible, it's not advised to do so.

Please see https://github.com/eclipse/sisu.plexus/wiki/Plexus-to-JSR330#Basics

@slachiewicz
Copy link
Member

Yes, i expect that without constructors it will be easier to refactor code to not use deprecated classes from Maven 2.
Someone can migrate Mojo one by one.
Later we can introduce constructors with new proper parameters.

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

Successfully merging this pull request may close these issues.

3 participants