From d74265db60408fd92318d9ce00049a22eb770595 Mon Sep 17 00:00:00 2001 From: DmitriyMX Date: Thu, 7 Jan 2021 08:23:11 +0300 Subject: [PATCH] =?UTF-8?q?gradle:=20=D0=B0=D0=B2=D1=82=D0=BE-=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D1=81=D0=B8=D0=BE=D0=BD=D0=B8=D1=80=D0=BE=D0=B2=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=20=D0=BF=D0=B0=D1=80=D0=B0=D0=BC?= =?UTF-8?q?=D0=B5=D1=82=D1=80=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- buildSrc/src/main/groovy/LogicPlugin.groovy | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/buildSrc/src/main/groovy/LogicPlugin.groovy b/buildSrc/src/main/groovy/LogicPlugin.groovy index 51af9f8..2f28ccf 100644 --- a/buildSrc/src/main/groovy/LogicPlugin.groovy +++ b/buildSrc/src/main/groovy/LogicPlugin.groovy @@ -18,10 +18,15 @@ class IncrementVersion extends DefaultTask { @TaskAction def incrementVersion() { - String nextVersion = nextVersion() + String nextVer + if (project.hasProperty('nextVersion')) { + nextVer = project.property('nextVersion') + } else { + nextVer = nextVersion() + } - incrementReadmeVersion(nextVersion) - incrementGradlePropsVersion(nextVersion) + incrementReadmeVersion(nextVer) + incrementGradlePropsVersion(nextVer) } private void incrementReadmeVersion(String nextVersion) {