Move commitHash() to the bottom of build.gradle.kts

Signed-off-by: Graham <gpe@openrs2.dev>
pull/132/head
Graham 4 years ago
parent 8cbf973f50
commit 2520798ccf
  1. 18
      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()
}

Loading…
Cancel
Save