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

Create RemoveRepository recipe #2617

Merged
merged 2 commits into from
Jan 11, 2023

Conversation

smehta23
Copy link
Contributor

The corresponding test suite currently only contains tests that uses the id/url parameters (not repoName, layout, snapshotsEnabled, etc., which will be added soon!).

The corresponding test suite only contains tests that uses the id/url
parameters (not repoName, layout, snapshotsEnabled, etc., which will be
added soon!).
@smehta23 smehta23 linked an issue Jan 10, 2023 that may be closed by this pull request
@jkschneider jkschneider added this to the 7.35.0 milestone Jan 10, 2023
@sambsnyd sambsnyd merged commit 635907d into openrewrite:main Jan 11, 2023
Comment on lines +97 to +98
if (id == null && (isReleasesEqual(repo) && isSnapshotsEqual(repo)) &&
url.equals(repo.getChildValue("url").orElse(null))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

@jkschneider what if I want to match something like the regular expression: http[s]+://maven.glassfish.org/?.*
Is there a better way we could do matching here that allows for more generic removals like this?

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

Successfully merging this pull request may close these issues.

Recipe to remove dead repositories like maven.glassfish.org
4 participants