From ff99139d82e9911e485f228bcd93e0d9b4d6a74b Mon Sep 17 00:00:00 2001 From: mpriyank Date: Wed, 16 Oct 2024 11:59:49 +0100 Subject: Add metadata related to builds and commits - removing the build-info goal from the existing spring-boot-maven-plugin - adding git-commit-id-maven-plugin to expose the git related info using actuator/info endpoint - adding the dateFormat to git plugin to make it same as the build-info - cleaning up a duplicate dependency in cps-ncmp-rest-stub module Issue-ID: CPS-2445 Change-Id: Id7179a81361718d293b7b31f50c1adbdd2ad4302 Signed-off-by: mpriyank --- cps-application/pom.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'cps-application/pom.xml') diff --git a/cps-application/pom.xml b/cps-application/pom.xml index c37447306c..08c718167e 100644 --- a/cps-application/pom.xml +++ b/cps-application/pom.xml @@ -172,6 +172,30 @@ + + io.github.git-commit-id + git-commit-id-maven-plugin + + + get-git-info + + revision + + package + + + + yyyy-MM-dd'T'HH:mm:ss.sss'Z' + + ^git.build.(time|version)$ + ^git.commit.(id.full|message.short|user.name|user.email)$ + ^git.branch + + true + ${project.build.outputDirectory}/git.properties + full + + -- cgit 1.2.3-korg