From 100d161e901876bddf1c3bfafebd8f1e6b1d5b99 Mon Sep 17 00:00:00 2001 From: Gokul Singaraju Date: Fri, 10 Nov 2017 14:09:32 -0500 Subject: Changes for nexus repo jar Issue-Id: VNFSDK-122 Change-Id: I398a31647dcdd79e119c0bfda4835e7f611258e5 Signed-Off-by: Gokul Singaraju --- veslibrary/ves_javalibrary/evel_javalib2/pom.xml | 47 +++++++++++++++++++----- 1 file changed, 37 insertions(+), 10 deletions(-) diff --git a/veslibrary/ves_javalibrary/evel_javalib2/pom.xml b/veslibrary/ves_javalibrary/evel_javalib2/pom.xml index 9acaacb..fc4f209 100644 --- a/veslibrary/ves_javalibrary/evel_javalib2/pom.xml +++ b/veslibrary/ves_javalibrary/evel_javalib2/pom.xml @@ -1,10 +1,16 @@ 4.0.0 - evel_javalib2 + org.onap.vnfsdk.compliance evel_javalib2 0.0.1-SNAPSHOT VESJavaLibrary + + + ${env.GIT_NO_PROJECT} + ${project.version} + @@ -18,14 +24,35 @@ src - - maven-compiler-plugin - 3.5.1 - - 1.8 - 1.8 - - + + org.codehaus.groovy.maven + gmaven-plugin + + + validate + + execute + + + + println project.properties['ves.project.version']; + def versionArray; + if ( project.properties['ves.project.version'] != null ) { + versionArray = project.properties['ves.project.version'].split('\\.'); + } + + if ( project.properties['ves.project.version'].endsWith("-SNAPSHOT") ) { + project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-SNAPSHOT-latest"; + } else { + project.properties['project.docker.latesttag.version']=versionArray[0] + '.' + versionArray[1] + "-STAGING-latest"; + } + + println 'New Tag for docker:' + project.properties['project.docker.latesttag.version']; + + + + + org.eclipse.m2e @@ -85,4 +112,4 @@ 1.0.4 - \ No newline at end of file + -- cgit 1.2.3-korg