Add build helper for major/minor versions
[aai/gizmo.git] / pom.xml
diff --git a/pom.xml b/pom.xml
index fe2aee7..e60005b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -25,22 +25,22 @@ limitations under the License.
     <parent>
         <groupId>org.onap.oparent</groupId>
         <artifactId>oparent</artifactId>
-        <version>1.2.0</version>
+        <version>2.0.0</version>
         <relativePath />
     </parent>
 
     <groupId>org.onap.aai.gizmo</groupId>
     <artifactId>gizmo</artifactId>
-    <version>1.4.0-SNAPSHOT</version>
+    <version>1.6.0-SNAPSHOT</version>
     <name>aai-gizmo</name>
 
     <properties>
         <docker.location>${basedir}/target</docker.location>
         <version.org.onap.aai.aai-schema-ingest>1.4.1</version.org.onap.aai.aai-schema-ingest>
-        <version.org.onap.aai.aai-schema>1.0.5</version.org.onap.aai.aai-schema>
-        <version.org.onap.aai.aai-utils>1.4.0</version.org.onap.aai.aai-utils>
-        <version.org.onap.aai.aai-auth>1.4.0</version.org.onap.aai.aai-auth>
-        <event.client.version>1.3.1</event.client.version>
+        <version.org.onap.aai.aai-schema>1.5.1</version.org.onap.aai.aai-schema>
+        <version.org.onap.aai.aai-utils>1.5.3</version.org.onap.aai.aai-utils>
+        <version.org.onap.aai.aai-auth>1.5.3</version.org.onap.aai.aai-auth>
+        <event.client.version>1.5.0</event.client.version>
         <!-- Minimum code coverage percentage. Please update this figure as coverage increases to prevent any drops in
          coverage caused by new changes. Note that this figure cannot be lower than the ONAP requirement of 0.55 -->
         <jacoco.line.coverage.limit>0.60</jacoco.line.coverage.limit>
@@ -53,7 +53,7 @@ limitations under the License.
                 <!-- Import dependency management from Spring Boot -->
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-dependencies</artifactId>
-                <version>1.5.19.RELEASE</version>
+                <version>1.5.21.RELEASE</version>
                 <type>pom</type>
                 <scope>import</scope>
             </dependency>
@@ -222,7 +222,7 @@ limitations under the License.
         <dependency>
             <groupId>org.onap.aai</groupId>
             <artifactId>rest-client</artifactId>
-            <version>1.2.1</version>
+            <version>1.5.0</version>
         </dependency>
 
         <dependency>
@@ -448,6 +448,8 @@ limitations under the License.
                     <dockerDirectory>${docker.location}</dockerDirectory>
                     <imageTags>
                         <imageTag>latest</imageTag>
+                       <tag>${project.docker.latesttag.version}</tag>
+                       <tag>${parsedVersion.majorVersion}.${parsedVersion.minorVersion}-STAGING-${maven.build.timestamp}</tag>
                     </imageTags>
                     <forceTags>true</forceTags>
                 </configuration>
@@ -503,9 +505,6 @@ limitations under the License.
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-deploy-plugin</artifactId>
-                <configuration>
-                    <skip>true</skip>
-                </configuration>
             </plugin>
             <plugin>
                 <groupId>org.springframework.boot</groupId>
@@ -572,9 +571,22 @@ limitations under the License.
                     </execution>
                 </executions>
             </plugin>
-         </plugins>
+           <plugin>
+             <groupId>org.codehaus.mojo</groupId>
+             <artifactId>build-helper-maven-plugin</artifactId>
+              <version>3.0.0</version>
+              <executions>
+               <execution>
+                 <id>parse-version</id>
+                 <goals>
+                   <goal>parse-version</goal>
+                 </goals>
+               </execution>
+              </executions>
+           </plugin>
+       </plugins>
     </build>
-
+    
     <distributionManagement>
         <site>
             <id>ecomp-javadoc</id>