taler
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Taler] Building libeufin-0.9.4a-sources.tar.gz


From: Slack Coder
Subject: [Taler] Building libeufin-0.9.4a-sources.tar.gz
Date: Wed, 13 Mar 2024 09:07:11 -0500
User-agent: Mozilla Thunderbird

Hi,

There is an error when building libeufin from the release sources.  It expects to be built from within a git repository:

```

For more details see https://docs.gradle.org/8.6/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
fatal: not a git repository (or any of the parent directories): .git

```

Below is a quick patch for those who want to compile from this source's source.

SC

```

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]