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

[MNG-7727] Remove DefaultMavenProfilesBuilder #1044

Merged

Conversation

gnodet
Copy link
Contributor

@gnodet gnodet commented Mar 7, 2023

Copy link
Member

@michael-o michael-o left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this make sense to fiddle with compat although we want to get rid of it?

Copy link
Contributor

@elharo elharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure I understand the purpose of this. This also is singificant enough to deserve a JIRA issue.

@gnodet
Copy link
Contributor Author

gnodet commented Mar 8, 2023

I'm not sure I understand the purpose of this. This also is singificant enough to deserve a JIRA issue.

The purpose is to:

  • remove references to plexus-utils
  • fix encoding problems with BOM parsing

But given, the code is not used afaik, I'm not sure it's worth fixing it, so removing also solves the problem.

@gnodet
Copy link
Contributor Author

gnodet commented Mar 8, 2023

Does this make sense to fiddle with compat although we want to get rid of it?

Well, we want to get rid of it, but I think that won't be tomorrow. So in the mean time....

@michael-o
Copy link
Member

Does this make sense to fiddle with compat although we want to get rid of it?

Well, we want to get rid of it, but I think that won't be tomorrow. So in the mean time....

I see, then a JIRA issue is imperative

@gnodet
Copy link
Contributor Author

gnodet commented Mar 8, 2023

@elharo would you prefer removing the DefaultMavenProfilesBuilder implementation class completely ?

@elharo
Copy link
Contributor

elharo commented Mar 8, 2023

When did we deprecate it? If we can simply remove it in 4.0.0, that solves all problems. I will raise a question on the dev mailing list about whether we should start ripping out the deprecated methods and classes in 4.0.0.

I do not think we should replace it with a broken version that simply returns null. Compile-time errors are better than runtime errors.

@rmannibucau
Copy link
Contributor

@elharo it already returns null in 99% of the cases so guess this is not a behavior change

@gnodet gnodet added this to the 4.0.0-alpha-5 milestone Mar 8, 2023
@gnodet gnodet changed the title Remove the implementation of DefaultMavenProfilesBuilder#buildProfiles [MNG-7727] Remove the implementation of DefaultMavenProfilesBuilder#buildProfiles Mar 9, 2023
@slachiewicz
Copy link
Member

maybe backport it to 3.9?

@gnodet gnodet force-pushed the remove-profiles-builder-method-implementation branch from 5eebfb5 to f935cab Compare March 10, 2023 12:41
@gnodet
Copy link
Contributor Author

gnodet commented Mar 10, 2023

maybe backport it to 3.9?

For what benefit ?

@gnodet gnodet requested a review from elharo March 10, 2023 16:07
@slachiewicz
Copy link
Member

maybe backport it to 3.9?

For what benefit ?

to receive faster feedback from end users

Copy link
Contributor

@elharo elharo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm happy for these classes to be deleted.

@elharo elharo changed the title [MNG-7727] Remove the implementation of DefaultMavenProfilesBuilder#buildProfiles [MNG-7727] Remove DefaultMavenProfilesBuilder Mar 11, 2023
@gnodet gnodet merged commit 57d5587 into apache:master Mar 11, 2023
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.

5 participants