liquibase / liquibase-gradle-plugin

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

Cannot pass more than one context with Gradle Plugin #118

Open Djimi opened 1 year ago

Djimi commented 1 year ago

Hi, I have an issue when I try to run liquibase command and specify more than one context.

For example:

gradlew -PliquibaseExtraArgs="contexts=test,default" db-migration-tool:updateSQL

throws me that exception:

* What went wrong:
Execution failed for task ':db-migration-tool:updateSql'.
> 1

When I run this wich --stacktrace option I can see that there is IndexOutOfBoundException. I guess the issue is that it thinks that after test context it will get another property while it is part of the contexts property. Is there a workaround this? I cannot find any information in the documentation of the plugin (only that spaces are not allowed).

Thank in advance!