Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot pass more than one context with Gradle Plugin #118

Open
Djimi opened this issue Apr 5, 2023 · 1 comment
Open

Cannot pass more than one context with Gradle Plugin #118

Djimi opened this issue Apr 5, 2023 · 1 comment

Comments

@Djimi
Copy link

Djimi commented Apr 5, 2023

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!

@stevesaliman
Copy link
Collaborator

This should be fixed with the 3.0.0 release.

the liquibaseExtraArgs property has been replaced with a much simpler way to declare/override argulents on the command line. In your case yuo can now specify -PliquibaseContexts=test,default andit should pass both contexts to Liquibase.

Is this still an issue with the latest release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants