Flyway Migration Resolvers Setting
Published 15 January 2025
Description
Array 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).
Type
String Array
Default
[]
Usage
Flyway Desktop
This can't be configured via Flyway Desktop, although it will be honoured.
Command-line
Using TOML configuration file
./flyway -migrationResolvers="my.resolver.MigrationResolver" info
Using conf file
./flyway -resolvers="my.resolver.MigrationResolver" info
TOML Configuration File
[flyway]
migrationResolvers = ["my.resolver.MigrationResolver"]
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>