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

Versions refactor 2 #1204

Merged
merged 1 commit into from
Dec 27, 2024
Merged

Conversation

andrzejj0
Copy link
Contributor

@andrzejj0 andrzejj0 commented Dec 25, 2024

This is a second stage of the other PR, adding UpdateParent to the common base: I've noticed that updating parent is already being done by Use-*-*, but it used a different method. So why don't we refactor it even further? The goal is to make the plugin codebase smaller.

Also, here I have replaced is... getters by get... for booleans as they were not always grammatical and not always consistent (isProcessing... which differs from the name of the field).

Edit: added a comment: with skipResultion == false, this goal is a slightly modified use-*-* targeting parent only, with an added modification that it also has the parentVersion parameter.

Maybe I should just merge this PR into the other one and create one big PR instead?

@andrzejj0 andrzejj0 self-assigned this Dec 25, 2024
@andrzejj0 andrzejj0 force-pushed the versions-refactor-2 branch 2 times, most recently from b0377f0 to 1f6e9fc Compare December 25, 2024 20:36
@slawekjaranowski
Copy link
Member

can be done step by step.
Please merge depends PR and resolve conflicts.

@andrzejj0
Copy link
Contributor Author

Rebased.

One remark: because the goal now shares the common base with other similar goals, which don't print such information, we are now also not logging INFO lines like:

[INFO] The parent project is the latest version

so I had to remove a check for that line from one of the it tests.

@andrzejj0 andrzejj0 merged commit 5ce048c into mojohaus:master Dec 27, 2024
26 checks passed
@andrzejj0 andrzejj0 deleted the versions-refactor-2 branch December 27, 2024 09:04
@github-actions github-actions bot added this to the 2.19.0 milestone Dec 27, 2024
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.

2 participants