jooq-modelator icon indicating copy to clipboard operation
jooq-modelator copied to clipboard

YAML parsing for Liquibase broken in 3.7+

Open robfletcher opened this issue 3 years ago • 5 comments

Upgrading from 3.6.0 to 3.8.0 I now get a failing Gradle build with the following error:

liquibase.exception.UnknownChangelogFormatException: Cannot find parser that supports /Users/fletch/netflix/spinnaker/workspace/keel/keel-sql/src/main/resources/db/databaseChangeLog.yml

It's not clear if this is a bug or whether I'm now expected to add an additional dependency.

I tried 3.7.0 and I get the same error.

robfletcher avatar Jun 29 '20 17:06 robfletcher

Adding jooqModelatorRuntime("org.yaml:snakeyaml") also makes no difference

robfletcher avatar Jun 29 '20 17:06 robfletcher

Thank you for your report.

I can reproduce the problem, and have written a new test for it.

I have a workaround that I could quickly deploy, but I have the feeling that other Liquibase Classloader issues (#12) are related to this, and I'll need some more time to look into them.

ayedo avatar Jun 29 '20 21:06 ayedo

Might be related with https://liquibase.jira.com/browse/CORE-3495, even though in that ticket, it was liquibase 3.8.0 that introduced the issue. Here it was still working with 3.8.0 IMHO.

ursjoss avatar Jun 30 '20 08:06 ursjoss

Thanks @ursjoss for your hint. I'll keep an eye on that issue.

I still could not find out how to set the classpath correctly for Liquibase. I have added snakeyaml to the plugin classpath as a workaround while I'm figuring this out. The new test I wrote passes like that.

@robfletcher Can you please check with version 3.9 if this resolves your issue as well?

ayedo avatar Jul 06 '20 18:07 ayedo

@ayedo yes, 3.9.0 works for me. Thanks for the update.

robfletcher avatar Jul 07 '20 17:07 robfletcher