Skip to content

Conversation

@steve-aom-elliott
Copy link
Contributor

What's changed?

Added a test showing the failure markers when running two ChangeDependency recipes for dependencies relying on the same pom.xml property for their version number. I suppose the problem is that if you run the recipes one after the other, although it reaches the correct state, it's going to still say in the file that there were resolution failures and that would be in the diff.

Checklist

  • I've added unit tests to cover both positive and negative cases
  • I've read and applied the recipe conventions and best practices
  • I've used the IntelliJ IDEA auto-formatter on affected files

…om.xml` when you run two recipes in a row that eventually make the appropriate change
@steve-aom-elliott steve-aom-elliott self-assigned this Jul 28, 2025
@steve-aom-elliott steve-aom-elliott added bug Something isn't working dependencies test provided Already replicated with a unit test, using JUnit pioneer's ExpectedToFail maven labels Jul 28, 2025
@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Jul 28, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Some suggestions could not be made:

  • rewrite-gradle/src/main/java/org/openrewrite/gradle/ChangeManagedDependency.java
    • lines 126-126
    • lines 136-136

Comment on lines +1684 to +1686
spec -> spec.recipes(
new ChangeDependencyGroupIdAndArtifactId("io.swagger", "swagger-annotations", "io.swagger.core.v3", null, "2.2.x", null, null, null),
new ChangeDependencyGroupIdAndArtifactId("io.swagger", "swagger-models", "io.swagger.core.v3", null, "2.2.x", null, null, null)
Copy link
Member

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies maven test provided Already replicated with a unit test, using JUnit pioneer's ExpectedToFail

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants