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() +}