Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
Bruno Sakoto | 5c7c489 | 2021-02-08 21:51:05 -0500 | [diff] [blame] | 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
| 4 | Copyright (c) 2021 Pantheon.tech. |
| 5 | Modifications Copyright (C) 2021 Bell Canada. |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 6 | Modification Copyright (C) 2021 Nordix Foundation |
Bruno Sakoto | 5c7c489 | 2021-02-08 21:51:05 -0500 | [diff] [blame] | 7 | ================================================================================ |
| 8 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | you may not use this file except in compliance with the License. |
| 10 | You may obtain a copy of the License at |
| 11 | |
| 12 | http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | |
| 14 | Unless required by applicable law or agreed to in writing, software |
| 15 | distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | See the License for the specific language governing permissions and |
| 18 | limitations under the License. |
| 19 | ============LICENSE_END========================================================= |
| 20 | --> |
| 21 | |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 22 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 23 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 24 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 25 | <modelVersion>4.0.0</modelVersion> |
| 26 | |
| 27 | <parent> |
| 28 | <groupId>org.onap.cps</groupId> |
| 29 | <artifactId>cps-parent</artifactId> |
Rishi.Chail | dbffd91 | 2021-03-05 12:32:33 +0000 | [diff] [blame] | 30 | <version>1.1.0-SNAPSHOT</version> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 31 | <relativePath>../cps-parent/pom.xml</relativePath> |
| 32 | </parent> |
| 33 | |
| 34 | <artifactId>cps-application</artifactId> |
| 35 | |
| 36 | <properties> |
Claudio D. Gasparini | 4ec225c | 2021-02-04 14:57:39 +0100 | [diff] [blame] | 37 | <app>org.onap.cps.Application</app> |
Rishi.Chail | 3f6f5b8 | 2021-03-15 13:35:57 +0000 | [diff] [blame] | 38 | <jib-maven-plugin.version>2.8.0</jib-maven-plugin.version> |
| 39 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 40 | <minimum-coverage>0.7</minimum-coverage> |
ToineSiebelink | a401e72 | 2021-06-30 08:38:51 +0100 | [diff] [blame] | 41 | <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image> |
Renu Kumari | bd35b4d | 2021-05-17 07:16:48 -0400 | [diff] [blame] | 42 | <image.tag>${project.version}-${maven.build.timestamp}</image.tag> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 43 | </properties> |
| 44 | |
| 45 | <dependencies> |
| 46 | <dependency> |
| 47 | <groupId>org.springframework.boot</groupId> |
| 48 | <artifactId>spring-boot-starter-web</artifactId> |
| 49 | <exclusions> |
| 50 | <exclusion> |
| 51 | <groupId>org.springframework.boot</groupId> |
| 52 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 53 | </exclusion> |
| 54 | </exclusions> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>org.springframework.boot</groupId> |
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 58 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.springframework.boot</groupId> |
| 62 | <artifactId>spring-boot-starter-security</artifactId> |
| 63 | </dependency> |
| 64 | <dependency> |
| 65 | <groupId>org.springframework.boot</groupId> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 66 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 67 | </dependency> |
| 68 | <dependency> |
| 69 | <groupId>org.springframework.cloud</groupId> |
| 70 | <artifactId>spring-cloud-starter-sleuth</artifactId> |
| 71 | </dependency> |
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 72 | <!-- T E S T D E P E N D E N C I E S --> |
| 73 | <dependency> |
| 74 | <groupId>org.springframework.security</groupId> |
| 75 | <artifactId>spring-security-test</artifactId> |
| 76 | <scope>test</scope> |
| 77 | </dependency> |
| 78 | <dependency> |
| 79 | <groupId>org.codehaus.groovy</groupId> |
| 80 | <artifactId>groovy</artifactId> |
| 81 | <scope>test</scope> |
| 82 | </dependency> |
| 83 | <dependency> |
| 84 | <groupId>org.spockframework</groupId> |
| 85 | <artifactId>spock-core</artifactId> |
| 86 | <scope>test</scope> |
| 87 | </dependency> |
| 88 | <dependency> |
| 89 | <groupId>org.spockframework</groupId> |
| 90 | <artifactId>spock-spring</artifactId> |
| 91 | <scope>test</scope> |
| 92 | </dependency> |
| 93 | <dependency> |
| 94 | <groupId>cglib</groupId> |
| 95 | <artifactId>cglib-nodep</artifactId> |
| 96 | <scope>test</scope> |
| 97 | </dependency> |
| 98 | <dependency> |
| 99 | <groupId>org.springframework.boot</groupId> |
| 100 | <artifactId>spring-boot-starter-test</artifactId> |
| 101 | <scope>test</scope> |
| 102 | <exclusions> |
| 103 | <exclusion> |
| 104 | <groupId>org.junit.vintage</groupId> |
| 105 | <artifactId>junit-vintage-engine</artifactId> |
| 106 | </exclusion> |
| 107 | </exclusions> |
| 108 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 109 | </dependencies> |
| 110 | |
| 111 | <build> |
| 112 | <pluginManagement> |
| 113 | <plugins> |
| 114 | <plugin> |
| 115 | <groupId>com.google.cloud.tools</groupId> |
| 116 | <artifactId>jib-maven-plugin</artifactId> |
Claudio D. Gasparini | 4ec225c | 2021-02-04 14:57:39 +0100 | [diff] [blame] | 117 | <version>${jib-maven-plugin.version}</version> |
| 118 | <configuration> |
| 119 | <container> |
| 120 | <mainClass>${app}</mainClass> |
| 121 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 122 | </container> |
| 123 | <from> |
| 124 | <image>${base.image}</image> |
| 125 | </from> |
| 126 | <to> |
Ruslan Kashapov | aad2240 | 2021-02-23 10:08:00 +0200 | [diff] [blame] | 127 | <tags> |
| 128 | <tag>latest</tag> |
| 129 | </tags> |
ToineSiebelink | a401e72 | 2021-06-30 08:38:51 +0100 | [diff] [blame] | 130 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
Claudio D. Gasparini | 4ec225c | 2021-02-04 14:57:39 +0100 | [diff] [blame] | 131 | </to> |
| 132 | </configuration> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 133 | <executions> |
| 134 | <execution> |
| 135 | <phase>package</phase> |
| 136 | <id>build</id> |
| 137 | <goals> |
| 138 | <goal>dockerBuild</goal> |
| 139 | </goals> |
| 140 | </execution> |
| 141 | <execution> |
| 142 | <phase>deploy</phase> |
| 143 | <id>buildAndPush</id> |
| 144 | <goals> |
| 145 | <goal>build</goal> |
| 146 | </goals> |
| 147 | </execution> |
| 148 | </executions> |
| 149 | </plugin> |
| 150 | </plugins> |
| 151 | </pluginManagement> |
| 152 | <plugins> |
| 153 | <plugin> |
| 154 | <groupId>org.springframework.boot</groupId> |
| 155 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 156 | </plugin> |
| 157 | </plugins> |
| 158 | </build> |
| 159 | <profiles> |
| 160 | <profile> |
| 161 | <id>cps-docker</id> |
| 162 | <activation> |
| 163 | <activeByDefault>false</activeByDefault> |
| 164 | </activation> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 165 | |
| 166 | <properties> |
| 167 | <image.name>cps-service</image.name> |
| 168 | </properties> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 169 | <dependencies> |
| 170 | <dependency> |
| 171 | <groupId>${project.groupId}</groupId> |
| 172 | <artifactId>cps-rest</artifactId> |
| 173 | </dependency> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 174 | <dependency> |
| 175 | <groupId>${project.groupId}</groupId> |
| 176 | <artifactId>cps-ri</artifactId> |
| 177 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 178 | </dependencies> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 179 | <build> |
| 180 | <plugins> |
| 181 | <plugin> |
| 182 | <groupId>com.google.cloud.tools</groupId> |
| 183 | <artifactId>jib-maven-plugin</artifactId> |
| 184 | </plugin> |
| 185 | </plugins> |
| 186 | </build> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 187 | </profile> |
| 188 | <profile> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 189 | <id>ncmp-docker</id> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 190 | <activation> |
| 191 | <activeByDefault>false</activeByDefault> |
| 192 | </activation> |
| 193 | |
| 194 | <properties> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 195 | <image.name>cps-ncmp</image.name> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 196 | </properties> |
| 197 | |
| 198 | <dependencies> |
| 199 | <dependency> |
| 200 | <groupId>${project.groupId}</groupId> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 201 | <artifactId>cps-ncmp-rest</artifactId> |
| 202 | <version>${project.version}</version> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 203 | </dependency> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 204 | <dependency> |
| 205 | <groupId>${project.groupId}</groupId> |
| 206 | <artifactId>cps-ri</artifactId> |
| 207 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 208 | </dependencies> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 209 | <build> |
| 210 | <plugins> |
| 211 | <plugin> |
| 212 | <groupId>com.google.cloud.tools</groupId> |
| 213 | <artifactId>jib-maven-plugin</artifactId> |
| 214 | </plugin> |
| 215 | </plugins> |
| 216 | </build> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 217 | </profile> |
| 218 | <profile> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 219 | <id>cps-ncmp-docker</id> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 220 | <activation> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 221 | <activeByDefault>true</activeByDefault> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 222 | </activation> |
| 223 | |
| 224 | <properties> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 225 | <image.name>cps-and-ncmp</image.name> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 226 | </properties> |
| 227 | |
| 228 | <dependencies> |
| 229 | <dependency> |
| 230 | <groupId>${project.groupId}</groupId> |
| 231 | <artifactId>cps-rest</artifactId> |
| 232 | </dependency> |
| 233 | <dependency> |
| 234 | <groupId>${project.groupId}</groupId> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 235 | <artifactId>cps-ncmp-rest</artifactId> |
| 236 | <version>${project.version}</version> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 237 | </dependency> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 238 | <dependency> |
| 239 | <groupId>${project.groupId}</groupId> |
| 240 | <artifactId>cps-ri</artifactId> |
| 241 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 242 | </dependencies> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 243 | <build> |
| 244 | <plugins> |
| 245 | <plugin> |
| 246 | <groupId>com.google.cloud.tools</groupId> |
| 247 | <artifactId>jib-maven-plugin</artifactId> |
| 248 | </plugin> |
| 249 | </plugins> |
| 250 | </build> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 251 | </profile> |
| 252 | </profiles> |
| 253 | </project> |