DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
sourabh_sourabh | 4537a8b | 2023-02-01 12:56:44 +0000 | [diff] [blame] | 3 | Copyright (c) 2021-2023 Nordix Foundation. |
puthuparambil.aditya | 08fe971 | 2021-07-13 11:52:13 +0100 | [diff] [blame] | 4 | Modifications Copyright (C) 2021 Bell Canada. |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 5 | ================================================================================ |
| 6 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | you may not use this file except in compliance with the License. |
| 8 | You may obtain a copy of the License at |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 9 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 10 | http://www.apache.org/licenses/LICENSE-2.0 |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 11 | |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 12 | Unless required by applicable law or agreed to in writing, software |
| 13 | distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | See the License for the specific language governing permissions and |
| 16 | limitations under the License. |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 17 | |
| 18 | SPDX-License-Identifier: Apache-2.0 |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 19 | ============LICENSE_END========================================================= |
ToineSiebelink | 4cbd60b | 2021-09-30 16:53:42 +0100 | [diff] [blame] | 20 | --> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 21 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
puthuparambil.aditya | 08fe971 | 2021-07-13 11:52:13 +0100 | [diff] [blame] | 22 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 23 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 24 | <modelVersion>4.0.0</modelVersion> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 25 | <parent> |
| 26 | <groupId>org.onap.oparent</groupId> |
| 27 | <artifactId>oparent</artifactId> |
ToineSiebelink | 54d10a7 | 2022-04-05 13:54:32 +0100 | [diff] [blame] | 28 | <version>3.3.0</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 29 | <relativePath/> |
| 30 | </parent> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 31 | <organization> |
| 32 | <name>ONAP - CPS</name> |
| 33 | <url>http://www.onap.org/</url> |
| 34 | </organization> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 35 | <groupId>org.onap.cps</groupId> |
| 36 | <artifactId>ncmp-dmi-plugin</artifactId> |
mpriyank | a068cd4 | 2023-11-07 12:11:57 +0000 | [diff] [blame^] | 37 | <version>1.4.1-SNAPSHOT</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 38 | <name>ncmp-dmi-plugin</name> |
| 39 | <description>DMI Plugin Service</description> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 40 | <properties> |
niamhcore | 71a61bb | 2021-07-06 10:32:17 +0100 | [diff] [blame] | 41 | <app>org.onap.cps.ncmp.dmi.Application</app> |
egernug | 92f74d7 | 2023-07-17 13:45:51 +0100 | [diff] [blame] | 42 | <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image> |
mpriyank | 6128d73 | 2023-11-06 17:53:00 +0000 | [diff] [blame] | 43 | <cps.version>3.3.9</cps.version> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 44 | <image.tag>${project.version}-${maven.build.timestamp}</image.tag> |
ToineSiebelink | 4cbd60b | 2021-09-30 16:53:42 +0100 | [diff] [blame] | 45 | <jacoco.minimum.coverage>0.98</jacoco.minimum.coverage> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 46 | <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 47 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 48 | </properties> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 49 | <dependencyManagement> |
| 50 | <dependencies> |
| 51 | <dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 52 | <groupId>org.springframework.boot</groupId> |
| 53 | <artifactId>spring-boot-dependencies</artifactId> |
| 54 | <version>3.1.2</version> |
| 55 | <type>pom</type> |
| 56 | <scope>import</scope> |
| 57 | </dependency> |
| 58 | <dependency> |
| 59 | <groupId>org.springframework.cloud</groupId> |
| 60 | <artifactId>spring-cloud-dependencies</artifactId> |
| 61 | <version>2022.0.3</version> |
| 62 | <type>pom</type> |
| 63 | <scope>import</scope> |
| 64 | </dependency> |
| 65 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 66 | <groupId>com.google.code.gson</groupId> |
| 67 | <artifactId>gson</artifactId> |
| 68 | <version>2.8.9</version> |
| 69 | </dependency> |
| 70 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 71 | <groupId>io.swagger.core.v3</groupId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 72 | <artifactId>swagger-annotations</artifactId> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 73 | <version>2.2.10</version> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 74 | </dependency> |
| 75 | <dependency> |
mpriyank | a9b8d9d | 2023-06-20 13:42:31 +0100 | [diff] [blame] | 76 | <groupId>io.cloudevents</groupId> |
| 77 | <artifactId>cloudevents-json-jackson</artifactId> |
| 78 | <version>2.5.0</version> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>io.cloudevents</groupId> |
| 82 | <artifactId>cloudevents-kafka</artifactId> |
| 83 | <version>2.5.0</version> |
| 84 | </dependency> |
| 85 | <dependency> |
| 86 | <groupId>io.cloudevents</groupId> |
| 87 | <artifactId>cloudevents-spring</artifactId> |
| 88 | <version>2.5.0</version> |
| 89 | </dependency> |
| 90 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 91 | <groupId>net.logstash.logback</groupId> |
| 92 | <artifactId>logstash-logback-encoder</artifactId> |
| 93 | <version>7.0.1</version> |
| 94 | </dependency> |
| 95 | <dependency> |
egernug | a12d271 | 2023-11-01 11:02:24 +0000 | [diff] [blame] | 96 | <groupId>net.minidev</groupId> |
| 97 | <artifactId>json-smart</artifactId> |
| 98 | <version>2.5.0</version> |
| 99 | </dependency> |
| 100 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 101 | <groupId>org.apache.httpcomponents</groupId> |
| 102 | <artifactId>httpclient</artifactId> |
| 103 | <version>4.5.13</version> |
| 104 | </dependency> |
| 105 | <dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 106 | <groupId>org.codehaus.groovy</groupId> |
| 107 | <artifactId>groovy</artifactId> |
| 108 | <version>3.0.18</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 109 | </dependency> |
| 110 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 111 | <groupId>org.spockframework</groupId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 112 | <artifactId>spock-core</artifactId> |
| 113 | <version>2.4-M1-groovy-3.0</version> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>org.spockframework</groupId> |
| 117 | <artifactId>spock-spring</artifactId> |
| 118 | <version>2.4-M1-groovy-3.0</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 119 | </dependency> |
niamhcore | 9835107 | 2021-12-15 11:23:56 +0000 | [diff] [blame] | 120 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 121 | <groupId>org.springdoc</groupId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 122 | <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
| 123 | <version>2.0.2</version> |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 124 | </dependency> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 125 | <dependency> |
| 126 | <groupId>org.testcontainers</groupId> |
| 127 | <artifactId>testcontainers-bom</artifactId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 128 | <version>1.18.3</version> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 129 | <type>pom</type> |
| 130 | <scope>import</scope> |
| 131 | </dependency> |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 132 | <dependency> |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 133 | <groupId>org.codehaus.janino</groupId> |
| 134 | <artifactId>janino</artifactId> |
egernug | a12d271 | 2023-11-01 11:02:24 +0000 | [diff] [blame] | 135 | <version>3.1.10</version> |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 136 | </dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 137 | <dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 138 | <groupId>org.projectlombok</groupId> |
| 139 | <artifactId>lombok</artifactId> |
| 140 | <version>1.18.24</version> |
| 141 | </dependency> |
| 142 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 143 | <groupId>org.onap.cps</groupId> |
| 144 | <artifactId>cps-ncmp-events</artifactId> |
mpriyank | b1332ae | 2022-09-23 12:59:38 +0100 | [diff] [blame] | 145 | <version>${cps.version}</version> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 146 | </dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 147 | <dependency> |
| 148 | <groupId>org.apache.httpcomponents.client5</groupId> |
| 149 | <artifactId>httpclient5</artifactId> |
| 150 | <version>5.2.1</version> |
| 151 | </dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 152 | </dependencies> |
| 153 | </dependencyManagement> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 154 | <dependencies> |
| 155 | <dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 156 | <groupId>org.springframework.boot</groupId> |
| 157 | <artifactId>spring-boot-starter-web</artifactId> |
| 158 | </dependency> |
| 159 | <dependency> |
| 160 | <groupId>org.springframework.boot</groupId> |
| 161 | <artifactId>spring-boot-starter-validation</artifactId> |
| 162 | </dependency> |
| 163 | <dependency> |
| 164 | <groupId>org.springdoc</groupId> |
| 165 | <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId> |
| 166 | </dependency> |
| 167 | <dependency> |
| 168 | <groupId>org.springframework.boot</groupId> |
| 169 | <artifactId>spring-boot-starter-security</artifactId> |
| 170 | </dependency> |
| 171 | <dependency> |
| 172 | <groupId>org.springframework.boot</groupId> |
| 173 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 174 | </dependency> |
| 175 | <dependency> |
| 176 | <groupId>org.springframework.kafka</groupId> |
| 177 | <artifactId>spring-kafka</artifactId> |
| 178 | </dependency> |
| 179 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 180 | <groupId>com.google.code.gson</groupId> |
| 181 | <artifactId>gson</artifactId> |
| 182 | </dependency> |
| 183 | <dependency> |
| 184 | <groupId>com.jayway.jsonpath</groupId> |
| 185 | <artifactId>json-path</artifactId> |
| 186 | </dependency> |
| 187 | <dependency> |
| 188 | <groupId>io.micrometer</groupId> |
| 189 | <artifactId>micrometer-registry-prometheus</artifactId> |
| 190 | </dependency> |
| 191 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 192 | <groupId>io.swagger.core.v3</groupId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 193 | <artifactId>swagger-annotations</artifactId> |
| 194 | </dependency> |
| 195 | <dependency> |
mpriyank | a9b8d9d | 2023-06-20 13:42:31 +0100 | [diff] [blame] | 196 | <groupId>io.cloudevents</groupId> |
| 197 | <artifactId>cloudevents-json-jackson</artifactId> |
| 198 | </dependency> |
| 199 | <dependency> |
| 200 | <groupId>io.cloudevents</groupId> |
| 201 | <artifactId>cloudevents-kafka</artifactId> |
| 202 | </dependency> |
| 203 | <dependency> |
| 204 | <groupId>io.cloudevents</groupId> |
| 205 | <artifactId>cloudevents-spring</artifactId> |
| 206 | </dependency> |
| 207 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 208 | <groupId>net.logstash.logback</groupId> |
| 209 | <artifactId>logstash-logback-encoder</artifactId> |
| 210 | </dependency> |
| 211 | <dependency> |
| 212 | <groupId>net.minidev</groupId> |
| 213 | <artifactId>json-smart</artifactId> |
| 214 | </dependency> |
| 215 | <dependency> |
| 216 | <groupId>org.apache.httpcomponents</groupId> |
| 217 | <artifactId>httpclient</artifactId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 218 | </dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 219 | |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 220 | <dependency> |
| 221 | <groupId>org.codehaus.groovy</groupId> |
| 222 | <artifactId>groovy</artifactId> |
| 223 | </dependency> |
| 224 | <dependency> |
| 225 | <groupId>org.codehaus.janino</groupId> |
| 226 | <artifactId>janino</artifactId> |
| 227 | </dependency> |
| 228 | <dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 229 | <groupId>org.eclipse.jetty</groupId> |
| 230 | <artifactId>jetty-server</artifactId> |
| 231 | </dependency> |
| 232 | <dependency> |
| 233 | <groupId>org.eclipse.jetty</groupId> |
| 234 | <artifactId>jetty-http</artifactId> |
| 235 | </dependency> |
| 236 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 237 | <groupId>org.onap.cps</groupId> |
| 238 | <artifactId>cps-ncmp-events</artifactId> |
| 239 | </dependency> |
| 240 | <dependency> |
| 241 | <groupId>org.projectlombok</groupId> |
| 242 | <artifactId>lombok</artifactId> |
| 243 | </dependency> |
| 244 | <dependency> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 245 | <groupId>org.apache.httpcomponents.client5</groupId> |
| 246 | <artifactId>httpclient5</artifactId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 247 | </dependency> |
| 248 | <!-- T E S T - D E P E N D E N C I E S --> |
| 249 | <dependency> |
| 250 | <groupId>org.spockframework</groupId> |
| 251 | <artifactId>spock-core</artifactId> |
| 252 | <scope>test</scope> |
| 253 | </dependency> |
| 254 | <dependency> |
| 255 | <groupId>org.spockframework</groupId> |
| 256 | <artifactId>spock-spring</artifactId> |
| 257 | <scope>test</scope> |
Renu Kumari | 306cadd | 2021-10-22 00:50:29 -0400 | [diff] [blame] | 258 | </dependency> |
| 259 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 260 | <groupId>org.springframework.boot</groupId> |
| 261 | <artifactId>spring-boot-starter-test</artifactId> |
| 262 | <scope>test</scope> |
| 263 | <exclusions> |
| 264 | <exclusion> |
| 265 | <groupId>org.junit.vintage</groupId> |
| 266 | <artifactId>junit-vintage-engine</artifactId> |
| 267 | </exclusion> |
| 268 | </exclusions> |
| 269 | </dependency> |
| 270 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 271 | <groupId>org.springframework.kafka</groupId> |
| 272 | <artifactId>spring-kafka-test</artifactId> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 273 | <scope>test</scope> |
| 274 | </dependency> |
| 275 | <dependency> |
Renu Kumari | 306cadd | 2021-10-22 00:50:29 -0400 | [diff] [blame] | 276 | <groupId>org.springframework.security</groupId> |
| 277 | <artifactId>spring-security-test</artifactId> |
| 278 | <scope>test</scope> |
| 279 | </dependency> |
| 280 | <dependency> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 281 | <groupId>org.testcontainers</groupId> |
| 282 | <artifactId>spock</artifactId> |
| 283 | <scope>test</scope> |
| 284 | </dependency> |
| 285 | <dependency> |
| 286 | <groupId>org.testcontainers</groupId> |
| 287 | <artifactId>kafka</artifactId> |
| 288 | <scope>test</scope> |
| 289 | </dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 290 | </dependencies> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 291 | <build> |
| 292 | <resources> |
| 293 | <resource> |
| 294 | <directory>src/main/resources</directory> |
| 295 | <filtering>true</filtering> |
| 296 | </resource> |
| 297 | <resource> |
| 298 | <directory>target/generated-sources/license</directory> |
| 299 | <includes> |
| 300 | <include>third-party-licenses.txt</include> |
| 301 | </includes> |
| 302 | </resource> |
| 303 | <resource> |
| 304 | <directory>target/generated-resources/licenses</directory> |
| 305 | <includes> |
| 306 | <include>*.*</include> |
| 307 | </includes> |
| 308 | <targetPath>third-party-licenses</targetPath> |
| 309 | </resource> |
| 310 | </resources> |
| 311 | <plugins> |
| 312 | <plugin> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 313 | <groupId>org.openapitools</groupId> |
| 314 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 315 | <version>6.6.0</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 316 | <executions> |
| 317 | <execution> |
| 318 | <goals> |
| 319 | <goal>generate</goal> |
| 320 | </goals> |
| 321 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 322 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 323 | <generatorName>spring</generatorName> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 324 | <generateSupportingFiles>false</generateSupportingFiles> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 325 | <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 326 | <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage> |
| 327 | <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 328 | <generateAliasAsModel>true</generateAliasAsModel> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 329 | <configOptions> |
| 330 | <sourceFolder>src/gen/java</sourceFolder> |
| 331 | <dateLibrary>java11</dateLibrary> |
| 332 | <interfaceOnly>true</interfaceOnly> |
| 333 | <useTags>true</useTags> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 334 | <useSpringBoot3>true</useSpringBoot3> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 335 | <openApiNullable>false</openApiNullable> |
| 336 | <skipDefaultInterface>true</skipDefaultInterface> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 337 | </configOptions> |
| 338 | </configuration> |
| 339 | </execution> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 340 | <execution> |
| 341 | <id>openapi-yaml-gen</id> |
| 342 | <goals> |
| 343 | <goal>generate</goal> |
| 344 | </goals> |
| 345 | <phase>compile</phase> |
| 346 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 347 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 348 | <generatorName>openapi-yaml</generatorName> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 349 | </configuration> |
| 350 | </execution> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 351 | </executions> |
| 352 | </plugin> |
| 353 | <plugin> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 354 | <artifactId>maven-resources-plugin</artifactId> |
| 355 | <executions> |
| 356 | <execution> |
| 357 | <id>copy-resources</id> |
| 358 | <phase>compile</phase> |
| 359 | <goals> |
| 360 | <goal>copy-resources</goal> |
| 361 | </goals> |
| 362 | <configuration> |
| 363 | <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory> |
| 364 | <resources> |
| 365 | <resource> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 366 | <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 367 | <includes> |
| 368 | <include>openapi.yaml</include> |
| 369 | </includes> |
| 370 | </resource> |
| 371 | </resources> |
| 372 | </configuration> |
| 373 | </execution> |
| 374 | </executions> |
| 375 | </plugin> |
| 376 | <plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 377 | <groupId>org.springframework.boot</groupId> |
| 378 | <artifactId>spring-boot-maven-plugin</artifactId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 379 | <version>3.1.2</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 380 | <executions> |
| 381 | <execution> |
| 382 | <goals> |
| 383 | <goal>build-info</goal> |
| 384 | <goal>repackage</goal> |
| 385 | </goals> |
| 386 | </execution> |
| 387 | </executions> |
| 388 | </plugin> |
| 389 | <plugin> |
| 390 | <groupId>org.codehaus.gmavenplus</groupId> |
| 391 | <artifactId>gmavenplus-plugin</artifactId> |
| 392 | <executions> |
| 393 | <execution> |
| 394 | <goals> |
| 395 | <goal>compileTests</goal> |
| 396 | </goals> |
| 397 | </execution> |
| 398 | </executions> |
| 399 | </plugin> |
| 400 | <plugin> |
| 401 | <groupId>org.apache.maven.plugins</groupId> |
| 402 | <artifactId>maven-surefire-plugin</artifactId> |
| 403 | <configuration> |
| 404 | <argLine>${surefireArgLine}</argLine> |
| 405 | <includes> |
| 406 | <include>**/*Spec.java</include> |
| 407 | </includes> |
| 408 | <excludes> |
| 409 | <exclude>**/IT*.java</exclude> |
| 410 | </excludes> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 411 | <environmentVariables> |
| 412 | <!-- |
| 413 | Disable privileged container usage to cleanup the test containers; |
| 414 | these are removed automatically on jvm termination; |
| 415 | see https://www.testcontainers.org/features/configuration/#disabling-ryuk |
| 416 | --> |
| 417 | <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> |
| 418 | </environmentVariables> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 419 | </configuration> |
| 420 | </plugin> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 421 | <plugin> |
| 422 | <groupId>org.apache.maven.plugins</groupId> |
| 423 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 424 | <executions> |
| 425 | <execution> |
Bruno Sakoto | ff5f74d | 2021-07-14 11:15:48 -0400 | [diff] [blame] | 426 | <id>onap-license</id> |
| 427 | <goals> |
| 428 | <goal>check</goal> |
| 429 | </goals> |
| 430 | <phase>process-sources</phase> |
| 431 | <configuration> |
| 432 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 433 | <includeResources>false</includeResources> |
| 434 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 435 | <includeTestResources>false</includeTestResources> |
| 436 | <sourceDirectories> |
| 437 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 438 | </sourceDirectories> |
| 439 | <consoleOutput>false</consoleOutput> |
| 440 | <violationSeverity>warning</violationSeverity> |
| 441 | <failOnViolation>true</failOnViolation> |
| 442 | </configuration> |
| 443 | </execution> |
| 444 | <execution> |
| 445 | <id>onap-java-style</id> |
| 446 | <goals> |
| 447 | <goal>check</goal> |
| 448 | </goals> |
| 449 | <phase>process-sources</phase> |
| 450 | <configuration> |
| 451 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 452 | <sourceDirectories> |
| 453 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 454 | </sourceDirectories> |
| 455 | <includeResources>true</includeResources> |
| 456 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 457 | <includeTestResources>true</includeTestResources> |
| 458 | <consoleOutput>false</consoleOutput> |
| 459 | <violationSeverity>warning</violationSeverity> |
| 460 | <failOnViolation>true</failOnViolation> |
| 461 | </configuration> |
| 462 | </execution> |
| 463 | <execution> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 464 | <id>cps-java-style</id> |
| 465 | <goals> |
| 466 | <goal>check</goal> |
| 467 | </goals> |
| 468 | <phase>process-sources</phase> |
| 469 | <configuration> |
| 470 | <configLocation>cps-java-style.xml</configLocation> |
| 471 | <sourceDirectories> |
| 472 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 473 | </sourceDirectories> |
| 474 | <includeResources>true</includeResources> |
| 475 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 476 | <includeTestResources>true</includeTestResources> |
| 477 | <consoleOutput>true</consoleOutput> |
| 478 | <violationSeverity>warning</violationSeverity> |
| 479 | <failOnViolation>true</failOnViolation> |
| 480 | </configuration> |
| 481 | </execution> |
| 482 | </executions> |
| 483 | <dependencies> |
| 484 | <dependency> |
| 485 | <groupId>${project.groupId}</groupId> |
| 486 | <artifactId>checkstyle</artifactId> |
| 487 | <version>${cps.version}</version> |
| 488 | </dependency> |
| 489 | </dependencies> |
| 490 | </plugin> |
| 491 | <plugin> |
| 492 | <groupId>com.github.spotbugs</groupId> |
| 493 | <artifactId>spotbugs-maven-plugin</artifactId> |
egernug | 92f74d7 | 2023-07-17 13:45:51 +0100 | [diff] [blame] | 494 | <version>4.4.2</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 495 | <executions> |
| 496 | <execution> |
| 497 | <id>analyze-compile</id> |
| 498 | <phase>compile</phase> |
| 499 | <goals> |
| 500 | <goal>check</goal> |
| 501 | </goals> |
| 502 | </execution> |
| 503 | </executions> |
| 504 | <dependencies> |
| 505 | <dependency> |
| 506 | <groupId>${project.groupId}</groupId> |
| 507 | <artifactId>spotbugs</artifactId> |
| 508 | <version>${cps.version}</version> |
| 509 | <scope>compile</scope> |
| 510 | </dependency> |
| 511 | </dependencies> |
| 512 | <configuration> |
| 513 | <plugins> |
| 514 | <plugin> |
| 515 | <groupId>jp.skypencil.findbugs.slf4j</groupId> |
| 516 | <artifactId>bug-pattern</artifactId> |
shivasubedi | 275c1dc | 2021-07-07 16:39:34 +0100 | [diff] [blame] | 517 | <version>1.5.0</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 518 | </plugin> |
| 519 | </plugins> |
| 520 | <effort>Max</effort> |
| 521 | <threshold>Low</threshold> |
| 522 | <failOnError>true</failOnError> |
| 523 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile> |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 524 | <addSourceDirs>true</addSourceDirs> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 525 | <xmlOutput>true</xmlOutput> |
| 526 | <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory> |
| 527 | </configuration> |
| 528 | </plugin> |
| 529 | <plugin> |
| 530 | <groupId>org.jacoco</groupId> |
| 531 | <artifactId>jacoco-maven-plugin</artifactId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 532 | <version>0.8.10</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 533 | <configuration> |
| 534 | <excludes> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 535 | <exclude>org/onap/cps/ncmp/dmi/model/*</exclude> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 536 | </excludes> |
| 537 | </configuration> |
| 538 | <executions> |
| 539 | <execution> |
| 540 | <id>default-prepare-agent</id> |
| 541 | <goals> |
| 542 | <goal>prepare-agent</goal> |
| 543 | </goals> |
| 544 | </execution> |
| 545 | <execution> |
| 546 | <id>coverage-check</id> |
| 547 | <goals> |
| 548 | <goal>check</goal> |
| 549 | </goals> |
| 550 | <configuration> |
| 551 | <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile> |
| 552 | <rules> |
| 553 | <rule> |
| 554 | <element>BUNDLE</element> |
| 555 | <limits> |
| 556 | <limit> |
| 557 | <counter>INSTRUCTION</counter> |
| 558 | <value>COVEREDRATIO</value> |
| 559 | <minimum>${jacoco.minimum.coverage}</minimum> |
| 560 | </limit> |
| 561 | </limits> |
| 562 | </rule> |
| 563 | </rules> |
| 564 | </configuration> |
| 565 | </execution> |
| 566 | <execution> |
| 567 | <id>report</id> |
| 568 | <phase>verify</phase> |
| 569 | <goals> |
| 570 | <goal>report-aggregate</goal> |
| 571 | </goals> |
| 572 | <configuration> |
| 573 | <dataFileIncludes> |
| 574 | <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude> |
| 575 | </dataFileIncludes> |
| 576 | </configuration> |
| 577 | </execution> |
| 578 | </executions> |
| 579 | </plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 580 | </plugins> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 581 | <pluginManagement> |
| 582 | <plugins> |
| 583 | <plugin> |
| 584 | <groupId>com.google.cloud.tools</groupId> |
| 585 | <artifactId>jib-maven-plugin</artifactId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 586 | <version>3.3.2</version> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 587 | <configuration> |
| 588 | <container> |
| 589 | <mainClass>${app}</mainClass> |
| 590 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 591 | </container> |
| 592 | <from> |
| 593 | <image>${base.image}</image> |
| 594 | </from> |
| 595 | <to> |
| 596 | <tags> |
ToineSiebelink | 98df7fc | 2022-10-27 11:06:53 +0100 | [diff] [blame] | 597 | <tag>latest</tag> |
JosephKeenan | 371ec2f | 2021-12-01 09:46:58 +0000 | [diff] [blame] | 598 | <tag>${project.version}-latest</tag> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 599 | </tags> |
| 600 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
| 601 | </to> |
| 602 | </configuration> |
| 603 | <executions> |
| 604 | <execution> |
| 605 | <phase>package</phase> |
| 606 | <id>build</id> |
| 607 | <goals> |
| 608 | <goal>dockerBuild</goal> |
| 609 | </goals> |
| 610 | </execution> |
| 611 | <execution> |
| 612 | <phase>deploy</phase> |
| 613 | <id>buildAndPush</id> |
| 614 | <goals> |
| 615 | <goal>build</goal> |
| 616 | </goals> |
| 617 | </execution> |
| 618 | </executions> |
| 619 | </plugin> |
| 620 | </plugins> |
| 621 | </pluginManagement> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 622 | </build> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 623 | <profiles> |
| 624 | <profile> |
puthuparambil.aditya | eddb3dd | 2021-07-27 15:57:19 +0100 | [diff] [blame] | 625 | <id>docker</id> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 626 | <activation> |
| 627 | <activeByDefault>true</activeByDefault> |
| 628 | </activation> |
| 629 | <properties> |
| 630 | <image.name>ncmp-dmi-plugin</image.name> |
| 631 | </properties> |
| 632 | <build> |
| 633 | <plugins> |
| 634 | <plugin> |
| 635 | <groupId>com.google.cloud.tools</groupId> |
| 636 | <artifactId>jib-maven-plugin</artifactId> |
| 637 | </plugin> |
| 638 | </plugins> |
| 639 | </build> |
| 640 | </profile> |
| 641 | </profiles> |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 642 | </project> |