Jar Dirs

Jar Directories

Description

Comma-separated list of directories containing JDBC drivers and Java-based migrations.

Like with SQL migrations, we recommend storing Java-based migrations in a separate folder to your Flyway installation. This allows upgrading the commandline package by simply replacing the whole installation folder.

Default

<install-dir>/jars

Note: We do not recommend relying on the default value. It may be changed in a future release.

Usage

This configuration parameter will only be used in the command line version of Flyway.

Commandline

./flyway -jarDirs="/my/jar/dir1,/my/jar/dir2" info

To configure a named environment via command line when using a TOML configuration, prefix jarDirs with environments.{environment name}. for example:

./flyway "-environments.sample.jarDirs=/my/jar/dir1,/my/jar/dir2" info

TOML Configuration File

[environments.default]
jarDirs = ["/my/jar/dir1", "/my/jar/dir2"]

Configuration File

flyway.jarDirs=my/jar/dir1,my/jar/dir2

Environment Variable

FLYWAY_JAR_DIRS=/my/jar/dir1,my/jar/dir2

API

Not available

Gradle

Not available

Maven

Not available


Didn't find what you were looking for?