Skip to content

Preserve Flyway module test scope during Flyway 10 migration - #1054

Draft
Chandu0501 wants to merge 1 commit into
openrewrite:mainfrom
Chandu0501:codex/fix-rewrite-spring-1052
Draft

Preserve Flyway module test scope during Flyway 10 migration#1054
Chandu0501 wants to merge 1 commit into
openrewrite:mainfrom
Chandu0501:codex/fix-rewrite-spring-1052

Conversation

@Chandu0501

@Chandu0501 Chandu0501 commented Jul 1, 2026

Copy link
Copy Markdown

Summary

  • add a small Flyway recipe helper that reads the declared flyway-core scope from the POM
  • mirror test scope onto Flyway database modules after the existing add-dependency recipes run
  • add regression coverage for PostgreSQL, MySQL, Oracle, and SQL Server Flyway 10 migrations

Verification

  • ./gradlew.bat test --tests org.openrewrite.java.flyway.MigrateToFlyway10Test

Notes

  • This keeps the existing compile-scope behavior unchanged and only corrects the broken test-scope case.

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

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

Flyway 10 migration adds maven dependencies with incorrect scope

1 participant