Closed matejsp closed 3 years ago
Yes, I know about this issue. Since version 2.0.0, the flyway dependencies are already optional. 2.0.0-beta1 is available for testing, so you can try it and give me feedback.
Closing in favor of https://github.com/zonkyio/embedded-database-spring-test/issues/21
We are not using Flyway. I believe it's dependency should be marked as optional.
If i don't flyway is picked up automatically (since it is in the classpath) and startup crashes (due to auto config):
One workaround is to define the following propery:
But prefered way would be to exclude flyway dependency:
However we get:
There is code (unused private boolean?) in EmbeddedPostgresContextCustomizerFactory:
Shoudn't that be moved to FlywayEmbeddedPostgresDataSourceFactoryBean ? or removed?