New! – Spin up instant copies of your dev databases in the cloud for free Learn more

Flyway Documentation

Poll

Accessing Older Versions of Flyway

Historically, Flyway Community edition artifacts were uploaded to Maven Central and Gradle Plugins, whereas Pro & Enterprise editions were only available through our own server, repo.flywaydb.org.

Since Flyway 6.4.1, Pro & Enterprise edition artifacts are uploaded to Maven Central and Gradle Plugins, alongside Community edition.

Since Flyway 7.0, Flyway Pro & Enterprise editions are renamed to Flyway Teams.

For all versions of Community, and versions of paid editions beyond 6.4.1:

For versions of Pro & Enterprise prior to 6.4.1, you must use the legacy repository at repo.flywaydb.org.

For example, to access Flyway 5.2.4:

Maven
<dependency>
    <groupId>org.flywaydb</groupId>
    <artifactId>flyway-core</artifactId>
    <version>5.2.4</version>
</dependency>
Gradle
compile "org.flywaydb:flyway-core:5.2.4"
Binary flyway-core-5.2.4.jar md5 sha1
Sources flyway-core-5.2.4-sources.jar md5 sha1
Maven <project-dir>/pom.xml
<repositories>
    <repository>
        <id>flyway-repo</id>
        <url>https://repo.flywaydb.org/repo</url>
    </repository>
    ...
</repositories>

<dependencies>
    <dependency>
        <groupId>org.flywaydb.pro</groupId>
        <artifactId>flyway-core</artifactId>
        <version>5.2.4</version>
    </dependency>
    ...
</dependencies>
<user-home>/.m2/settings.xml
<settings>
    <servers>
        <server>
            <id>flyway-repo</id>
            <username>your-flyway-license-key</username>
            <password>flyway</password>
        </server>
    </servers>
    ...
</settings>
Gradle
repositories {
    maven {
        url "https://repo.flywaydb.org/repo"
        credentials {
            username 'your-flyway-license-key'
            password 'flyway'
        }
    }
}

dependencies {
    compile "org.flywaydb.pro:flyway-core:5.2.4"
}
Binary flyway-core-5.2.4.jar md5 sha1
Sources flyway-core-5.2.4-sources.jar md5 sha1
Maven <project-dir>/pom.xml
<repositories>
    <repository>
        <id>flyway-repo</id>
        <url>https://repo.flywaydb.org/repo</url>
    </repository>
    ...
</repositories>

<dependencies>
    <dependency>
        <groupId>org.flywaydb.enterprise</groupId>
        <artifactId>flyway-core</artifactId>
        <version>5.2.4</version>
    </dependency>
    ...
</dependencies>
<user-home>/.m2/settings.xml
<settings>
    <servers>
        <server>
            <id>flyway-repo</id>
            <username>your-flyway-license-key</username>
            <password>flyway</password>
        </server>
    </servers>
    ...
</settings>
Gradle
repositories {
    maven {
        url "https://repo.flywaydb.org/repo"
        credentials {
            username 'your-flyway-license-key'
            password 'flyway'
        }
    }
}

dependencies {
    compile "org.flywaydb.enterprise:flyway-core:5.2.4"
}
Binary flyway-core-5.2.4.jar md5 sha1
Sources flyway-core-5.2.4-sources.jar md5 sha1