Move git-commit-id-maven-plugin to parent pom 62/132462/1
authordanielhanrahan <daniel.hanrahan@est.tech>
Fri, 25 Nov 2022 14:39:50 +0000 (14:39 +0000)
committerdanielhanrahan <daniel.hanrahan@est.tech>
Fri, 25 Nov 2022 14:39:50 +0000 (14:39 +0000)
The POM config for git-commit-id-maven-plugin is duplicated in each
repo, so the config is moved to policy/parent

Issue-ID: POLICY-4466
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: I840092730d026e10f1e8b6464757ceef98a28eba

pom.xml

diff --git a/pom.xml b/pom.xml
index cd5b4ea..3a475a5 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <packaging>pom</packaging>
     <name>policy-docker</name>
 
-    <build>
-        <pluginManagement>
-            <plugins>
-                <plugin>
-                    <groupId>io.github.git-commit-id</groupId>
-                    <artifactId>git-commit-id-maven-plugin</artifactId>
-                    <version>5.0.0</version>
-                    <executions>
-                        <execution>
-                            <id>get-the-git-infos</id>
-                            <goals>
-                                <goal>revision</goal>
-                            </goals>
-                            <phase>initialize</phase>
-                        </execution>
-                    </executions>
-                    <configuration>
-                        <skipPoms>false</skipPoms>
-                        <generateGitPropertiesFile>true</generateGitPropertiesFile>
-                        <includeOnlyProperties>
-                            <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
-                            <includeOnlyProperty>^git.commit.id.abbrev$</includeOnlyProperty>
-                        </includeOnlyProperties>
-                        <commitIdGenerationMode>full</commitIdGenerationMode>
-                    </configuration>
-                </plugin>
-            </plugins>
-        </pluginManagement>
-    </build>
-
     <profiles>
         <profile>
             <id>docker</id>