aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUbuntu <lji@research.att.com>2017-02-23 02:58:37 +0000
committerUbuntu <lji@research.att.com>2017-02-23 02:58:37 +0000
commit47c63f05a06da285a1b6d772e5907f718ca5184c (patch)
tree2aeb220cae094c4c5acc83df821a38e4ccf5512a
parent0de2386d38156d8b9a42b379f4791a7fd9cef469 (diff)
version and staging
Change-Id: I633dad1076989eed8fc73dc2c3f83392d161c6eb Signed-off-by: Ubuntu <lji@research.att.com>
-rw-r--r--pom.xml13
-rw-r--r--version.properties11
2 files changed, 23 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 6a36d2b..19f9fbf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
<groupId>org.openecomp.dcae.inventory</groupId>
<artifactId>dcae-inventory</artifactId>
- <version>1.0.0</version>
+ <version>1.0.0-SNAPSHOT</version>
<properties>
<dropwizard.version>0.9.2</dropwizard.version>
@@ -342,6 +342,17 @@
<artifactId>sonar-maven-plugin</artifactId>
<version>3.2</version>
</plugin>
+ <plugin>
+ <groupId>org.sonatype.plugins</groupId>
+ <artifactId>nexus-staging-maven-plugin</artifactId>
+ <version>1.6.7</version>
+ <extensions>true</extensions>
+ <configuration>
+ <serverId>ecomp-staging</serverId>
+ <nexusUrl>${nexusproxy}</nexusUrl>
+ <stagingProfileId>176c31dfe190a</stagingProfileId>
+ </configuration>
+ </plugin>
</plugins>
</build>
diff --git a/version.properties b/version.properties
new file mode 100644
index 0000000..35d03a3
--- /dev/null
+++ b/version.properties
@@ -0,0 +1,11 @@
+# Versioning variables
+# Note that these variables cannot be structured (e.g. : version.release or version.snapshot etc... )
+# because they are used in Jenkins, whose plug-in doesn't support
+major=1
+minor=0
+patch=0
+base_version=${major}.${minor}.${patch}
+# Release must be completed with git revision # in Jenkins
+
+release_version=${base_version}
+snapshot_version=${base_version}-SNAPSHOT