From 145ad1ab54df1a0e25ea736814a5a06cdd7e5400 Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Mon, 18 May 2020 14:02:33 +0200 Subject: [PATCH] Fix build.gradle possibly not updating build properties --- build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.gradle b/build.gradle index 9cab34f..d844432 100644 --- a/build.gradle +++ b/build.gradle @@ -61,7 +61,10 @@ def readCurrentGitCommit() { return proc.in.readLines()[0] } +final currentGitCommit = readCurrentGitCommit() processResources { + inputs.property("project.version", project.version) + inputs.property("currentGitCommit", currentGitCommit) filesMatching("de/prob2/jupyter/build.properties") { expand(version: project.version, commit: readCurrentGitCommit()) } -- GitLab