Skip to content

Instantly share code, notes, and snippets.

@foragerr
foragerr / build.gradle
Last active March 2, 2017 19:26
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