-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Upgrade Liquibase dependency of jooq-meta-extensions-liquibase to 4.x #11659
Comments
Thanks a lot for your report. I think we can bump the required liquibase version to 4 in the next minor release jOOQ |
Unfortunately, 3.15.0 has shipped without this. I'll look into this now for 3.16.0 |
Using this hack, we can continue supporting Liquibase 3.x: FileSystemResourceAccessor fsra;
try {
fsra = new FileSystemResourceAccessor();
}
// [#11659] Continue supporting Liquibase 3.x
catch (NoSuchMethodError e) {
fsra = FileSystemResourceAccessor.class.getConstructor().newInstance();
} An important reminder to keep an eye out for such binary incompatible changes... |
jooq-meta-extensions-liquibase to 4.x
These things have changed in a weird way between Liquibase 3 and 4, see #13031. I'll unsupport Liquibase 3, I guess |
Description
Executing
jooq-meta-extensions-liquibase
with liquibase 4.x fails:The problem seems that liquibase 3 FileSystemResourceAccessor had an empty constructor:
https://github.com/liquibase/liquibase/blob/46fc9ce9ba08806d9ad943983cc99f4f9160aeb7/liquibase-core/src/main/java/liquibase/resource/FileSystemResourceAccessor.java#L24-L28
While liquibase 4 FileSystemResourceAccessor have only a varargs constructor:
https://github.com/liquibase/liquibase/blob/7e12c779a78005663611532212649876d5387b04/liquibase-core/src/main/java/liquibase/resource/FileSystemResourceAccessor.java#L31-L43
My guess is that this is a compiler issue and probably FileSystemResourceAccessor will have to be instantiated dynamically, with
FileSystemResourceAccessor.class.newInstance();
Steps to reproduce the problem
Generate a new project with jhipster and start it.
Using jhipster local installation:
Using jhipster global installation
Log using maven:
https://github.com/jhipster/generator-jhipster-jooq/runs/2117755090?check_suite_focus=true
Log using Gradle:
https://github.com/jhipster/generator-jhipster-jooq/runs/2123282020?check_suite_focus=true
Archives available at: https://github.com/jhipster/generator-jhipster-jooq/actions/runs/658961829
Maven app archive: https://github.com/jhipster/generator-jhipster-jooq/suites/2273735691/artifacts/47464376
Gradle app archive: https://github.com/jhipster/generator-jhipster-jooq/suites/2273735691/artifacts/47464375
Versions
The text was updated successfully, but these errors were encountered: