From 31242642c71cd7d65a08ec457b5b9634937112c0 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sun, 31 May 2026 12:50:36 +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 8c21c930..ec856abf 100644 --- a/build.gradle +++ b/build.gradle @@ -41,3 +41,7 @@ jib { to { image = "juplo/${project.name}:${project.version}" } container { mainClass = 'de.juplo.kafka.ExampleConsumer' } } + +tasks.named('generateGitProperties') { + onlyIf { file("${rootDir}/.git").exists() } +} diff --git a/pom.xml b/pom.xml index f729b23e..5085fc87 100644 --- a/pom.xml +++ b/pom.xml @@ -39,10 +39,6 @@ - - pl.project13.maven - git-commit-id-plugin - com.google.cloud.tools jib-maven-plugin @@ -70,4 +66,23 @@ + + + git-info + + + .git + + + + + + pl.project13.maven + git-commit-id-plugin + + + + + + -- 2.39.5