From 1f2a17cc3c270caf88e8aee4cbc49383f85c136f Mon Sep 17 00:00:00 2001 From: Gokul Singaraju Date: Fri, 3 Nov 2017 01:02:08 -0400 Subject: Add VES Java Library Issue-Id: VNFSDK-122 Change-Id: I0c6dd87a0fe38fbc73ccd5c13c26429d0cbb1398 Signed-off-by: Gokul Singaraju --- veslibrary/ves_javalibrary/evel_javalib2/pom.xml | 47 +++++++++++++++++++----- 1 file changed, 37 insertions(+), 10 deletions(-) (limited to 'veslibrary') 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