Closed niktekusho closed 4 years ago
The issue was that there was no Groovy library in the liquibseRuntime, so the plugin couldn't load the Groovy class specified.
I've added a transitive dependency to the plugin, so version 2.0.4 of the plugin should fix the issue.
I confirm 2.0.4
solves the issue, thanks! 👍
Hi! This problem seems to be quite common as I read about other issues. Example: https://github.com/liquibase/liquibase-gradle-plugin/issues/52
Running any liquibase task with the specified '
mainClassName
' property will result in theCould not find or load main class org.liquibase.gradle.OutputEnablingLiquibaseRunner
. Just by commenting out the main class override, the plugin works fine.The plugin is on the latest version (
2.0.3
), and Gradle is at6.4.1
.This is the 'build.gradle' file (will link a sample repository you can try):
Reproduction repo link: https://github.com/niktekusho/liquibase-gradle-plugin-issue-74