From 2520798ccfa078579413e16f9ae669808fc090b6 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 30 Aug 2020 13:34:17 +0100 Subject: [PATCH] Move commitHash() to the bottom of build.gradle.kts Signed-off-by: Graham --- build.gradle.kts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index c91d2aac..5b217d2e 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -304,15 +304,6 @@ tasks.dependencyUpdates { } } -fun commitHash(): String { - val out = ByteArrayOutputStream() - exec { - commandLine("git", "rev-parse", "HEAD") - standardOutput = out - }.assertNormalExitValue() - return String(out.toByteArray(), Charsets.UTF_8).trim() -} - tasks.wrapper { distributionType = Wrapper.DistributionType.ALL } @@ -391,3 +382,12 @@ project(":nonfree:unpackclass") { } } } + +fun commitHash(): String { + val out = ByteArrayOutputStream() + exec { + commandLine("git", "rev-parse", "HEAD") + standardOutput = out + }.assertNormalExitValue() + return String(out.toByteArray(), Charsets.UTF_8).trim() +}