以下は簡単なので SQLite ですが適宜 JDBC の classpath と url を変更.
build.gradle
apply plugin: 'flyway'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.flywaydb:flyway-gradle-plugin:3.1'
classpath 'org.xerial:sqlite-jdbc:3.8.7'
}
}
flyway {
url = 'jdbc:sqlite:/path/to/sqlite/db/file'
locations = ['filesystem:/path/to/migration/sql/files']
}