From 8902363e752134340b90103831f009c0fc7015db Mon Sep 17 00:00:00 2001 From: John Joyce Date: Tue, 31 Jan 2023 13:15:33 -0800 Subject: [PATCH] Fix versioning file --- gradle/versioning/versioning.gradle | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/gradle/versioning/versioning.gradle b/gradle/versioning/versioning.gradle index a7535cadeb0876..e48202e2e74ce7 100644 --- a/gradle/versioning/versioning.gradle +++ b/gradle/versioning/versioning.gradle @@ -46,6 +46,7 @@ if (project.hasProperty("releaseVersion")) { // trim version if it is of size 4 to size 3 def versionParts = version.tokenize(".") +cliMajorVersion = version if (versionParts.size() > 3) { // at-least 4 part version // we check if the 4th part is a .0 in which case we want to create a release @@ -56,9 +57,6 @@ if (versionParts.size() > 3) { if (versionParts.size() > 3) { version = version + "-" + versionParts[3..versionParts.size()-1].join('-') } - cliMajorVersion = version -} else if (versionParts.size() == 3) { - cliMajorVersion = version } if (snapshotVersion) {