craftworksgmbh / jooq-codegen-postgres-maven-plugin

Maven plugin to generate jOOQ classes using dockerized postgres database during code generation phase
MIT License
5 stars 2 forks source link

Does not works with Flyway 7 #2

Open mateuszjarzyna opened 3 years ago

mateuszjarzyna commented 3 years ago

Hey, when I'm using new Flyway a got an error

[ERROR] Failed to execute goal at.craftworks.tools.maven:jooq-codegen-postgres-maven-plugin:0.0.3:jooq-generate (jooq-codegen) on project api: Execution jooq-codegen of goal at.craftworks.tools.maven:jooq-codegen-postgres-maven-plugin:0.0.3:jooq-generate failed: An API incompatibility was encountered while executing at.craftworks.tools.maven:jooq-codegen-postgres-maven-plugin:0.0.3:jooq-generate: java.lang.NoSuchMethodError: 'int org.flywaydb.core.Flyway.migrate()'

Can you, please, update your project to new Flyway api?

mateuszjarzyna commented 3 years ago

The old Flyway is nor fully compatible with the new Postgres

[WARNING] Flyway upgrade recommended: PostgreSQL 13.4 is newer than this version of Flyway and support has not been tested. The latest supported version of PostgreSQL is 12.
madisCW commented 3 years ago

Hey, thank you for the report.

Flyway warning, about not being tested with new postgres version, can usually be ignored. However, I will do a round of dependency upgrades in coming weeks to make sure it works with latest flyway version as well.