tlberglund/gradle-liquibase-plugin

Compatibility between gradle-liquibase-plugin and liquibase 3.0.X

Closed this issue · 2 comments

I use liquibase and gradle and found therefore this plugin. I encountered the problem bellow when executing "gradle update". In liquibase 2.0.5 the method CommandLineUtils.createDatabaseObject expected 8 arguments from the version 3.0.X on an additional argument "defaultCatalogName" has been added.

Is therefore this plugin not compatibel with liquibase 3.0.X?

--- Stacktrace ---
Liquibase Update Failed: liquibase.integration.commandline.CommandLineUtils.crea
teDatabaseObject(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;Ljav
a/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/S
tring;)Lliquibase/database/Database;
SEVERE 31.07.13 23:49:liquibase: liquibase.integration.commandline.CommandLineUt
ils.createDatabaseObject(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/Str
ing;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljav
a/lang/String;)Lliquibase/database/Database;
java.lang.NoSuchMethodError: liquibase.integration.commandline.CommandLineUtils.
createDatabaseObject(Ljava/lang/ClassLoader;Ljava/lang/String;Ljava/lang/String;
Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/la
ng/String;)Lliquibase/database/Database;
at com.augusttechgroup.gradle.liquibase.Main.doMigration(Main.java:614)
at com.augusttechgroup.gradle.liquibase.Main.main(Main.java:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)

The currently released plugin does not support version 3.x, but the next version is being built against 3.1.1. I hope to have this ready to release by the middle of February.

Version 1.0.0 of the plugin has now been released using Liquibase 3.1.1. Note the Maven groupId change.