{"id":19248966,"url":"https://github.com/sbt/flyway-sbt","last_synced_at":"2025-04-04T14:05:57.094Z","repository":{"id":25086213,"uuid":"103141807","full_name":"sbt/flyway-sbt","owner":"sbt","description":"An sbt plugin for Flyway database migration","archived":false,"fork":false,"pushed_at":"2025-03-21T21:14:12.000Z","size":199,"stargazers_count":128,"open_issues_count":12,"forks_count":40,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-28T13:06:55.621Z","etag":null,"topics":["continuous-delivery","continuous-deployment","database","database-migrations","devops","flyway","sbt","sbt-plugin","scala","sql"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-11T13:50:24.000Z","updated_at":"2025-03-21T21:14:16.000Z","dependencies_parsed_at":"2024-12-13T23:23:27.499Z","dependency_job_id":"2d1497d0-2a91-4933-a413-0fa4a7585d5c","html_url":"https://github.com/sbt/flyway-sbt","commit_stats":{"total_commits":103,"total_committers":25,"mean_commits":4.12,"dds":0.8058252427184466,"last_synced_commit":"94ca4daac371257a2926169f6d7c02de5996ce7b"},"previous_names":["sbt/flyway-sbt","flyway/flyway-sbt"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fflyway-sbt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fflyway-sbt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fflyway-sbt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fflyway-sbt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbt","download_url":"https://codeload.github.com/sbt/flyway-sbt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247190226,"owners_count":20898699,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["continuous-delivery","continuous-deployment","database","database-migrations","devops","flyway","sbt","sbt-plugin","scala","sql"],"created_at":"2024-11-09T18:11:46.003Z","updated_at":"2025-04-04T14:05:57.079Z","avatar_url":"https://github.com/sbt.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CI](https://github.com/sbt/flyway-sbt/workflows/CI/badge.svg)\n\n## sbt plugin for [Flyway](https://flywaydb.org)\n\nWelcome to the home for the sbt plugin for flyway. The [user manual](https://davidmweber.github.io/flyway-sbt-docs/)\nwill tell you how to get started. This project is based on the original \n[flyway-sbt](https://github.com/flyway/flyway/tree/flyway-4.2.0/flyway-sbt) that was in the flyway repository through \nversion 4.2.1.\n\n### Getting started\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.sbt/flyway-sbt_2.12_1.0)](https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.github.sbt%22%20AND%20a%3A%22flyway-sbt_2.12_1.0%22)\n\nAdding Flyway to your build is very easy. First, update to your `project/plugin.sbt` file to include:\n\n```sbt\n addSbtPlugin(\"com.github.sbt\" % \"flyway-sbt\" % \"x.y.z\")\n```\nPlease check out [Maven Central](https://repo1.maven.org/maven2/com/github/sbt/flyway-sbt_2.12_1.0/) \nfor versions of `flyway-sbt` for previous versions of Flyway.\n\nEdit `build.sbt` to enable the plugin and configure the database access:\n```sbt\nenablePlugins(FlywayPlugin)\nversion := \"0.0.1\"\nname := \"flyway-sbt-test1\"\n\nlibraryDependencies += \"org.hsqldb\" % \"hsqldb\" % \"2.5.0\"\n\nflywayUrl := \"jdbc:hsqldb:file:target/flyway_sample;shutdown=true\"\nflywayUser := \"SA\"\nflywayPassword := \"\"\nflywayLocations := Seq(\"filesystem:src/main/resources/db/migration\")\nTest/ flywayUrl := \"jdbc:hsqldb:file:target/flyway_sample;shutdown=true\"\nTest/ flywayUser := \"SA\"\nTest/ flywayLocations := Seq(\"filesystem:src/main/resources/db/migration\")\nTest/ flywayPassword := \"\"\n```\n\nMigrate your database using `sbt flywayMigrate` or clean it using `sbt flywayClean`.\n\nTo run flyway before any code generation, let compile depend on flywayMigrate\n```\n    (Compile / compile) := ((Compile / compile) dependsOn flywayMigrate).value,\n```\n\nNote that the `flywayTarget` setting has been disabled due to [this bug](https://github.com/flyway/flyway/issues/1919).\n\n## Maintenance\nThis repository is a community project and not officially maintained by the Flyway Team at Redgate.\nThis 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.\n\n### Building and testing\nBuild and testing uses `sbt` and it's plugin [testing framework](http://www.scala-sbt.org/1.x/docs/Testing-sbt-plugins.html). \nThe test cases are pretty basic (hint: we need more of those). There is no support for `sbt` prior to 1.0. Use the \n[legacy plugin](https://github.com/flyway/flyway/tree/master/flyway-sbt) instead.\n\nNote that from v5.0.0 onwards, the plugin has to be explicitly enabled using `enablePlugins(FlywayPlugin)`. This prevents\nFlyway actions triggering unrelated build activity and addresses [this issue](https://github.com/flyway/flyway/issues/1329).\n\nBuild and test the plugin using\n\n```bash\nsbt scripted\n```\n\nEarly adopters should just publish a clone or fork of this repository locally:\n```bash\ngit clone https://github.com/sbt/flyway-sbt.git\ncd flyway-sbt\nsbt publishLocal\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fflyway-sbt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbt%2Fflyway-sbt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fflyway-sbt/lists"}