JetBrains / package-search-gradle-plugins

Gradle plugins for Docker, Terraform and Liquibase.
Apache License 2.0
32 stars 8 forks source link

Liquibase | UpdateSql file output #2

Closed crorodriguezro closed 2 years ago

crorodriguezro commented 3 years ago

Hi! I'm trying to write the output of updateSql to a file. But the file is not being generated. My config looks like this:

liquibase { activities { all { arguments["changeLogFile"] = "src/main/resources/db/dbchangelog-master.yaml" arguments["outputFile"] = "script.sql" }

    register("local") {
        arguments["url"] = "jdbc:sqlserver://localhost:1433"
        arguments["username"] = ""
        arguments["password"] = ""
        arguments["outputFile"] = "script.sql"
    }
}

}

Do you know what is the correct config? Thanks in advance

lamba92 commented 2 years ago

Try with arguments["outputFile"] = file("$buildDir/output/script.sql").absolutePath and check build/output/ folder in your project.

lamba92 commented 2 years ago

I'll close it. Let me know if you need further help.