liquibase / liquibase-gradle-plugin

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

Problem with labelFilter argument #123

Open vat78 opened 1 year ago

vat78 commented 1 year ago

Hello! I tried to add labelFilter value to the liquibase.activities.main but it was converted to '--label-filter' and failed the update.

My build.gradle looks like:

liquibase {
    activities {
        main {
            changelogFile "./root-changelog.yml"
            url "jdbc:postgresql:localhost:5432/test"
            ....
            labelFilter "init"
        }
    }
}

The result of running the update job: Unexpected argument(s): --label-filter=init

Version of the gradle plugin is 2.2.0, gradle 8.1, openjdk 17

eric-creekside commented 11 months ago

@vat78 did you ever find a resolution to this? A workaround seems to be to use labels which is an alias for labelFilter in recent versions of Liquibase.