Skip to content

Commit

Permalink
Fixes #5, set project.build.outputTimestamp from git - best we can do…
Browse files Browse the repository at this point in the history
… for now
  • Loading branch information
rmannibucau committed Mar 16, 2024
1 parent 9634450 commit 4b0f574
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
<maven.compiler.release>17</maven.compiler.release>

<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.outputTimestamp>${git.commit.time}</project.build.outputTimestamp>

<tomcat.version>10.1.19</tomcat.version>
<yupiik-logging.version>1.0.7</yupiik-logging.version>
Expand Down Expand Up @@ -73,6 +74,29 @@

<build>
<plugins>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>7.0.0</version>
<configuration>
<injectAllReactorProjects>true</injectAllReactorProjects>
<generateGitPropertiesFile>false</generateGitPropertiesFile>
<dateFormat>yyyy-MM-dd'T'HH:mm:ss'Z'</dateFormat>
<dateFormatTimeZone>GMT</dateFormatTimeZone>
<includeOnlyProperties>
<includeOnlyProperty>^git.commit.time$</includeOnlyProperty>
</includeOnlyProperties>
</configuration>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
Expand Down

0 comments on commit 4b0f574

Please sign in to comment.