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) {