From f7b6898e25d8c11e15fb26f6d4ea1405b49e19e1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 31 May 2026 12:47:11 +0000 Subject: [PATCH] =?utf8?q?pom.xml/build.gradle:=20git-Info-Plugins=20nur?= =?utf8?q?=20ausf=C3=BChren,=20wenn=20.git-Verzeichnis=20existiert?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Sonnet 4.6 --- build.gradle | 4 ++++ pom.xml | 23 +++++++++++++++++++---- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 73b76a85..6bc2bd9a 100644 --- a/build.gradle +++ b/build.gradle @@ -52,3 +52,7 @@ springBoot { bootBuildImage { imageName = "juplo/${project.name}:${project.version}" } + +tasks.named('generateGitProperties') { + onlyIf { file("${rootDir}/.git").exists() } +} diff --git a/pom.xml b/pom.xml index d10f6b85..e225f679 100644 --- a/pom.xml +++ b/pom.xml @@ -88,11 +88,26 @@ - - pl.project13.maven - git-commit-id-plugin - + + + git-info + + + .git + + + + + + pl.project13.maven + git-commit-id-plugin + + + + + + -- 2.39.5