How can I inject a Spring bean in class that implements org.flywaydb.core.api.migration.JavaMigration
?
It seems it's been added in Flyway 6.0: This issue seems to talk about it, but I don't really see how to proceed.
I've also seen this answer which seems to talk about it, but I was hoping there was a shorter solution (I don't have the requirement about the JPA dependency that the author speaks about).
Thanks