While reading the properties from yaml file getting below error. Could please help on this.
Unexpected error running Liquibase: java.lang.RuntimeException: Driver class was not specified and could not be determined from the url (null)
For more information, please use the --logLevel flag
[2021-02-04 19:20:05] SEVERE [liquibase.integration] Unexpected error running Liquibase: java.lang.RuntimeException: Driver class was not specified and could not be determined from the url (null)
liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: java.lang.RuntimeException: Driver class was not specified and could not be determined from the url (null)
at liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:131)
at liquibase.integration.commandline.Main.doMigration(Main.java:1409)
at liquibase.integration.commandline.Main$1.lambda$run$0(Main.java:361)
Example
diff.dependsOn assemble
diffChangeLog.dependsOn assemble
diffChangeLog.dependsOn build
def cfg = new org.yaml.snakeyaml.Yaml().load( new File(âsrc/main/resources/application.ymlâ).newInputStream() )
task(âdevâ) {
doLast {
** liquibase {**
** activities {**
** main {**
** changeLogFile âsrc/main/resources/db/db.changelog-dev-master.ymlâ**
** url cfg[âspring.datasource.urlâ]**
** username cfg[âspring.datasource.usernameâ]**
** password cfg[âspring.datasource.passwordâ]**
** }**
** }**
** runList = âmainâ**
** }**
** } **
}