fix-version-sourcing.patch (728B)
1 diff --git a/build.gradle b/build.gradle 2 index d47f38cd..dea2c30e 100644 3 --- a/build.gradle 4 +++ b/build.gradle 5 @@ -43,14 +43,8 @@ idea { 6 } 7 8 task versionFile() { 9 - def stdout = new ByteArrayOutputStream() 10 - exec { 11 - commandLine 'git', 'rev-parse', '--short', 'HEAD' 12 - standardOutput = stdout 13 - } 14 - def gitHash = stdout.toString().trim() 15 - def version = getRootProject().version 16 - new File("${projectDir}/common/src/main/resources", "version.txt").text = "v$version-git-$gitHash" 17 + def version = "0.9.4a" 18 + new File("${projectDir}/common/src/main/resources", "version.txt").text = "v$version" 19 } 20 21 // See: https://stackoverflow.com/questions/24936781/gradle-plugin-project-version-number