From 7b9c31b770edc49e660c2805f51c64e2cee7947f Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sun, 5 Jan 2025 08:35:55 +1000 Subject: [PATCH] git commit time Closure --- build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 098e1de5..e7ceb556 100644 --- a/build.gradle +++ b/build.gradle @@ -45,11 +45,13 @@ def gitCommitHash = { -> def buildtime = {System.currentTimeSeconds()} processResources { - inputs.properties("version": project.version, "commit": gitCommitHash, "buildtime": buildtime) + def time = buildtime() + def hash = gitCommitHash() + inputs.properties("version": project.version, "commit": hash, "buildtime": time) archivesBaseName = "voxy" filesMatching("fabric.mod.json") { - expand "commit": gitCommitHash, "version": project.version, "buildtime": buildtime + expand "version": project.version, "commit": hash, "buildtime": time } }