From 0dd1e13e82e063ce3c0091e0e51c9e715c439149 Mon Sep 17 00:00:00 2001 From: John Niang Date: Mon, 19 May 2025 17:42:40 +0800 Subject: [PATCH] Fix the problem of not resolving git properties See https://github.com/n0mer/gradle-git-properties/issues/242 for more --- application/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/application/build.gradle b/application/build.gradle index 10170c3ee..67726b36a 100644 --- a/application/build.gradle +++ b/application/build.gradle @@ -68,6 +68,10 @@ bootJar { } } +gitProperties { + dotGitDirectory = layout.settingsDirectory.dir('.git') +} + tasks.named('jar') { enabled = false } @@ -172,4 +176,4 @@ tasks.named('generateOpenApiDocs') { outputs.upToDateWhen { false } -} \ No newline at end of file +}