Commit 202e3242 authored by Phillip Webb's avatar Phillip Webb

Reinstate git commit ID in loader tools manifest

Add Spring-Boot-Commit-Id to MANIFEST.MF of spring-boot-loader-tools.
The reinstates functionality of 498ca076
but does not cause issues in eclipse.
parent dc3d6700
...@@ -595,6 +595,11 @@ ...@@ -595,6 +595,11 @@
<artifactId>versions-maven-plugin</artifactId> <artifactId>versions-maven-plugin</artifactId>
<version>2.0</version> <version>2.0</version>
</plugin> </plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>2.1.7</version>
</plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>
</build> </build>
......
...@@ -34,6 +34,29 @@ ...@@ -34,6 +34,29 @@
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<executions>
<execution>
<id>include-git-properties</id>
<phase>prepare-package</phase>
<goals>
<goal>revision</goal>
</goals>
<configuration>
<dotGitDirectory>${main.basedir}/.git</dotGitDirectory>
<verbose>true</verbose>
<gitDescribe>
<skip>true</skip>
</gitDescribe>
</configuration>
</execution>
</executions>
<configuration>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId> <artifactId>maven-dependency-plugin</artifactId>
...@@ -80,6 +103,16 @@ ...@@ -80,6 +103,16 @@
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestEntries>
<Spring-Boot-Commit-Id>${git.commit.id}</Spring-Boot-Commit-Id>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
</project> </project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment