{"id":22768298,"url":"https://github.com/katta/gradle-flyway-plugin","last_synced_at":"2025-06-26T02:36:55.921Z","repository":{"id":5109345,"uuid":"6273301","full_name":"katta/gradle-flyway-plugin","owner":"katta","description":"Gradle plugin for flyway database change management tool","archived":false,"fork":false,"pushed_at":"2012-11-06T11:56:23.000Z","size":521,"stargazers_count":9,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T01:51:21.192Z","etag":null,"topics":["flyway","flyway-plugin","gradle-plugin","groovy"],"latest_commit_sha":null,"homepage":null,"language":"Groovy","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Q42/LiveJS","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-18T05:02:57.000Z","updated_at":"2018-12-12T01:40:31.000Z","dependencies_parsed_at":"2022-07-05T05:00:23.250Z","dependency_job_id":null,"html_url":"https://github.com/katta/gradle-flyway-plugin","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/katta/gradle-flyway-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katta%2Fgradle-flyway-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katta%2Fgradle-flyway-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katta%2Fgradle-flyway-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katta%2Fgradle-flyway-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katta","download_url":"https://codeload.github.com/katta/gradle-flyway-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katta%2Fgradle-flyway-plugin/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261987762,"owners_count":23240907,"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":["flyway","flyway-plugin","gradle-plugin","groovy"],"created_at":"2024-12-11T14:10:58.166Z","updated_at":"2025-06-26T02:36:55.884Z","avatar_url":"https://github.com/katta.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gradle plugin for Flyway\n\nThis plugin povides gradle tasks to run flyway migrations\n\n## Build Status\n\n[![Build Status](https://secure.travis-ci.org/katta/gradle-flyway-plugin.png)](http://travis-ci.org/katta/gradle-flyway-plugin)\n\n# Flyway Tasks\n\n    flywayClean - Drops all database objects including the schema version metatable\n    flywayInit - Initializes the database with flyway schema version metatable\n    flywayMigrate - Migrates the database with migrations\n    flywayStatus - Prints the current version of the schema\n    flywayValidate - Validates the applied migrations against the ones available on the classpath\n\nYou can get this help by running `gradle tasks --all` under `Flyway tasks` section also. \n\n# Usage\n\n```groovy\nbuildscript {\n    repositories {\n        mavenCentral()\n        maven {\n            url uri('http://katta.github.com/repository')\n        }\n    }\n    dependencies {\n        classpath 'org.katta.gradle.api.plugins:flyway:[VERSION]'\n        classpath 'postgresql:postgresql:9.1-901.jdbc4'\n    }\n}\n\napply plugin: 'flyway'\n\nflyway {\n    driver='org.postgresql.Driver'\n    url='jdbc:postgresql://127.0.0.1/flyway'\n    user='postgres'\n    password='s#cRet'\n}\n```\n\nTo use flyway plugin all you have to do is configure your gradle build with the above settings.\n\n* Configure the repositories in the `buildscript` closure where gradle can download build dependencies\n* Add dependencies to `flyway plugin` and the `database driver` in `dependencies` section of `buildscript`\n* Apply flyway plugin by declaring `apply plugin: 'flyway'`\n* Specify the flyway configuration by setting `configFile` in flyway closure to the configuration file path.\n\n## Flyway configuration\n\nYou can configure flyway plugin by specifying the appropritate config values in flyway closure like this\n\n```groovy\nflyway {\n    driver='org.postgresql.Driver'\n    url='jdbc:postgresql://127.0.0.1/flyway'\n    user='postgres'\n    password='s#cRet'\n}\n```\n\nThe only mandatory configs are the ones mentioned above. Apart from this the following configs are supported\n\n    schemas\n    table\n    locations\n    sqlMigrationPrefix\n    sqlMigrationSuffix\n    encoding\n    placeholderPrefix\n    placeholderSuffix\n    target\n    validationMode\n    validationErrorMode\n    disableInitCheck\n\nFor the details on what each of the above config means refer flyway [wiki](http://code.google.com/p/flyway/wiki/CommandLineMigrate).\n\n# Release Versions\n\n* Latest Release 1.3\n* [Release specific documentation](https://github.com/katta/gradle-flyway-plugin/wiki/Release-Versions)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatta%2Fgradle-flyway-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatta%2Fgradle-flyway-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatta%2Fgradle-flyway-plugin/lists"}