Skip to content

Commit

Permalink
release: Version 1.3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Dec 3, 2021
1 parent 7d5cdda commit d8c47ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -43,3 +42,6 @@ tasks.withType<Jar> {
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

0 comments on commit d8c47ae

Please sign in to comment.