Created
November 6, 2015 15:26
-
-
Save bhurling/252876bf4bc0d0e4fbe4 to your computer and use it in GitHub Desktop.
Provide a comma-separated list of flavors to publish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (hasProperty("publishFlavors") && hasProperty("publishTypes")) { | |
afterEvaluate { | |
publishFlavors.splitEachLine(",") { | |
it.each { flavor -> | |
publishTypes.splitEachLine(",") { | |
it.each { type -> | |
publish.dependsOn "publish${type.capitalize()}${flavor.capitalize()}Release" | |
} | |
} | |
} | |
} | |
} | |
} | |
task(publish) << {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment