After following the documentation in https://docs.spring.io/spring-boot/how-to/data-initialization.html#howto.data-initialization.migration-tool.flyway for the setup of Flyway, I got the following error after attempting the app startup:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'flywayInitializer' defined in class path resource [org/springframework/boot/autoconfigure/flyway/FlywayAutoConfiguration$FlywayConfiguration.class]: Unsupported Database: PostgreSQL 16.3

It turns out that with Spring Boot 3.3, Flyway was upgraded to version 10 which requires an additional dependency for Posgres and some other databases:

https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.3-Release-Notes#flyway-10

This PR is intended to provide a hint about this additional dependency in the documentation linked above.

Also see https://github.com/openrewrite/rewrite-spring/issues/532

Comment From: jmewes

In this GitHub issue, a comprehensive list of the new dependencies can be found:

https://github.com/flyway/flyway/issues/3780

Comment From: jmewes

@wilkinsona,

Thanks for the feedback. I have added another commit with an attempt to clarify the required dependencies.

Comment From: wilkinsona

Thanks very much, @jmewes.