-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Does flyway 6.0.0-beta work well with Java12 or Spring boot 2.1.3? #2333
Comments
Spring Boot is not yet compatible with Flyway 6.0. They will be compatible once 6.0 goes GA. |
Flyway 6 is GA now (I assume), and Spring Boot still not compatible on a quick scan? GitHub Dependabot picked up Flyway 6 this morning, and I got the same error? I'm no no rush, so it's not a big deal, but if there's an update about the support for Spring Boot, might be a good idea to put new information here. |
I've been futilely fighting with Flyway for the last 3 days. It made me really frustrated and I find info in this issue very useful - finally changed version from 6.0 to 5.2.4 and everything is clear now. |
FWIW, the Spring Boot issue relating to this is: Sounds like there are still some issues to work out. |
Ok, sounds like this'll be resolved in Spring Boot 2.2.0: spring-projects/spring-boot#17993 |
Which version and edition of Flyway are you using?
I'm using Flyway 6.0.0-beta under Java12 env.
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
When I run
./gradlew bootRun
, I got this Exceptionjava.lang.ClassNotFoundException: org.flywaydb.core.api.callback.FlywayCallback
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
run
./gradlew bootRun
on terminal.Java 12
Gradle 5.2.1
Which database are you using (type & version)?
Postgres 11.2
Which operating system are you using?
MacOs
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
I'm using Java12 and flyway 6.0.0-beta.
The gradle config I set:
The following is the error:
I'm not sure it's related to my JDBC driver or Java version or Spring version...
But if I downgrade flyway to 5.2.4 and then run the application, the
flyway schema history
table will be created. Thank you!What did you expect to see?
The
flyway schema history
table will be created.What did you see instead?
java.lang.ClassNotFoundException: org.flywaydb.core.api.callback.FlywayCallback
The text was updated successfully, but these errors were encountered: