tlberglund/gradle-liquibase-plugin

authentication failed for user "net.saliman.gradle.liquibase.Activity@5d046243"

Closed this issue · 1 comments

I have the following block:
activities {
main {
changeLogFile 'fileXML.xml'
url dbUrl
username dbUserName
password dbPassword
}
another {
changeLogFile 'anotherFile.xml'
url dbUrl
username dbUsername
password dbPassword
}
runList = "main,another"
}

dbUrl, dbUserName and dbPassword are defined in the gradle.properties file. When I run gradlew update it runs the first activity just fine, but for the second one I get:

  • What went wrong:
    Execution failed for task ':update'.

    liquibase.exception.LiquibaseException: Liquibase Update Failed: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "net.saliman.gradle.liquibase.Activity@5d046243"

Any clues?

I'm guessing it has to do with the fact that dbUserName has a lowercase "n" in the another activity. Do you still get an error when you convert it to uppercase?