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

Jooq-Docker conflicts with the Flyway plugin #26

Open
dmitry-cherkas opened this issue Feb 14, 2023 · 1 comment
Open

Jooq-Docker conflicts with the Flyway plugin #26

dmitry-cherkas opened this issue Feb 14, 2023 · 1 comment

Comments

@dmitry-cherkas
Copy link

com.revolut.jooq-docker depends on the old org.flywaydb:flyway-core:6.4.3 version, which is causing the following warnings during the build time:

> Task :generateJooqClasses
Flyway upgrade recommended: PostgreSQL 14.5 is newer than this version of Flyway and support has not been tested. The latest supported version of PostgreSQL is 12.

Suggested resolution: upgrade the flyway-core dependency to a latest version (9.14.1 as of now).

@dmitry-cherkas
Copy link
Author

Dependency on the old flyway-core is actually causing the plugin to fail, when used together with a fresh version of Gradle Flyway Plugin (org.flywaydb.flyway) due to a method signature update:

Caused by: java.lang.NoSuchMethodError: 'int org.flywaydb.core.Flyway.migrate()'
	at com.revolut.jooq.GenerateJooqClassesTask.migrateDb(GenerateJooqClassesTask.kt:169)
	at com.revolut.jooq.GenerateJooqClassesTask.access$migrateDb(GenerateJooqClassesTask.kt:23)
	at com.revolut.jooq.GenerateJooqClassesTask$generateClasses$$inlined$use$lambda$1.execute(GenerateJooqClassesTask.kt:153)
	at com.revolut.jooq.GenerateJooqClassesTask$generateClasses$$inlined$use$lambda$1.execute(GenerateJooqClassesTask.kt:23)
	at com.revolut.jooq.Docker.runInContainer(Docker.kt:40)
	at com.revolut.jooq.GenerateJooqClassesTask.generateClasses(GenerateJooqClassesTask.kt:152)

I have created a repo to reproduce the issue: https://github.com/dmitry-cherkas/jooq-docker-flyway/

It appears that the signature of org.flywaydb.core.Flyway.migrate() was changed to return org.flywaydb.core.api.output.MigrateResult instead of int.

@dmitry-cherkas dmitry-cherkas changed the title Flyway upgrade recommended Jooq Docker conflicts with the Flyway plugin Mar 8, 2023
@dmitry-cherkas dmitry-cherkas changed the title Jooq Docker conflicts with the Flyway plugin Jooq-Docker conflicts with the Flyway plugin Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant