Skip to content

Instantly share code, notes, and snippets.

@bhurling
Created November 6, 2015 15:26
Show Gist options
  • Save bhurling/252876bf4bc0d0e4fbe4 to your computer and use it in GitHub Desktop.
Save bhurling/252876bf4bc0d0e4fbe4 to your computer and use it in GitHub Desktop.
Provide a comma-separated list of flavors to publish
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