Overriding git-commit-id-plugin
Issue-ID: CCSDK-2734
Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com>
Change-Id: I57964c912f17bf0c7dfe060a469affbf82486d35
diff --git a/odlparent/odlparent-lite/pom.xml b/odlparent/odlparent-lite/pom.xml
index 1eb6a3d..01bacd8 100644
--- a/odlparent/odlparent-lite/pom.xml
+++ b/odlparent/odlparent-lite/pom.xml
@@ -825,7 +825,7 @@
<message>Please always use mockito-core instead of mockito-all (see https://bugs.opendaylight.org/show_bug.cgi?id=7662), and spotbugs:annotations instead of findbugs:annotations</message>
<excludes>
<exclude>org.mockito:mockito-all</exclude>
-<!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
+ <!-- <exclude>com.google.code.findbugs:annotations</exclude> -->
</excludes>
</bannedDependencies>
</rules>
@@ -834,6 +834,18 @@
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>pl.project13.maven</groupId>
+ <artifactId>git-commit-id-plugin</artifactId>
+ <version>4.0.0</version>
+ <configuration>
+ <commitIdGenerationMode>full</commitIdGenerationMode>
+ <includeOnlyProperties>
+ <includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty>
+ <includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty>
+ </includeOnlyProperties>
+ </configuration>
+ </plugin>
</plugins>
</build>