diff options
Diffstat (limited to 'pom.xml')
-rw-r--r-- | pom.xml | 64 |
1 files changed, 64 insertions, 0 deletions
@@ -34,12 +34,17 @@ <description>DMI Plugin Service</description> <properties> <app>org.onap.cps.ncmp.Application</app> + <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image> <cps.version>1.1.0-SNAPSHOT</cps.version> <findbugs.slf4j.version>1.5.0</findbugs.slf4j.version> <groovy.version>3.0.8</groovy.version> + <image.tag>${project.version}-${maven.build.timestamp}</image.tag> <jacoco.maven.plugin.version>0.8.5</jacoco.maven.plugin.version> <jacoco.minimum.coverage>0.7</jacoco.minimum.coverage> <java.version>11</java.version> + <jib-maven-plugin.version>2.8.0</jib-maven-plugin.version> + <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> + <oparent.version>3.2.0</oparent.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spock-core.version>2.0-M5-groovy-3.0</spock-core.version> <spock-spring.version>2.0-M5-groovy-3.0</spock-spring.version> @@ -342,5 +347,64 @@ </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>${docker.push.registry}/onap/${image.name}:${image.tag}</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>dmi-docker</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <properties> + <image.name>ncmp-dmi-plugin</image.name> + </properties> + <build> + <plugins> + <plugin> + <groupId>com.google.cloud.tools</groupId> + <artifactId>jib-maven-plugin</artifactId> + </plugin> + </plugins> + </build> + </profile> + </profiles> </project>
\ No newline at end of file |