add git commit id to about dialog
This commit is contained in:
@@ -8,6 +8,7 @@ title=Spring Tool Suite 4\n\
|
||||
\n\
|
||||
Version: @QUALIFIER@\n\
|
||||
Build Id: @BUILD_ID@\n\
|
||||
Revision: @REVISION@\n\
|
||||
\n\
|
||||
Copyright (c) 2007 - 2022 VMware, Inc.\n\
|
||||
All rights reserved. Visit https://spring.io/tools\n\
|
||||
|
||||
@@ -6,6 +6,7 @@ productBlurb=Spring Tool Suite 4 \n\
|
||||
\n\
|
||||
Version: @QUALIFIER@\n\
|
||||
Build Id: @BUILD_ID@\n\
|
||||
Revision: @REVISION@\n\
|
||||
\n\
|
||||
Copyright (c) 2007 - 2022 VMware, Inc.\n\
|
||||
All rights reserved. Visit https://spring.io/tools\n\
|
||||
|
||||
@@ -35,8 +35,10 @@
|
||||
|
||||
<replace file="about.properties" token="@QUALIFIER@" value="${qualifier}" summary="yes" />
|
||||
<replace file="about.properties" token="@BUILD_ID@" value="${build.id}" summary="yes" />
|
||||
<replace file="about.properties" token="@REVISION@" value="${git.commit.id}" summary="yes" />
|
||||
<replace file="plugin.properties" token="@QUALIFIER@" value="${qualifier}" summary="yes" />
|
||||
<replace file="plugin.properties" token="@BUILD_ID@" value="${build.id}" summary="yes" />
|
||||
<replace file="plugin.properties" token="@REVISION@" value="${git.commit.id}" summary="yes" />
|
||||
</target>
|
||||
</configuration>
|
||||
<goals>
|
||||
|
||||
@@ -949,6 +949,25 @@
|
||||
<tsa>http://timestamp.digicert.com</tsa>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<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>
|
||||
<dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
|
||||
<pluginManagement>
|
||||
@@ -1017,6 +1036,7 @@
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
@@ -1025,6 +1045,7 @@
|
||||
<encoding>ISO-8859-1</encoding>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
@@ -1058,6 +1079,7 @@
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
Reference in New Issue
Block a user