liquibase-gradle-plugin icon indicating copy to clipboard operation
liquibase-gradle-plugin copied to clipboard

Problem with labelFilter argument

Open vat78 opened this issue 1 year ago • 2 comments

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

vat78 avatar Apr 27 '23 11:04 vat78

@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.

eric-creekside avatar Aug 03 '23 12:08 eric-creekside

Version 3.0.0 of the plugin completely overhauled the way the plugin configures tasks. Is this still an issue with the latest version?

stevesaliman avatar Aug 04 '24 16:08 stevesaliman