liquibase / liquibase-gradle-plugin

A Gradle plugin for Liquibase
Other
197 stars 57 forks source link

ClassCastException with Logger #36

Closed alexcase52 closed 5 years ago

alexcase52 commented 6 years ago

Hi, I experience this on java 10, linux, liqubase 3.6.1, liquibase-plugin 1.2.4. Do you have any plans on fixing this? I think the approach there is fine.

stevesaliman commented 6 years ago

I don't know what the plan is to fix CORE-3159, but a pull request has been submitted to the Liquibase Gradle plugin that might work around the problem.

I'm hoping to get time over the weekend to look at it.

regrog commented 6 years ago

https://liquibase.jira.com/browse/CORE-3159

stevesaliman commented 6 years ago

Thanks to @litpho the latest version of the plugin separates the classpath used by Liquibase from the one Gradle itself uses. I'm still working on getting a final 2.0.0 release out, but until then, I've uploaded the 2.0.0-SNAPSHOT release to the sonatype snapshot repository.

stevesaliman commented 6 years ago

I've just uploaded the latest 2.0.0-SNAPSHOT releases of the Gradle plugin and the Groovy DSL, which should now fully support parsing Liquibase 3.6.1 changelogs.

I still have some testing to do to make sure the serializers work, and I need to update the documentation, but I hope to have a final release done soon. In the meantime, users who need to use versions of Liquibase later than 3.4.2 can use the SNAPSHOT releases to get up and running.

stevesaliman commented 5 years ago

Release 2.0.0 is now official! Liquibase 3.6.1 is now fully supported, and there are no class cast problems when it runs.

However, Liquibase itself has some issues with logging and console output, as documented in CORE-3220. Until that gets fixed, you can enable console output by adding mainClassName 'org.liquibase.gradle.OutputEnablingLiquibaseRunner' to the liquibase block of build.gradle.

Version 2.0.0 is a breaking change. I tried to document the changes well, please feel free to submit pull requests if there are ways to make the documentation clearer.

eximius313 commented 5 years ago

https://liquibase.jira.com/browse/CORE-3159 is fixed now