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

Spring Boot 3.4.1 fails with Flyway v11 due to 'cleanOnValidationError' removal #43770

Open
ali-arslan-1 opened this issue Jan 10, 2025 · 2 comments
Labels
status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged

Comments

@ali-arslan-1
Copy link

ali-arslan-1 commented Jan 10, 2025

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:

  1. Use Spring Boot 3.4.1 in a project.
  2. Upgrade to Flyway v11.
  3. Start the application.
  4. Observe the error during Flyway initialization.

Environment:

  • Spring Boot Version: 3.4.1
  • Flyway Version: 11.0.0
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jan 10, 2025
@wilkinsona
Copy link
Member

wilkinsona commented Jan 10, 2025

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.

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Jan 10, 2025
@philwebb philwebb changed the title Spring Boot 3.4.1 fails with Flyway v11 due to cleanOnValidationError removal Spring Boot 3.4.1 fails with Flyway v11 due to 'cleanOnValidationError' removal Jan 11, 2025
@spring-projects-issues
Copy link
Collaborator

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.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: feedback-reminder We've sent a reminder that we need additional information before we can continue status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

No branches or pull requests

3 participants