documentation/Reference/Usage/Adding to the classpath.md
Flyway ships with support for a large number of databases and functionality, but due to limitations (such as licensing) it can't ship containing everything it supports. In these situations, Flyway will load the extra support/functionality if it is present on the classpath.
How you add to the classpath depends on how you are invoking Flyway.
When using the CLI, you can add .jar files to the classpath by either:
jarDirs configuration parameter.drivers/ folder of your Flyway installationWhen 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.
See extending the gradle classpath.
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>
The most common library to be added to Flyway is those that add JDBC driver support. For example the Informix database is supported by Flyway, but the JDBC driver is not shipped with it. Therefore the com.ibm.informix:jdbc:4.10.10.0 dependency needs to be added to the classpath to allow Flyway to work with it. See each database page for the JDBC driver they use and whether they are shipped with Flyway or not.
Other uses for adding libraries are adding logging support, adding Java migrations, and more.