Skip to content

Commit

Permalink
remove commit hash from eap version
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed May 1, 2024
1 parent 96322a0 commit 42328e2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fun prop(name: String): String =
extra.properties[name] as? String
?: error("Property `$name` is not defined in gradle.properties for environment `$shortPlatformVersion`")

fun gitHash(): String {
fun gitCommitHash(): String {
val byteOut = ByteArrayOutputStream()
project.exec {
commandLine = "git rev-parse --short HEAD".split(" ")
Expand Down Expand Up @@ -47,8 +47,7 @@ if (publishingChannel != "default") {
// timestamp of the commit with this eaps addition
val start = 1714498465
val commitTimestamp = gitTimestamp().toInt() - start
val commitHash = gitHash()
pluginVersion = "$pluginVersion-$publishingChannel.$commitTimestamp-$commitHash"
pluginVersion = "$pluginVersion-$publishingChannel.$commitTimestamp"
}

val pluginGroup = "org.move"
Expand Down

0 comments on commit 42328e2

Please sign in to comment.