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

Add a unlessUsing option to the RemoveDependency recipe #11

Closed
timtebeek opened this issue Jun 26, 2023 — with Slack · 1 comment · Fixed by #129
Closed

Add a unlessUsing option to the RemoveDependency recipe #11

timtebeek opened this issue Jun 26, 2023 — with Slack · 1 comment · Fixed by #129
Assignees
Labels
enhancement New feature or request

Comments

Copy link
Contributor

A thought that had come up in an earlier discussion as a possible path forward for this would be to add a onlyIfNotUsing option to the RemoveDependency. It wouldn't be perfect by any means, but it could get some of the job done.

Slack Message

@timtebeek timtebeek added the enhancement New feature or request label Jun 26, 2023 — with Slack
@timtebeek
Copy link
Contributor Author

This has come up repeatedly in Slack, as people are looking ways to know if a dependency can (somewhat) safely be removed. A dependency can not always be safely removed even if not using a particular package explicitly, due to reflection and service loaded dependencies, but it's a start to offer something for those that want to conditionally remove a dependency.

@timtebeek timtebeek moved this to Backlog in OpenRewrite Jun 26, 2023
@jevanlingen jevanlingen changed the title Add a onlyIfNotUsing option to the RemoveDependency recipe Add a unlessUsing option to the RemoveDependency recipe Nov 12, 2024
@jevanlingen jevanlingen linked a pull request Nov 13, 2024 that will close this issue
3 tasks
@timtebeek timtebeek moved this from Backlog to In Progress in OpenRewrite Nov 13, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done in OpenRewrite Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants