-
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
Upgrading to flyway 10.0.0 (from 9.22.3) causes Spring Boot flywayInitializer
to fail for MySQL 8.0.32
#3777
Comments
Hi @fraggerfox , have you tried the proposed action in #3780? |
@JasonLuo-Redgate : The part of the gradle configuration using flyway looks like this dependencies {
compileOnly("org.flywaydb:flyway-core:10.0.0")
implementation("org.flywaydb:flyway-mysql:10.0.0")
}
buildscript {
dependencies {
classpath("org.flywaydb:flyway-mysql:10.0.0")
}
} This is how it was working with Let me know if I missed out any steps in the proposed action. |
You might need to include a dependency on the |
@JasonLuo-Redgate : You are right and that is also what I did, the following change was done
but I did not notice the error had changed to.
This seems to be an issue with Spring Boot, an issue has been opened at their end for this spring-projects/spring-boot#38164 The issue is now similar to #3781 |
@fraggerfox check if you have declared the |
@sergiolinares I checked and there isn't, all references have been updated to use Let me know if I am overlooking something at my end here. |
The Sprint boot ticket is now fixed spring-projects/spring-boot#38164 |
They have not made a release yet, but for now this ticket can be closed. Once they do a release I shall update at my end and if there are any problems, will open a new issue |
Which version and edition of Flyway are you using?
Community 10.0.0
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)
This is the latest version.
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Gradle plugin and Java API (through Spring Boot).
Plugin seems to work, the API is failing.
Which database are you using? (Type & version)
MySQL 8.0.32
Which operating system are you using?
MacOS / Linux (Build fails in both due to the same reason)
What did you do? (Please include the content causing the issue, any relevant configuration settings, the SQL statement(s) that failed (if any), and the command you ran)
Updated the library from
9.22.3
to10.0.0
in the Spring Boot application.There were no changes other than bumping the following flyway dependencies to
10.0.0
from9.22.3
org.flywaydb:flyway-mysql
org.flywaydb:flyway-core
org.flywaydb.flyway
(plugin)Switching the library back to
9.22.3
makes the application run as expected.What did you expect to see?
The Spring Boot application runs as expected without any failures after updating Flyway to
10.0.0
.What did you see instead?
When trying to run the tests from the application, it fails with the following message.
further below
Reference to the mentioned class path resource
The text was updated successfully, but these errors were encountered: