diff options
Diffstat (limited to 'pom.xml')
-rwxr-xr-x[-rw-r--r--] | pom.xml | 63 |
1 files changed, 63 insertions, 0 deletions
@@ -2,6 +2,7 @@ <!-- ============LICENSE_START======================================================= Copyright (c) 2021 Bell Canada. + Modifications Copyright (C) 2021 Nordix Foundation. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -35,10 +36,17 @@ <description>CPS Temporal Service</description> <properties> + <app>org.onap.cps.temporal.Application</app> + <docker.repository.pull>nexus3.onap.org:10001/</docker.repository.pull> + <docker.repository.push>nexus3.onap.org:10003/</docker.repository.push> + <image.base>${docker.repository.pull}onap/integration-java11:8.0.0</image.base> + <image.name>${docker.repository.push}onap/cps-temporal</image.name> <java.version>11</java.version> <minimum-coverage>0.8</minimum-coverage> <cps.checkstyle.version>1.0.1</cps.checkstyle.version> <cps.spotbugs.version>1.0.1</cps.spotbugs.version> + <jib-maven-plugin.version>3.0.0</jib-maven-plugin.version> + <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> <oparent.version>3.2.0</oparent.version> <spotbugs-maven-plugin.version>4.1.3</spotbugs-maven-plugin.version> <spotbugs.slf4j.version>1.8.0-beta4</spotbugs.slf4j.version> @@ -346,5 +354,60 @@ </executions> </plugin> </plugins> + + <pluginManagement> + <plugins> + <plugin> + <groupId>com.google.cloud.tools</groupId> + <artifactId>jib-maven-plugin</artifactId> + <version>${jib-maven-plugin.version}</version> + <configuration> + <container> + <mainClass>${app}</mainClass> + <creationTime>USE_CURRENT_TIMESTAMP</creationTime> + </container> + <from> + <image>${base.image}</image> + </from> + <to> + <tags> + <tag>latest</tag> + </tags> + <image>${image.name}:${project.version}-${maven.build.timestamp}</image> + </to> + </configuration> + <executions> + <execution> + <phase>package</phase> + <id>build</id> + <goals> + <goal>dockerBuild</goal> + </goals> + </execution> + <execution> + <phase>deploy</phase> + <id>buildAndPush</id> + <goals> + <goal>build</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </pluginManagement> </build> + + <profiles> + <profile> + <id>cps-temporal-docker</id> + <build> + <plugins> + <plugin> + <groupId>com.google.cloud.tools</groupId> + <artifactId>jib-maven-plugin</artifactId> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project> |