From d91e75bc0c1953c034f263863c41d506170dedcf Mon Sep 17 00:00:00 2001 From: Taka Cho Date: Mon, 9 Aug 2021 16:29:29 -0400 Subject: use url resource for docker-tag -- xacml use groovy url resource from docker repo to identify the tag for docker. Also, rename to dist.project.version for the unified docker-tag.groovy Issue-ID: POLICY-3378 Change-Id: I68c739b315d3d794baa4685a3f141e3b7cf9ef31 Signed-off-by: Taka Cho --- packages/policy-xacmlpdp-docker/pom.xml | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/packages/policy-xacmlpdp-docker/pom.xml b/packages/policy-xacmlpdp-docker/pom.xml index e2cba71f..35931e0c 100644 --- a/packages/policy-xacmlpdp-docker/pom.xml +++ b/packages/policy-xacmlpdp-docker/pom.xml @@ -31,14 +31,14 @@ pom policy-xacmlpdp-docker - + ${project.artifactId} Creates Policy Xacml PDP docker images UTF-8 UTF-8 - ${project.version} + ${project.version} false false false @@ -49,9 +49,9 @@ ${project.artifactId}-${project.version} - org.codehaus.groovy.maven - gmaven-plugin - 1.0 + org.codehaus.gmaven + groovy-maven-plugin + 2.1.1 validate @@ -59,21 +59,7 @@ execute - - println 'Project version: ' + project.properties['pdpx.project.version']; - if (project.properties['pdpx.project.version'] != null) { - def versionArray = project.properties['pdpx.project.version'].split('-') - def minMaxVersionArray = versionArray[0].tokenize('.') - if (project.properties['pdpx.project.version'].endsWith("-SNAPSHOT")) { - project.properties['project.docker.latest.minmax.tag.version'] = - minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-SNAPSHOT-latest" - } else { - project.properties['project.docker.latest.minmax.tag.version'] = - minMaxVersionArray[0] + "." + minMaxVersionArray[1] + "-STAGING-latest" - } - println 'New tag for docker: ' + project.properties['project.docker.latest.minmax.tag.version'] - } - + https://github.com/onap/policy-docker/raw/master/utils/groovy/docker-tag.groovy -- cgit 1.2.3-korg