From c81a1d015ea1666f61f5427867a3b55170c7b86c Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Sun, 20 Apr 2025 20:52:26 +1000 Subject: [PATCH] Fix more issues --- build.gradle | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 14cf004a..8ea48579 100644 --- a/build.gradle +++ b/build.gradle @@ -6,6 +6,10 @@ plugins { version = project.mod_version group = project.maven_group +base { + archivesName = project.archives_base_name +} + repositories { exclusiveContent { forRepository { @@ -33,7 +37,7 @@ def gitCommitHash = { -> if (result.getResult().get().getExitValue() != 0) { return ""; } else { - return result.standardOutput.asText.get(); + return result.standardOutput.asText.get().strip(); } } catch (Exception e) { e.printStackTrace() @@ -45,10 +49,11 @@ def buildtime = {System.currentTimeSeconds()} processResources { def time = buildtime() def hash = gitCommitHash() - inputs.properties("version": project.version, "commit": hash, "buildtime": time) + def version = project.version + inputs.properties("version": version, "commit": hash, "buildtime": time) filesMatching("fabric.mod.json") { - expand "version": project.version, "commit": hash, "buildtime": time + expand "version": version, "commit": hash, "buildtime": time } }