{"id":16626958,"url":"https://github.com/flyway/flyway-ant","last_synced_at":"2025-10-06T23:19:25.521Z","repository":{"id":55118733,"uuid":"112622181","full_name":"flyway/flyway-ant","owner":"flyway","description":"Flyway Ant tasks","archived":false,"fork":false,"pushed_at":"2025-08-22T06:16:33.000Z","size":10982,"stargazers_count":16,"open_issues_count":1,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-22T08:26:42.174Z","etag":null,"topics":["ant","ant-task","continuous-delivery","continuous-deployment","database","database-migrations","flyway"],"latest_commit_sha":null,"homepage":"","language":"Java","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/flyway.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,"zenodo":null}},"created_at":"2017-11-30T14:39:00.000Z","updated_at":"2025-08-22T06:14:37.000Z","dependencies_parsed_at":"2025-05-15T13:36:20.105Z","dependency_job_id":null,"html_url":"https://github.com/flyway/flyway-ant","commit_stats":null,"previous_names":[],"tags_count":149,"template":false,"template_full_name":null,"purl":"pkg:github/flyway/flyway-ant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyway%2Fflyway-ant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyway%2Fflyway-ant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyway%2Fflyway-ant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyway%2Fflyway-ant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flyway","download_url":"https://codeload.github.com/flyway/flyway-ant/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flyway%2Fflyway-ant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278693516,"owners_count":26029534,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["ant","ant-task","continuous-delivery","continuous-deployment","database","database-migrations","flyway"],"created_at":"2024-10-12T04:12:44.763Z","updated_at":"2025-10-06T23:19:25.488Z","avatar_url":"https://github.com/flyway.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  Flyway Ant Tasks\n\nFlyway Ant plugin provided as an AntLib.\n\n## Dependency\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.ttulka.flyway\u003c/groupId\u003e\n    \u003cartifactId\u003eflyway-ant\u003c/artifactId\u003e\n    \u003cversion\u003e...\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## Usage\n\n```xml\n\u003cproject ... xmlns:flyway=\"antlib:org.flywaydb.ant\"\u003e\n   \u003cpath id=\"flyway.lib.path\"\u003e\n       \u003c!-- include all JARs from the Flyway AntLib distribution --\u003e\n       \u003c!-- you can find the archive with the JARs at https://github.com/flyway/flyway-ant/releases --\u003e\n   \u003c/path\u003e\n\n   \u003cpath id=\"flyway.classpath\"\u003e\n       \u003c!-- include all JARs containing jdbc drivers --\u003e\n       \u003c!-- include all JARs and directories containing sql migrations --\u003e\n       \u003c!-- include all JARs and directories containing compiled java migrations --\u003e\n   \u003c/path\u003e\n\n   \u003ctaskdef uri=\"antlib:org.flywaydb.ant\" resource=\"org/flywaydb/ant/antlib.xml\"\n       classpathref=\"flyway.lib.path\"/\u003e\n\u003c/project\u003e\n```\n\n## Tasks\n\n| Name         | Description | \n| ------------ | ------------|\n| `migrate`    | Migrates the database. |\n| `clean`      | Drops all objects in the configured schemas. |\n| `info`       | Prints the details and status information about all the migrations. |\n| `validate`   | Validates the applied migrations against the ones available on the classpath. |\n| `baseline`   | Baselines an existing database, excluding all migrations up to and including baselineVersion. |\n| `repair`     | Repairs the metadata table. |\n\n## Configuration\n\nThe Flyway Ant tasks can be configured in the following ways:\n\n### Attributes of the task\n\n```xml\n\u003cflyway:migrate driver=\"com.myvendor.Driver\" password=\"mySecretPwd\"\u003e\n    \u003clocations\u003e\n        \u003clocation path=\"largetest/migrations1\"/\u003e\n        \u003clocation path=\"largetest/migrations2\"/\u003e\n    \u003c/locations\u003e\n    \u003cplaceholders\u003e\n        \u003cplaceholder name=\"name\" value=\"Mr. T\"/\u003e\n    \u003c/placeholders\u003e\n    \u003cschemas\u003e\n        \u003cschema name=\"schema1\"/\u003e\n    \u003c/schemas\u003e\n    \u003cresolvers\u003e\n        \u003cresolver class=\"com.mycomp.MyMigrationResolver\"/\u003e\n    \u003c/resolvers\u003e\n    \u003ccallbacks\u003e\n        \u003ccallback class=\"com.mycomp.MyCallback\"/\u003e\n    \u003c/callbacks\u003e\n\u003c/flyway:migrate\u003e\n```\n\n### Through Ant properties\n\n```xml\n\u003c!-- Properties are prefixed with flyway. --\u003e\n\u003cproperty name=\"flyway.password\" value=\"mySecretPwd\"/\u003e\n\n\u003c!-- List are defined as comma-separated values --\u003e\n\u003cproperty name=\"flyway.schemas\" value=\"schema1,schema2,schema3\"/\u003e\n\n\u003c!-- Individual placeholders are prefixed by flyway.placeholders. --\u003e\n\u003cproperty name=\"flyway.placeholders.keyABC\" value=\"valueXYZ\"/\u003e\n\u003cproperty name=\"flyway.placeholders.otherplaceholder\" value=\"value123\"/\u003e\n```\n\n### Through System properties\n\n```\nant -Dflyway.user=myUser -Dflyway.schemas=schema1,schema2 -Dflyway.placeholders.keyABC=valueXYZ\n```\n\nSystem properties *override* Ant properties *override* Task attributes.\n\n## Documentation \n\nFor more details see the [Wiki pages](https://github.com/flyway/flyway-ant/wiki).\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.\nCommunity Maintainers: \n- [@ttulka](https://github.com/ttulka)\n\nIf you would like to be named as an Community Maintainer, let us know via Twitter: https://twitter.com/flywaydb.\n\n\n## License\n\n[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyway%2Fflyway-ant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflyway%2Fflyway-ant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflyway%2Fflyway-ant/lists"}