]> jfr.im git - irc/rizon/moo.git/commitdiff
Add maven buildnumber plugin and add to manifest.
authorAdam <redacted>
Thu, 25 Feb 2016 02:55:59 +0000 (21:55 -0500)
committerAdam <redacted>
Thu, 25 Feb 2016 02:55:59 +0000 (21:55 -0500)
moo/pom.xml
pom.xml

index 38f8339ee1e5b9347e131267ffc21776711ac0f3..ba70b6b28d53ec5a98df8dfedf49ac7b9e38bf8e 100644 (file)
@@ -71,6 +71,7 @@
                                                </manifest>
                                                <manifestEntries>
                                                        <Author>Adam &lt;Adam@rizon.net&gt;</Author>
+                                                       <Build-Number>${buildNumber}</Build-Number>
                                                </manifestEntries>
                                        </archive>
                                        <descriptorRefs>
diff --git a/pom.xml b/pom.xml
index 932862a696d6fcb111803fea358520097a13eabf..61ac4f74beea7ba8370e87e134115595cb7cc5cb 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -8,7 +8,11 @@
        <packaging>pom</packaging>
 
        <name>moo</name>
-       <url>http://gitlab.com/rizon/moo</url>
+       <url>https://gitlab.com/rizon/moo</url>
+
+       <scm>
+               <connection>scm:git:https://gitlab.com/rizon/moo.git</connection>
+       </scm>
 
        <properties>
                <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
                                        <target>1.7</target>
                                </configuration>
                        </plugin>
+                       <plugin>
+                               <groupId>org.codehaus.mojo</groupId>
+                               <artifactId>buildnumber-maven-plugin</artifactId>
+                               <version>1.4</version>
+                               <executions>
+                                       <execution>
+                                               <phase>validate</phase>
+                                               <goals>
+                                                       <goal>create</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                               <configuration>
+                                       <shortRevisionLength>7</shortRevisionLength>
+                               </configuration>
+                       </plugin>
                </plugins>
        </build>
 </project>