Using Spring Boot 3.4.1 with Flyway v11 results in an initialization error because the cleanOnValidationError
property has been removed in Flyway v11 Flyway documentation, but Spring Boot still refers to it in FlywayAutoConfiguration.
Error Details:
During Flyway initialization, the following error is thrown:
[org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: cleanOnValidationError has been removed
Steps to Reproduce:
- Use Spring Boot 3.4.1 in a project.
- Upgrade to Flyway v11.
- Start the application.
- Observe the error during Flyway initialization.
Environment:
- Spring Boot Version: 3.4.1
- Flyway Version: 11.0.0
Comment From: wilkinsona
It's not really surprising that Spring Boot 3.4, which uses Flyway 10.20 by default, does not work with a new major version of Flyway that contains breaking changes. That said, I can't produce the problem that you've described.
Looking at Flyway's code, cleanOnValidationError()
still exists. That seems to be expected as the documentation to which you have linked states that it has been deprecated, not that it has been removed.
If you would like us to spend some more time investigating, please spend some time providing a complete yet minimal sample that reproduces the problem. You can share it with us by pushing it to a separate repository on GitHub or by zipping it up and attaching it to this issue.
You may also be interested to know that we have updated to Flyway 11.1 in Spring Boot 3.5.0-M1 that will be released later this month.
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.