From 16a4bae65c2df4b35d89bd706e24ed0aab60881a Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 19 Jul 2013 16:30:27 +0200 Subject: [PATCH] add generated properties to display current version number --- pom.xml | 18 +++++++++++++++++- src/main/resources/application.properties | 4 +++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index bcd1179f..0eca3581 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.commafeed commafeed - 0.0.1-SNAPSHOT + 1.0.0 war CommaFeed @@ -161,6 +161,22 @@ + + pl.project13.maven + git-commit-id-plugin + 2.1.5 + + + + revision + + + + + false + false + + diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index e1bf01d2..71f55473 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,2 +1,4 @@ +version=${project.version} production=${production} -datasource=${jpa.datasource.name} \ No newline at end of file +datasource=${jpa.datasource.name} +git.commit=${git.commit.id.abbrev} \ No newline at end of file