Commit edf34af4 authored by Matthias Betz's avatar Matthias Betz
Browse files

Added git commit hash to version string

parent dc81c5a4
Pipeline #1277 failed with stage
in 1 minute and 30 seconds
...@@ -7,6 +7,11 @@ ...@@ -7,6 +7,11 @@
<artifactId>CityDoctorParent</artifactId> <artifactId>CityDoctorParent</artifactId>
<version>3.7.0-SNAPSHOT</version> <version>3.7.0-SNAPSHOT</version>
</parent> </parent>
<properties>
<versionString>${project.artifactId}-${project.version}-${git.commit.id.abbrev}</versionString>
</properties>
<artifactId>CityDoctorModel</artifactId> <artifactId>CityDoctorModel</artifactId>
<name>CityDoctorModel</name> <name>CityDoctorModel</name>
<dependencies> <dependencies>
...@@ -61,5 +66,31 @@ ...@@ -61,5 +66,31 @@
<filtering>true</filtering> <filtering>true</filtering>
</resource> </resource>
</resources> </resources>
<plugins>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<version>4.0.3</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
</execution>
</executions>
<configuration>
<dotGitDirectory>${project.basedir}/../../.git</dotGitDirectory>
<prefix>git</prefix>
<verbose>false</verbose>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<gitDescribe>
<skip>false</skip>
<always>false</always>
</gitDescribe>
</configuration>
</plugin>
</plugins>
</build> </build>
</project> </project>
\ No newline at end of file
CityDoctorValidation.Version=${project.version} CityDoctorValidation.Version=${versionString}
DistanceError.distanceFromPlane=distance from plane DistanceError.distanceFromPlane=distance from plane
AboutDialog.developedBy=Developed by AboutDialog.developedBy=Developed by
AboutDialog.contact=Contact AboutDialog.contact=Contact
......
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