aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.gradle b/build.gradle
index 9412092..a6182b7 100644
--- a/build.gradle
+++ b/build.gradle
@@ -27,11 +27,11 @@ task clean(type: Delete) {
}
// Inserted by Trumeet@GitHub: add version info
-def commit = 'git rev-list --count HEAD'.execute([], project.rootDir).text.trim()
+def commit = Integer.parseInt('git rev-list --count HEAD'.execute([], project.rootDir).text.trim())
def ver = "$commit"
ext {
- version = 1 //ver
+ version = commit
}
task exportVersion(type: Exec) {