diff --git a/build.gradle b/build.gradle
index 9cab34f3ffd7253b2a73bd9f9139c9211881b7f9..d8444325cea57edf568b2e9658bd0c5dc233256a 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())
 	}