From d8c47aea89ccd0a368fa2e3ebeab8a6f1236d3a0 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Thu, 2 Dec 2021 21:46:21 -0800 Subject: [PATCH] release: Version 1.3.11 --- build.gradle.kts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 33c40a3..a5d3c96 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -4,8 +4,7 @@ plugins { } group = "xyz.jpenilla" -version = "1.3.11-SNAPSHOT" - .run { if (endsWith("-SNAPSHOT")) "$this+${lastCommitHash()}" else this } +version = "1.3.11".decorateVersion() description = "Monitor your server's performance in real time" subprojects { @@ -43,3 +42,6 @@ tasks.withType { fun lastCommitHash(): String = rootProject.indraGit.commit()?.name?.substring(0, 7) ?: error("Could not determine git commit hash") + +fun String.decorateVersion(): String = + if (endsWith("-SNAPSHOT")) "$this+${lastCommitHash()}" else this