sbt/flyway-sbt
sbt/flyway-sbt has 132 GitHub stars and 41 forks. Star changes are not measured yet. Last checked 2026-11-10 01:09 UTC. Last push 2026-11-05.
An sbt plugin for Flyway database migration
Measured star growth
- in 24h
- Update delayed
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalsbt plugin for Flyway
Welcome to the home for the sbt plugin for flyway. This project is based on the original flyway-sbt that was in the flyway repository through version 4.2.1.
Getting started
Adding Flyway to your build is very easy. First, update to your project/plugin.sbt file to include:
addSbtPlugin("com.github.sbt" % "flyway-sbt" % "x.y.z")
Please check out Maven Central
for versions of flyway-sbt for previous versions of Flyway.
Edit build.sbt to enable the plugin and configure the database access:
enablePlugins(FlywayPlugin)
version := "0.0.1"
name := "flyway-sbt-test1"
libraryDependencies += "org.hsqldb" % "hsqldb" % "2.7.4"
flywayUrl := "jdbc:hsqldb:file:target/flyway_sample;shutdown=true"
flywayUser := "SA"
flywayPassword := ""
flywayLocations := Seq("filesystem:src/main/resources/db/migration")
Test/ flywayUrl := "jdbc:hsqldb:file:target/flyway_sample;shutdown=true"
Test/ flywayUser := "SA"
Test/ flywayLocations := Seq("filesystem:src/main/resources/db/migration")
Test/ flywayPassword := ""
Migrate your database using sbt flywayMigrate or clean it using sbt flywayClean.
To run flyway before any code generation, let compile depend on flywayMigrate
(Compile / compile) := ((Compile / compile) dependsOn flywayMigrate).value,
Note that the flywayTarget setting has been disabled due to this bug.
Maintenance
This repository is a community project and not officially maintained by the Flyway Team at Redgate. This project is looked after only by the open source community. Community Maintainers are people who have agreed to be contacted with queries for support and maintenance.
Building and testing
Build and testing uses sbt and it's plugin testing framework.
The test cases are pretty basic (hint: we need more of those). There is no support for sbt prior to 1.0. Use the
legacy plugin instead.
Note that from v5.0.0 onwards, the plugin has to be explicitly enabled using enablePlugins(FlywayPlugin). This prevents
Flyway actions triggering unrelated build activity and addresses this issue.
Build and test the plugin using
sbt scripted
Early adopters should just publish a clone or fork of this repository locally:
git clone https://github.com/sbt/flyway-sbt.git
cd flyway-sbt
sbt publishLocal
Explore related projects
Asabeneh/30-Days-Of-Python
The 30 Days of Python programming challenge is a step-by-step guide to learn the Python programming language in 30 days. This challenge may take more than 100 days. Follow your own pace. These videos may help too: https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,486 starsgrafana/grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
77,790 starsredis/redis
For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.
77,332 starsapache/superset
Apache Superset is a Data Visualization and Data Exploration Platform
75,455 stars