Include git revision and build number
This commit is contained in:
11
build.gradle
11
build.gradle
@@ -27,6 +27,17 @@ allprojects {
|
||||
return os.toString().trim()
|
||||
}
|
||||
}
|
||||
|
||||
getCurrentShortRevision = {
|
||||
new ByteArrayOutputStream().withStream { os ->
|
||||
exec {
|
||||
executable = "git"
|
||||
args = ["rev-parse", "HEAD"]
|
||||
standardOutput = os
|
||||
}
|
||||
return os.toString().trim().substring(0, 8)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
Reference in New Issue
Block a user