chore(build): enforce of git.commit.id property
This adds a `enforcer-plugin` rule to make sure `git.commit.id` property
is set by the `git-commit-id-plugin`. This is to make sure we don't
loose this information.
</bannedDependencies>
</rules>
</configuration>
+ <executions>
+ <execution>
+ <id>enforce-git-info</id>
+ <phase>initialize</phase>
+ <goals>
+ <goal>enforce</goal>
+ </goals>
+ <configuration>
+ <fail>true</fail>
+ <rules>
+ <requireProperty>
+ <property>git.commit.id</property>
+ <message>The `git.commit.id` property was not set</message>
+ <regex>[0-9a-f]+</regex>
+ <regexMessage>`git.commit.id` property must be a git commit id</regexMessage>
+ </requireProperty>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
<plugin>
