{"action":"created","issue":{"url":"https://api.github.com/repos/flyway/flyway/issues/1208","repository_url":"https://api.github.com/repos/flyway/flyway","labels_url":"https://api.github.com/repos/flyway/flyway/issues/1208/labels{/name}","comments_url":"https://api.github.com/repos/flyway/flyway/issues/1208/comments","events_url":"https://api.github.com/repos/flyway/flyway/issues/1208/events","html_url":"https://github.com/flyway/flyway/pull/1208","id":133819496,"number":1208,"title":"Support for multiple databases/targets in Gradle","user":{"login":"alkamo","id":4236108,"avatar_url":"https://avatars.githubusercontent.com/u/4236108?v=3","gravatar_id":"","url":"https://api.github.com/users/alkamo","html_url":"https://github.com/alkamo","followers_url":"https://api.github.com/users/alkamo/followers","following_url":"https://api.github.com/users/alkamo/following{/other_user}","gists_url":"https://api.github.com/users/alkamo/gists{/gist_id}","starred_url":"https://api.github.com/users/alkamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkamo/subscriptions","organizations_url":"https://api.github.com/users/alkamo/orgs","repos_url":"https://api.github.com/users/alkamo/repos","events_url":"https://api.github.com/users/alkamo/events{/privacy}","received_events_url":"https://api.github.com/users/alkamo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-15T21:17:21Z","updated_at":"2016-05-02T20:15:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/flyway/flyway/pulls/1208","html_url":"https://github.com/flyway/flyway/pull/1208","diff_url":"https://github.com/flyway/flyway/pull/1208.diff","patch_url":"https://github.com/flyway/flyway/pull/1208.patch"},"body":"This is a stepping stone to resolving #738. While the feature requested is not yet implemented, the ability to support multiple configurations in a single run will enable us to eventually run tasks for the individual configurations separately.\r\n\r\nCare was taken in this implementation to not change the existing behavior of the Gradle plugin. The simplest case still works.\r\n\r\nIf multiple databases are configured, then the \"master\" properties become defaults that are used only if the individual databases do not have a value assigned to the property.\r\n\r\nAdditionally, there are now \"instruction\" properties that correspond to each of the array/map properties. These allow the user to change the default \"prioritization\" behavior to a \"merge\" behavior. When set to \"merge\" properties set in different levels are combined, rather that taken in the order they are found. For instance, with the placeholders Instruction set to \"merge\", if you specify \"flyway.placeholders.stub_a=a\" as a environment variable and \"placeholders['stub_b':b']\" in the build.gradle file, both placeholders will be resolved (as opposed to the current implementation, where only \"stub_a\" would be resolved)."},"comment":{"url":"https://api.github.com/repos/flyway/flyway/issues/comments/216349912","html_url":"https://github.com/flyway/flyway/pull/1208#issuecomment-216349912","issue_url":"https://api.github.com/repos/flyway/flyway/issues/1208","id":216349912,"user":{"login":"alkamo","id":4236108,"avatar_url":"https://avatars.githubusercontent.com/u/4236108?v=3","gravatar_id":"","url":"https://api.github.com/users/alkamo","html_url":"https://github.com/alkamo","followers_url":"https://api.github.com/users/alkamo/followers","following_url":"https://api.github.com/users/alkamo/following{/other_user}","gists_url":"https://api.github.com/users/alkamo/gists{/gist_id}","starred_url":"https://api.github.com/users/alkamo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alkamo/subscriptions","organizations_url":"https://api.github.com/users/alkamo/orgs","repos_url":"https://api.github.com/users/alkamo/repos","events_url":"https://api.github.com/users/alkamo/events{/privacy}","received_events_url":"https://api.github.com/users/alkamo/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T20:15:54Z","updated_at":"2016-05-02T20:15:54Z","body":"The next iteration of this is complete, but has not been pushed because it adds a significant number of files and I wanted to limit the scope of this pull request.\r\n\r\nI believe that code will resolve #738."}}