-
Notifications
You must be signed in to change notification settings - Fork 353
Circular depends-on relationship with Flyway and Liquibase #1480
Comments
@jnizet can you please share a sample we can run ourselves rather than the code in text above. I've created a sample with the dependencies you've described and I can't reproduce the problem. |
@jnizet Thanks. How do I reproduce the problem? I did build the project and ran it using |
Ignore me JB, I thought this was AOT specific and it isn't. Building a native image lets me reproduce the problem. @sdeleuze can you please take over? |
I was answering you, but you found it. Sorry for not having been clear enough. |
I can reproduce this bug with |
Hum, unless I miss something, I can reproduce after a new build without changing anything, so this error could be not always reproductible. Anyway I reopen. |
I've the same issue, but with Liquibase....
|
Based on my tests, it seems it was cause by skipping the sorting of After this change, @jnizet demo breaks with this error which seems Flyway specific and tracked by #778:
|
For the |
I've noticed that Flyway wasn't listed in the supported libraries in the documentation, and also noticed that there is an issue(#778) already about the missing Flyway support, but anyway, before realizing that, I tried to use a ntive image with Flyway, and got a different issue than the one described in #778, that could reveal something wrong elsewhere, because the bug seems to be about bean wiring rather than about an actual Flyway support issue, so I decided to post it.
Here's the exception I get when using Flyway in a minimal project (see code below)
And here's the code of the minimal repro I used to generate this stack trace (generated from Spring initializr, with Kotlin, gradle, JDBC, Web, Flyway and H2). This code works fine in normal, non-native mode.
The text was updated successfully, but these errors were encountered: