Share your experience with Database DevOps by taking part in the 2021 State of Database DevOps survey Take the survey

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 Flwyay 6.4.1, Pro & Enterprise edition artifacts are uploaded to Maven Central and Gradle Plugins, alongside Community edition.

For all versions of Community, and versions of Pro & Enterprise 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