Skip to content
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

Adding a quarkusDev dependency on quarkus-flyway does not run migrations on start #21822

Closed
josephearl opened this issue Nov 30, 2021 · 4 comments · Fixed by #21877
Closed

Adding a quarkusDev dependency on quarkus-flyway does not run migrations on start #21822

josephearl opened this issue Nov 30, 2021 · 4 comments · Fixed by #21877
Assignees
Labels
area/flyway area/gradle Gradle kind/bug Something isn't working
Milestone

Comments

@josephearl
Copy link

Describe the bug

Add a dependency quarkusDev 'io.quarkus:quarkus-flyway' to build.gradle and set quarkus.flyway.migrate-on-start to true in application properties.

Start the application with ./gradlew quarkusDev.

Expected behavior

Migrations are performed when the application starts in dev mode.

Actual behavior

The migrations are not performed.

Replacing the quarkusDev dependency with an implementation dependency works and the migrations are performed.

How to Reproduce?

No response

Output of uname -a or ver

Darwin 20.6.0 Darwin Kernel Version 20.6.0: Tue Oct 12 18:33:42 PDT 2021; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64

Output of java -version

openjdk version "11.0.8" 2020-07-14 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.8+10) OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.8+10, mixed mode)

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.5.0.Final

Build tool (ie. output of mvnw --version or gradlew --version)

Gradle 7.3

Additional information

No response

@josephearl josephearl added the kind/bug Something isn't working label Nov 30, 2021
@quarkus-bot
Copy link

quarkus-bot bot commented Nov 30, 2021

/cc @cristhiank, @gastaldi, @geoand, @gsmet

@geoand geoand added the triage/invalid This doesn't seem right label Nov 30, 2021
@josephearl josephearl reopened this Nov 30, 2021
@quarkus-bot quarkus-bot bot removed the triage/invalid This doesn't seem right label Nov 30, 2021
@josephearl
Copy link
Author

josephearl commented Nov 30, 2021

Sorry thought I'd made a mistake because I also had JPA creating some tables as well so closed the issue, but after re-testing this does seem to be an issue.

@geoand geoand added the area/gradle Gradle label Dec 1, 2021
@geoand
Copy link
Contributor

geoand commented Dec 1, 2021

cc @glefloch

@glefloch
Copy link
Member

glefloch commented Dec 1, 2021

Thanks for reporting this, I will have a look ASAP

@glefloch glefloch self-assigned this Dec 1, 2021
@josephearl josephearl changed the title Adding a quarkusDev dependency on quarkus-flyway does run migrations on start Adding a quarkusDev dependency on quarkus-flyway does not run migrations on start Dec 1, 2021
@quarkus-bot quarkus-bot bot added this to the 2.6 - main milestone Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/flyway area/gradle Gradle kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants