diff options
author | Christoph Fink | 2022-04-14 10:17:32 +0300 |
---|---|---|
committer | Christoph Fink | 2022-04-14 10:17:32 +0300 |
commit | b5b9f9bae1540c63dd630f523f8cdb0615e15871 (patch) | |
tree | 1cb98d02da0b009ed8123d9f4c48d71c3a42b05a /01-don-t-try-to-guess-git-version_v6.7.patch | |
parent | 465f3ab8498586c4090b7d6dee229e5ac01f95a6 (diff) | |
download | aur-java-r5.tar.gz |
upgpkg: java-r5 6.7-1
upstream release
upstream 6.7
Diffstat (limited to '01-don-t-try-to-guess-git-version_v6.7.patch')
-rw-r--r-- | 01-don-t-try-to-guess-git-version_v6.7.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/01-don-t-try-to-guess-git-version_v6.7.patch b/01-don-t-try-to-guess-git-version_v6.7.patch new file mode 100644 index 000000000000..e95a2368656d --- /dev/null +++ b/01-don-t-try-to-guess-git-version_v6.7.patch @@ -0,0 +1,35 @@ +diff --unified --recursive --text a/build.gradle b/build.gradle +--- a/build.gradle 2021-10-14 15:56:23.135659680 +0000 ++++ b/build.gradle 2021-10-14 16:06:01.380243952 +0000 +@@ -2,12 +2,11 @@ + id 'java' + id 'com.github.johnrengelman.shadow' version '6.0.0' + id 'maven-publish' +- id 'com.palantir.git-version' version '0.12.3' + } + + group = 'com.conveyal' + // set version to `git describe --tags --always --first-parent`, plus '.dirty' if local changes are present. +-version gitVersion() ++version 'v6.7' + + java { + sourceCompatibility = JavaVersion.VERSION_11 +@@ -99,14 +98,13 @@ + // such as the full commit ID and branch name, rather than just the version available in the JAR manifest. + task createVersionProperties(dependsOn: processResources) { + doLast { +- def details = versionDetails() + def dir = new File(buildDir, "resources/main/com/conveyal/r5/") + mkdir(dir) + new File(dir, "version.properties").withWriter { w -> + Properties p = new Properties() +- p['version'] = project.version.toString() +- p['commit'] = details.gitHashFull +- p['branch'] = details.branchName ?: "NONE" // avoid NPE when building pushed tag ++ p['version'] = version ++ p['commit'] = "" ++ p['branch'] = "" + p.store w, null + } + // Also make a simple one-line version.txt for scripts to use |