Closed zhangpp520 closed 8 years ago
At the moment, there isn't another way to set it. The JDBC driver needs to be in the build script's classpath when it executes liquibase tasks, and buildscript
block is a standard way of including external dependencies.
There might be some clever way of specifying the dependency in the liquibase closure and fixing the classpath at runtime, but to be honest, this is a pretty low priority since it would add complexity to the plugin, and a simple, standard way exists to get the classpath we need.
When I use the format
in the build.gradle,I got an error:
So,I must add this line
before the plugins targets.Is there another way to set the JDBC driver classpath ?