Repository: commons-math Updated Branches: refs/heads/master f9125d0b8 -> 17c903385
Replace svn-based build number with git-based build number. Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/17c90338 Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/17c90338 Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/17c90338 Branch: refs/heads/master Commit: 17c903385c1bf837de1943975550126f13fe7150 Parents: f9125d0 Author: Luc Maisonobe <l...@apache.org> Authored: Tue Dec 16 17:00:25 2014 +0100 Committer: Luc Maisonobe <l...@apache.org> Committed: Tue Dec 16 17:03:40 2014 +0100 ---------------------------------------------------------------------- pom.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-math/blob/17c90338/pom.xml ---------------------------------------------------------------------- diff --git a/pom.xml b/pom.xml index 46da7d8..3ee5db2 100644 --- a/pom.xml +++ b/pom.xml @@ -390,6 +390,12 @@ <commons.site.path>math</commons.site.path> <commons.scmPubUrl>https://svn.apache.org/repos/infra/websites/production/commons/content/proper/commons-math</commons.scmPubUrl> <commons.scmPubCheckoutDirectory>site-content</commons.scmPubCheckoutDirectory> + + <!-- Temporary fix to replace svn-based build number with git-based build number --> + <buildnumber.skip>true</buildnumber.skip> + <math.jgit.buildnumber.version>1.2.8</math.jgit.buildnumber.version> + <implementation.build>${git.branch}-${git.revision}; ${maven.build.timestamp}</implementation.build> + </properties> <build> @@ -514,6 +520,21 @@ <additionalparam>-header '<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>'</additionalparam> </configuration> </plugin> + <plugin> + <groupId>ru.concerteza.buildnumber</groupId> + <artifactId>maven-jgit-buildnumber-plugin</artifactId> + <version>${math.jgit.buildnumber.version}</version> + <executions> + <execution> + <phase>generate-resources</phase> + <goals> + <goal>extract-buildnumber</goal> + </goals> + </execution> + </executions> + <configuration> + </configuration> + </plugin> </plugins> </build>