From 44b2fbcc8e59dc1d06dab71d27cbeae005c6d95b Mon Sep 17 00:00:00 2001 From: Kristof Jozsa Date: Sat, 30 Nov 2024 21:37:58 +0100 Subject: [PATCH] git --- fineract-provider/build.gradle | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/fineract-provider/build.gradle b/fineract-provider/build.gradle index 4ecda6e253..3b9a8dcb70 100644 --- a/fineract-provider/build.gradle +++ b/fineract-provider/build.gradle @@ -235,12 +235,17 @@ cucumber { tasks.jibDockerBuild.dependsOn bootJar -//gitProperties { -// gitPropertiesResourceDir = file("$buildDir/classes/java/main") -// dateFormat = "yyyy-MM-dd'T'HH:mmZ" -// dateFormatTimeZone = 'GMT' -// failOnNoGitDirectory = false -//} +gitProperties { + gitPropertiesResourceDir = file("$buildDir/classes/java/main") + keys = [ + 'git.branch', + 'git.commit.id', + 'git.commit.time', + 'git.remote.origin.url' + ] + dateFormat = "yyyy-MM-dd'T'HH:mm:ssZ" + dateFormatTimeZone = 'UTC' +} // Ensure tasks execute in the correct order jar.dependsOn resolve