Skip to content

Instantly share code, notes, and snippets.

@foragerr
Last active March 2, 2017 19:26
Show Gist options
  • Save foragerr/ea7e7a3d4f63607bb70b to your computer and use it in GitHub Desktop.
Save foragerr/ea7e7a3d4f63607bb70b to your computer and use it in GitHub Desktop.
Custom tasks
// Solution 1:
task releaseMinor (dependsOn: ['releaseBegin', 'incrementVersionCode', 'incrementVersionName', 'clean', 'build', 'bintrayUpload', 'releaseEnd'])
task releaseMajor (dependsOn: ['releaseBegin', 'clean', 'build', 'bintrayUpload', 'releaseEnd'])
incrementVersionCode.mustRunAfter releaseBegin
incrementVersionName.mustRunAfter incrementVersionCode
clean.mustRunAfter releaseBegin
clean.mustRunAfter incrementVersionName
build.mustRunAfter clean
bintrayUpload.mustRunAfter build
releaseEnd.mustRunAfter bintrayUpload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment