Get the most out of Flyway v7 - Sign up for our webinar on the Redgate Hub ▶ Watch now

Resolver

Description

Comma-separated list of fully qualified class names of custom MigrationResolver implementations to be used in addition to the built-in ones for resolving Migrations to apply.

You must ensure that the resolver is available on the classpath (see Adding to the classpath).

Usage

Commandline

./flyway -resolvers="my.resolver.MigrationResolver" info

Configuration File

flyway.resolvers=my.resolver.MigrationResolver

Environment Variable

FLYWAY_RESOLVERS=my.resolver.MigrationResolver

API

Flyway.configure()
    .resolvers("my.resolver.MigrationResolver")
    .load()

Gradle

flyway {
    resolvers = 'my.resolver.MigrationResolver'
}

Maven

<configuration>
    <resolvers>my.resolver.MigrationResolver</resolvers>
</configuration>