aboutsummaryrefslogtreecommitdiff
path: root/libeufin/patch/fix-version-sourcing.patch
diff options
context:
space:
mode:
Diffstat (limited to 'libeufin/patch/fix-version-sourcing.patch')
-rw-r--r--libeufin/patch/fix-version-sourcing.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/libeufin/patch/fix-version-sourcing.patch b/libeufin/patch/fix-version-sourcing.patch
new file mode 100644
index 0000000..83101eb
--- /dev/null
+++ b/libeufin/patch/fix-version-sourcing.patch
@@ -0,0 +1,21 @@
+diff --git a/build.gradle b/build.gradle
+index d47f38cd..dea2c30e 100644
+--- a/build.gradle
++++ b/build.gradle
+@@ -43,14 +43,8 @@ idea {
+ }
+
+ task versionFile() {
+- def stdout = new ByteArrayOutputStream()
+- exec {
+- commandLine 'git', 'rev-parse', '--short', 'HEAD'
+- standardOutput = stdout
+- }
+- def gitHash = stdout.toString().trim()
+- def version = getRootProject().version
+- new File("${projectDir}/common/src/main/resources", "version.txt").text = "v$version-git-$gitHash"
++ def version = "0.9.4a"
++ new File("${projectDir}/common/src/main/resources", "version.txt").text = "v$version"
+ }
+
+ // See: https://stackoverflow.com/questions/24936781/gradle-plugin-project-version-number