Redgate Flyway

Tutorial - Adding drivers to the classpath


When using the CLI, you can add drivers to the classpath by dropping the .jar files for the drivers you want to include into the drivers folder of your Flyway installation.

 flyway
   conf
   drivers  //here
   jre
   lib
   licenses
   sql
   flyway
   flyway.cmd
   README.txt

Other libraries can be added to the lib folder or included in a separate directory, included via the jarDirs configuration parameter.


You cannot currently download drivers using Flyway Desktop. You have to follow the same steps as for the command-line.

When using the API, the jars you wish to include should be added as dependencies of the overall project, just as you would with any other java dependencies.

Simply add the library as a regular dependency of your maven project. e.g:

<dependencies>
    <dependency>
        <groupId>org.hsqldb</groupId>
        <artifactId>hsqldb</artifactId>
        <version>1.8.0.10</version>
    </dependency>
</dependencies>



Didn't find what you were looking for?