Skip to content

Commit

Permalink
Add commit id to version string for nightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pheotis committed Jun 15, 2024
1 parent 7427a4c commit dcf00db
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

<groupId>org.sgrewritten</groupId>
<artifactId>stargate</artifactId>
<version>1.0.0.16-NIGHTLY-3</version>
<version>1.0.0.16-NIGHTLY</version>
<name>StarGate</name>
<description>The original, and still the best, transportation plugin for the Bukkit Ecosystem.</description>
<url>https://sgrewitten.org</url>
Expand Down Expand Up @@ -182,7 +182,7 @@
</dependency>
</dependencies>
<build>
<finalName>Stargate-${project.version}</finalName>
<finalName>Stargate-${project.version}-${git.commit.id.abbrev}</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down Expand Up @@ -301,13 +301,37 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.5</version>
</plugin>
<plugin>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
<version>9.0.0</version>
<executions>
<execution>
<id>get-the-git-infos</id>
<goals>
<goal>revision</goal>
</goals>
<phase>initialize</phase>
</execution>
</executions>
<configuration>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename>
<includeOnlyProperties>
<includeOnlyProperty>^git.commit.id.abbrev</includeOnlyProperty>
</includeOnlyProperties>
<commitIdGenerationMode>full</commitIdGenerationMode>
</configuration>
</plugin>
</plugins>
<resources>
<resource>
<directory>src/main/resources/</directory>
<filtering>true</filtering>
<includes>
<include>**</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
Expand Down

0 comments on commit dcf00db

Please sign in to comment.