Skip to content

Commit

Permalink
Fix versioning file
Browse files Browse the repository at this point in the history
  • Loading branch information
jjoyce0510 committed Jan 31, 2023
1 parent f14676f commit 8902363
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gradle/versioning/versioning.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit 8902363

Please sign in to comment.