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

Restore newArtifactId property in ChangePluginGroupIdAndArtifactId #4421

Merged
merged 1 commit into from
Aug 15, 2024

Conversation

gsmet
Copy link
Contributor

@gsmet gsmet commented Aug 15, 2024

Comment on lines +64 to 71
@Option(displayName = "New artifact ID",
description = "The new artifact ID to use. Defaults to the existing artifact ID. This property is deprecated, use newArtifactId instead.",
example = "my-new-maven-plugin",
required = false)
@Nullable
@Deprecated
@SuppressWarnings("DeprecatedIsStillUsed")
String newArtifact;
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for taking the extra effort to remain backwards compatible; I ran a quick search to see if anything used the constructor, but thankfully that does not seem to be the case. https://app.moderne.io/results/MSJWn0HY8
Via a run of org.openrewrite.java.search.FindMethods with methodPattern *..ChangePluginGroupIdAndArtifactId <constructor>(..) against the OpenRewrite GitHub org.

@timtebeek timtebeek mentioned this pull request Aug 15, 2024
Copy link
Contributor

@timtebeek timtebeek left a comment

Choose a reason for hiding this comment

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

Looks good to me; thanks for restoring the original while not introducing yet another breaking change!

@timtebeek timtebeek added the bug Something isn't working label Aug 15, 2024
@timtebeek timtebeek merged commit e18cf17 into openrewrite:main Aug 15, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

newArtifactId changed to newArtifact in ChangePluginGroupIdAndArtifactId
2 participants