Skip to content

Make Flyway migration work with both Maven and Gradle#932

Merged
timtebeek merged 4 commits intoopenrewrite:mainfrom
ReneM:flyway-gradle-error
Feb 16, 2026
Merged

Make Flyway migration work with both Maven and Gradle#932
timtebeek merged 4 commits intoopenrewrite:mainfrom
ReneM:flyway-gradle-error

Conversation

@ReneM
Copy link
Contributor

@ReneM ReneM commented Feb 16, 2026

What's changed?

Switching from org.openrewrite.maven.search.FindDependency to org.openrewrite.java.dependencies.FindDependency.

What's your motivation?

Current version isnt working for Gradle, it's adding Flyway to all migrated projects, causing issues with JDBC in non-database applications.

Anything in particular you'd like reviewers to focus on?

That Maven is still working. The test passes, but I don't have any Maven projects to test on.

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

@github-project-automation github-project-automation bot moved this to In Progress in OpenRewrite Feb 16, 2026
@ReneM ReneM changed the title Fix Flyway migration only working for Maven Make Flyway migration work with both Maven and Gradle Feb 16, 2026
Copy link
Member

@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.

Thanks a lot for noticing and fixing!

@github-project-automation github-project-automation bot moved this from In Progress to Ready to Review in OpenRewrite Feb 16, 2026
@timtebeek timtebeek merged commit 382cf0c into openrewrite:main Feb 16, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Ready to Review to Done in OpenRewrite Feb 16, 2026
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.

2 participants