From 3813f691d75b62804408d867f1cd85383f2bc362 Mon Sep 17 00:00:00 2001 From: Alexander Mironov Date: Mon, 27 Jul 2020 09:00:07 +0100 Subject: [PATCH] Add versionBuild task All other tasks has "version" counterpart, but the bumpBuild doesn't. This PR fixes that --- .../kotlin/com/github/alexfu/AndroidAutoVersionPlugin.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/com/github/alexfu/AndroidAutoVersionPlugin.kt b/src/main/kotlin/com/github/alexfu/AndroidAutoVersionPlugin.kt index 4d7d763..6b7475d 100644 --- a/src/main/kotlin/com/github/alexfu/AndroidAutoVersionPlugin.kt +++ b/src/main/kotlin/com/github/alexfu/AndroidAutoVersionPlugin.kt @@ -65,6 +65,13 @@ class AndroidAutoVersionPlugin : Plugin { description = "Increases major version by 1, zeroes out minor and patch version", exec = { incrementVersion(MAJOR) } ) + + registerTask( + name = "versionBuild", + description = "Executes bumpBuild and commits the changes to git", + dependencies = listOf(bumpBuild), + exec = ::commitToGit + ) registerTask( name = "versionPatch",