Closed michael-simons closed 2 years ago
/cc @cristhiank, @gastaldi, @geoand, @gsmet
Additional information
I suspect it to be related to the class loader changes in Quarkus 2.7 as Flyways seems to do it's detecting via class and or service loader, too: https://github.com/flyway/flyway/issues/3168#issuecomment-839561798
Thanks for reporting!
It turns out that isn't a Quarkus issue, it's due to Flyway moving MySQL code to a different module (done here).
If you add
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-mysql</artifactId>
</dependency>
to your pom.xml
, everything works as expected.
Yikes. Thanks for the heads up, I am sure that will hit in another couple of places, too.
It's a bit sad (and absolutely not Quarkus' fault), but there goes the database agnostic build.
Anyhow, I can confirm, this fixes the issue.
Thanks for the heads up
YW!
It's a bit sad (and absolutely not Quarkus' fault), but there goes the database agnostic build.
Yeah, it seems a like a weird move...
FWIW, it's documented in the migration guide: https://github.com/quarkusio/quarkus/wiki/Migration-Guide-2.7#flyway .
And they did the same for SQL Server in the previous version (which was included in 2.6).
IIUC, they did it to fix license issues but I don't know the specifics.
Thanks, @gsmet I should have read this.
Describe the bug
When using the official Quarkus Flyway extension together with Quarkus JDBC Maria DB, tests using devservices will fail with:
That used to worked in 2.6.x.
Expected behavior
Migrations should be applied.
Actual behavior
Flyway fails, see above.
How to Reproduce?
Have some migration and configure migrate on startup
required dependencies
Reproducer is attached: demo.zip
Output of
uname -a
orver
No response
Output of
java -version
java version "11.0.7" 2020-04-14 LTS
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.7.0
Build tool (ie. output of
mvnw --version
orgradlew --version
)Maven
Additional information
Another reproducer (where i discovered the actual issue)
https://github.com/michael-simons/scrobbles4j/runs/5090741197?check_suite_focus=true#step:5:704