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. |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 6 | Modifications 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> |
Bruno Sakoto | 0d7bf69 | 2022-03-16 17:14:39 -0400 | [diff] [blame] | 30 | <version>3.0.1-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> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 40 | <minimum-coverage>0.82</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> |
puthuparambil.aditya | b46d137 | 2021-07-09 12:51:10 +0100 | [diff] [blame] | 69 | <groupId>io.micrometer</groupId> |
| 70 | <artifactId>micrometer-registry-prometheus</artifactId> |
| 71 | </dependency> |
| 72 | <dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 73 | <groupId>org.springframework.cloud</groupId> |
| 74 | <artifactId>spring-cloud-starter-sleuth</artifactId> |
| 75 | </dependency> |
Ruslan Kashapov | 0d6bbae | 2021-03-11 14:15:49 +0200 | [diff] [blame] | 76 | <!-- T E S T D E P E N D E N C I E S --> |
| 77 | <dependency> |
| 78 | <groupId>org.springframework.security</groupId> |
| 79 | <artifactId>spring-security-test</artifactId> |
| 80 | <scope>test</scope> |
| 81 | </dependency> |
| 82 | <dependency> |
| 83 | <groupId>org.codehaus.groovy</groupId> |
| 84 | <artifactId>groovy</artifactId> |
| 85 | <scope>test</scope> |
| 86 | </dependency> |
| 87 | <dependency> |
| 88 | <groupId>org.spockframework</groupId> |
| 89 | <artifactId>spock-core</artifactId> |
| 90 | <scope>test</scope> |
| 91 | </dependency> |
| 92 | <dependency> |
| 93 | <groupId>org.spockframework</groupId> |
| 94 | <artifactId>spock-spring</artifactId> |
| 95 | <scope>test</scope> |
| 96 | </dependency> |
| 97 | <dependency> |
| 98 | <groupId>cglib</groupId> |
| 99 | <artifactId>cglib-nodep</artifactId> |
| 100 | <scope>test</scope> |
| 101 | </dependency> |
| 102 | <dependency> |
| 103 | <groupId>org.springframework.boot</groupId> |
| 104 | <artifactId>spring-boot-starter-test</artifactId> |
| 105 | <scope>test</scope> |
| 106 | <exclusions> |
| 107 | <exclusion> |
| 108 | <groupId>org.junit.vintage</groupId> |
| 109 | <artifactId>junit-vintage-engine</artifactId> |
| 110 | </exclusion> |
| 111 | </exclusions> |
| 112 | </dependency> |
DylanB95EST | db1f378 | 2021-06-22 16:57:16 +0100 | [diff] [blame] | 113 | <dependency> |
| 114 | <groupId>com.tngtech.archunit</groupId> |
| 115 | <artifactId>archunit-junit5</artifactId> |
| 116 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 117 | </dependencies> |
| 118 | |
| 119 | <build> |
| 120 | <pluginManagement> |
| 121 | <plugins> |
| 122 | <plugin> |
| 123 | <groupId>com.google.cloud.tools</groupId> |
| 124 | <artifactId>jib-maven-plugin</artifactId> |
Claudio D. Gasparini | 4ec225c | 2021-02-04 14:57:39 +0100 | [diff] [blame] | 125 | <version>${jib-maven-plugin.version}</version> |
| 126 | <configuration> |
| 127 | <container> |
| 128 | <mainClass>${app}</mainClass> |
| 129 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 130 | </container> |
| 131 | <from> |
| 132 | <image>${base.image}</image> |
| 133 | </from> |
| 134 | <to> |
Ruslan Kashapov | aad2240 | 2021-02-23 10:08:00 +0200 | [diff] [blame] | 135 | <tags> |
| 136 | <tag>latest</tag> |
| 137 | </tags> |
ToineSiebelink | a401e72 | 2021-06-30 08:38:51 +0100 | [diff] [blame] | 138 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
Claudio D. Gasparini | 4ec225c | 2021-02-04 14:57:39 +0100 | [diff] [blame] | 139 | </to> |
| 140 | </configuration> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 141 | <executions> |
| 142 | <execution> |
| 143 | <phase>package</phase> |
| 144 | <id>build</id> |
| 145 | <goals> |
| 146 | <goal>dockerBuild</goal> |
| 147 | </goals> |
| 148 | </execution> |
| 149 | <execution> |
| 150 | <phase>deploy</phase> |
| 151 | <id>buildAndPush</id> |
| 152 | <goals> |
| 153 | <goal>build</goal> |
| 154 | </goals> |
| 155 | </execution> |
| 156 | </executions> |
| 157 | </plugin> |
| 158 | </plugins> |
| 159 | </pluginManagement> |
| 160 | <plugins> |
| 161 | <plugin> |
| 162 | <groupId>org.springframework.boot</groupId> |
| 163 | <artifactId>spring-boot-maven-plugin</artifactId> |
| 164 | </plugin> |
| 165 | </plugins> |
| 166 | </build> |
| 167 | <profiles> |
| 168 | <profile> |
| 169 | <id>cps-docker</id> |
| 170 | <activation> |
| 171 | <activeByDefault>false</activeByDefault> |
| 172 | </activation> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 173 | |
| 174 | <properties> |
| 175 | <image.name>cps-service</image.name> |
| 176 | </properties> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 177 | <dependencies> |
| 178 | <dependency> |
| 179 | <groupId>${project.groupId}</groupId> |
| 180 | <artifactId>cps-rest</artifactId> |
| 181 | </dependency> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 182 | <dependency> |
| 183 | <groupId>${project.groupId}</groupId> |
| 184 | <artifactId>cps-ri</artifactId> |
| 185 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 186 | </dependencies> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 187 | <build> |
| 188 | <plugins> |
| 189 | <plugin> |
| 190 | <groupId>com.google.cloud.tools</groupId> |
| 191 | <artifactId>jib-maven-plugin</artifactId> |
| 192 | </plugin> |
| 193 | </plugins> |
| 194 | </build> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 195 | </profile> |
| 196 | <profile> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 197 | <id>ncmp-docker</id> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 198 | <activation> |
| 199 | <activeByDefault>false</activeByDefault> |
| 200 | </activation> |
| 201 | |
| 202 | <properties> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 203 | <image.name>cps-ncmp</image.name> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 204 | </properties> |
| 205 | |
| 206 | <dependencies> |
| 207 | <dependency> |
| 208 | <groupId>${project.groupId}</groupId> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 209 | <artifactId>cps-ncmp-rest</artifactId> |
| 210 | <version>${project.version}</version> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 211 | </dependency> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 212 | <dependency> |
| 213 | <groupId>${project.groupId}</groupId> |
| 214 | <artifactId>cps-ri</artifactId> |
| 215 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 216 | </dependencies> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 217 | <build> |
| 218 | <plugins> |
| 219 | <plugin> |
| 220 | <groupId>com.google.cloud.tools</groupId> |
| 221 | <artifactId>jib-maven-plugin</artifactId> |
| 222 | </plugin> |
| 223 | </plugins> |
| 224 | </build> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 225 | </profile> |
| 226 | <profile> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 227 | <id>cps-ncmp-docker</id> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 228 | <activation> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 229 | <activeByDefault>true</activeByDefault> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 230 | </activation> |
| 231 | |
| 232 | <properties> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 233 | <image.name>cps-and-ncmp</image.name> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 234 | </properties> |
| 235 | |
| 236 | <dependencies> |
| 237 | <dependency> |
| 238 | <groupId>${project.groupId}</groupId> |
| 239 | <artifactId>cps-rest</artifactId> |
| 240 | </dependency> |
| 241 | <dependency> |
| 242 | <groupId>${project.groupId}</groupId> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 243 | <artifactId>cps-ncmp-rest</artifactId> |
| 244 | <version>${project.version}</version> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 245 | </dependency> |
Ruslan Kashapov | 8fe579d | 2021-03-04 17:13:00 +0200 | [diff] [blame] | 246 | <dependency> |
| 247 | <groupId>${project.groupId}</groupId> |
| 248 | <artifactId>cps-ri</artifactId> |
| 249 | </dependency> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 250 | </dependencies> |
Claudio D. Gasparini | 6e60380 | 2021-02-20 18:56:47 +0100 | [diff] [blame] | 251 | <build> |
| 252 | <plugins> |
| 253 | <plugin> |
| 254 | <groupId>com.google.cloud.tools</groupId> |
| 255 | <artifactId>jib-maven-plugin</artifactId> |
| 256 | </plugin> |
| 257 | </plugins> |
| 258 | </build> |
Claudio D. Gasparini | b77bf25 | 2021-01-28 15:36:37 +0100 | [diff] [blame] | 259 | </profile> |
| 260 | </profiles> |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 261 | </project> |