DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 1 | <!-- |
| 2 | ============LICENSE_START======================================================= |
egernug | b0ee038 | 2024-04-17 10:08:38 +0100 | [diff] [blame] | 3 | Copyright (c) 2021-2024 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 | b5d9fd1 | 2023-11-07 14:33:55 +0000 | [diff] [blame] | 37 | <version>1.5.0-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> |
seanbeirne | 1a83551 | 2024-05-14 10:43:00 +0100 | [diff] [blame^] | 43 | <cps.version>3.4.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> |
egernug | b0ee038 | 2024-04-17 10:08:38 +0100 | [diff] [blame] | 318 | <id>dmi-code-gen</id> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 319 | <goals> |
| 320 | <goal>generate</goal> |
| 321 | </goals> |
| 322 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 323 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 324 | <generatorName>spring</generatorName> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 325 | <generateSupportingFiles>false</generateSupportingFiles> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 326 | <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 327 | <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage> |
| 328 | <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 329 | <generateAliasAsModel>true</generateAliasAsModel> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 330 | <configOptions> |
| 331 | <sourceFolder>src/gen/java</sourceFolder> |
| 332 | <dateLibrary>java11</dateLibrary> |
| 333 | <interfaceOnly>true</interfaceOnly> |
| 334 | <useTags>true</useTags> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 335 | <useSpringBoot3>true</useSpringBoot3> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 336 | <openApiNullable>false</openApiNullable> |
| 337 | <skipDefaultInterface>true</skipDefaultInterface> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 338 | </configOptions> |
| 339 | </configuration> |
| 340 | </execution> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 341 | <execution> |
egernug | b0ee038 | 2024-04-17 10:08:38 +0100 | [diff] [blame] | 342 | <id>dmi-datajob-code-gen</id> |
| 343 | <goals> |
| 344 | <goal>generate</goal> |
| 345 | </goals> |
| 346 | <configuration> |
| 347 | <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec> |
| 348 | <generatorName>spring</generatorName> |
| 349 | <generateSupportingFiles>false</generateSupportingFiles> |
| 350 | <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage> |
| 351 | <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage> |
| 352 | <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage> |
| 353 | <generateAliasAsModel>true</generateAliasAsModel> |
| 354 | <configOptions> |
| 355 | <sourceFolder>src/gen/java</sourceFolder> |
| 356 | <dateLibrary>java11</dateLibrary> |
| 357 | <interfaceOnly>true</interfaceOnly> |
| 358 | <useTags>true</useTags> |
| 359 | <useSpringBoot3>true</useSpringBoot3> |
| 360 | <openApiNullable>false</openApiNullable> |
| 361 | <skipDefaultInterface>true</skipDefaultInterface> |
| 362 | </configOptions> |
| 363 | </configuration> |
| 364 | </execution> |
| 365 | <execution> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 366 | <id>openapi-yaml-gen</id> |
| 367 | <goals> |
| 368 | <goal>generate</goal> |
| 369 | </goals> |
| 370 | <phase>compile</phase> |
| 371 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 372 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 373 | <generatorName>openapi-yaml</generatorName> |
egernug | b0ee038 | 2024-04-17 10:08:38 +0100 | [diff] [blame] | 374 | <configOptions> |
| 375 | <outputFile>openapi/openapi.yaml</outputFile> |
| 376 | </configOptions> |
| 377 | </configuration> |
| 378 | </execution> |
| 379 | <execution> |
| 380 | <id>openapi-datajob-yaml-gen</id> |
| 381 | <goals> |
| 382 | <goal>generate</goal> |
| 383 | </goals> |
| 384 | <phase>compile</phase> |
| 385 | <configuration> |
| 386 | <inputSpec>${project.basedir}/openapi/openapi-datajob.yml</inputSpec> |
| 387 | <generatorName>openapi-yaml</generatorName> |
| 388 | <configOptions> |
| 389 | <outputFile>openapi/openapi-datajob.yaml</outputFile> |
| 390 | </configOptions> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 391 | </configuration> |
| 392 | </execution> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 393 | </executions> |
| 394 | </plugin> |
| 395 | <plugin> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 396 | <artifactId>maven-resources-plugin</artifactId> |
| 397 | <executions> |
| 398 | <execution> |
| 399 | <id>copy-resources</id> |
| 400 | <phase>compile</phase> |
| 401 | <goals> |
| 402 | <goal>copy-resources</goal> |
| 403 | </goals> |
| 404 | <configuration> |
| 405 | <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory> |
| 406 | <resources> |
| 407 | <resource> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame] | 408 | <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 409 | <includes> |
egernug | b0ee038 | 2024-04-17 10:08:38 +0100 | [diff] [blame] | 410 | <include>openapi*.yaml</include> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 411 | </includes> |
| 412 | </resource> |
| 413 | </resources> |
| 414 | </configuration> |
| 415 | </execution> |
| 416 | </executions> |
| 417 | </plugin> |
| 418 | <plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 419 | <groupId>org.springframework.boot</groupId> |
| 420 | <artifactId>spring-boot-maven-plugin</artifactId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 421 | <version>3.1.2</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 422 | <executions> |
| 423 | <execution> |
| 424 | <goals> |
| 425 | <goal>build-info</goal> |
| 426 | <goal>repackage</goal> |
| 427 | </goals> |
| 428 | </execution> |
| 429 | </executions> |
| 430 | </plugin> |
| 431 | <plugin> |
| 432 | <groupId>org.codehaus.gmavenplus</groupId> |
| 433 | <artifactId>gmavenplus-plugin</artifactId> |
| 434 | <executions> |
| 435 | <execution> |
| 436 | <goals> |
| 437 | <goal>compileTests</goal> |
| 438 | </goals> |
| 439 | </execution> |
| 440 | </executions> |
| 441 | </plugin> |
| 442 | <plugin> |
| 443 | <groupId>org.apache.maven.plugins</groupId> |
| 444 | <artifactId>maven-surefire-plugin</artifactId> |
| 445 | <configuration> |
| 446 | <argLine>${surefireArgLine}</argLine> |
| 447 | <includes> |
| 448 | <include>**/*Spec.java</include> |
| 449 | </includes> |
| 450 | <excludes> |
| 451 | <exclude>**/IT*.java</exclude> |
| 452 | </excludes> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 453 | <environmentVariables> |
| 454 | <!-- |
| 455 | Disable privileged container usage to cleanup the test containers; |
| 456 | these are removed automatically on jvm termination; |
| 457 | see https://www.testcontainers.org/features/configuration/#disabling-ryuk |
| 458 | --> |
| 459 | <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> |
| 460 | </environmentVariables> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 461 | </configuration> |
| 462 | </plugin> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 463 | <plugin> |
| 464 | <groupId>org.apache.maven.plugins</groupId> |
| 465 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 466 | <executions> |
| 467 | <execution> |
Bruno Sakoto | ff5f74d | 2021-07-14 11:15:48 -0400 | [diff] [blame] | 468 | <id>onap-license</id> |
| 469 | <goals> |
| 470 | <goal>check</goal> |
| 471 | </goals> |
| 472 | <phase>process-sources</phase> |
| 473 | <configuration> |
| 474 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 475 | <includeResources>false</includeResources> |
| 476 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 477 | <includeTestResources>false</includeTestResources> |
| 478 | <sourceDirectories> |
| 479 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 480 | </sourceDirectories> |
| 481 | <consoleOutput>false</consoleOutput> |
| 482 | <violationSeverity>warning</violationSeverity> |
| 483 | <failOnViolation>true</failOnViolation> |
| 484 | </configuration> |
| 485 | </execution> |
| 486 | <execution> |
| 487 | <id>onap-java-style</id> |
| 488 | <goals> |
| 489 | <goal>check</goal> |
| 490 | </goals> |
| 491 | <phase>process-sources</phase> |
| 492 | <configuration> |
| 493 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 494 | <sourceDirectories> |
| 495 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 496 | </sourceDirectories> |
| 497 | <includeResources>true</includeResources> |
| 498 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 499 | <includeTestResources>true</includeTestResources> |
| 500 | <consoleOutput>false</consoleOutput> |
| 501 | <violationSeverity>warning</violationSeverity> |
| 502 | <failOnViolation>true</failOnViolation> |
| 503 | </configuration> |
| 504 | </execution> |
| 505 | <execution> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 506 | <id>cps-java-style</id> |
| 507 | <goals> |
| 508 | <goal>check</goal> |
| 509 | </goals> |
| 510 | <phase>process-sources</phase> |
| 511 | <configuration> |
| 512 | <configLocation>cps-java-style.xml</configLocation> |
| 513 | <sourceDirectories> |
| 514 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 515 | </sourceDirectories> |
| 516 | <includeResources>true</includeResources> |
| 517 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 518 | <includeTestResources>true</includeTestResources> |
| 519 | <consoleOutput>true</consoleOutput> |
| 520 | <violationSeverity>warning</violationSeverity> |
| 521 | <failOnViolation>true</failOnViolation> |
| 522 | </configuration> |
| 523 | </execution> |
| 524 | </executions> |
| 525 | <dependencies> |
| 526 | <dependency> |
| 527 | <groupId>${project.groupId}</groupId> |
| 528 | <artifactId>checkstyle</artifactId> |
| 529 | <version>${cps.version}</version> |
| 530 | </dependency> |
| 531 | </dependencies> |
| 532 | </plugin> |
| 533 | <plugin> |
| 534 | <groupId>com.github.spotbugs</groupId> |
| 535 | <artifactId>spotbugs-maven-plugin</artifactId> |
egernug | 92f74d7 | 2023-07-17 13:45:51 +0100 | [diff] [blame] | 536 | <version>4.4.2</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 537 | <executions> |
| 538 | <execution> |
| 539 | <id>analyze-compile</id> |
| 540 | <phase>compile</phase> |
| 541 | <goals> |
| 542 | <goal>check</goal> |
| 543 | </goals> |
| 544 | </execution> |
| 545 | </executions> |
| 546 | <dependencies> |
| 547 | <dependency> |
| 548 | <groupId>${project.groupId}</groupId> |
| 549 | <artifactId>spotbugs</artifactId> |
| 550 | <version>${cps.version}</version> |
| 551 | <scope>compile</scope> |
| 552 | </dependency> |
| 553 | </dependencies> |
| 554 | <configuration> |
| 555 | <plugins> |
| 556 | <plugin> |
| 557 | <groupId>jp.skypencil.findbugs.slf4j</groupId> |
| 558 | <artifactId>bug-pattern</artifactId> |
shivasubedi | 275c1dc | 2021-07-07 16:39:34 +0100 | [diff] [blame] | 559 | <version>1.5.0</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 560 | </plugin> |
| 561 | </plugins> |
| 562 | <effort>Max</effort> |
| 563 | <threshold>Low</threshold> |
| 564 | <failOnError>true</failOnError> |
| 565 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile> |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 566 | <addSourceDirs>true</addSourceDirs> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 567 | <xmlOutput>true</xmlOutput> |
| 568 | <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory> |
| 569 | </configuration> |
| 570 | </plugin> |
| 571 | <plugin> |
| 572 | <groupId>org.jacoco</groupId> |
| 573 | <artifactId>jacoco-maven-plugin</artifactId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 574 | <version>0.8.10</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 575 | <configuration> |
| 576 | <excludes> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 577 | <exclude>org/onap/cps/ncmp/dmi/model/*</exclude> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 578 | </excludes> |
| 579 | </configuration> |
| 580 | <executions> |
| 581 | <execution> |
| 582 | <id>default-prepare-agent</id> |
| 583 | <goals> |
| 584 | <goal>prepare-agent</goal> |
| 585 | </goals> |
| 586 | </execution> |
| 587 | <execution> |
| 588 | <id>coverage-check</id> |
| 589 | <goals> |
| 590 | <goal>check</goal> |
| 591 | </goals> |
| 592 | <configuration> |
| 593 | <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile> |
| 594 | <rules> |
| 595 | <rule> |
| 596 | <element>BUNDLE</element> |
| 597 | <limits> |
| 598 | <limit> |
| 599 | <counter>INSTRUCTION</counter> |
| 600 | <value>COVEREDRATIO</value> |
| 601 | <minimum>${jacoco.minimum.coverage}</minimum> |
| 602 | </limit> |
| 603 | </limits> |
| 604 | </rule> |
| 605 | </rules> |
| 606 | </configuration> |
| 607 | </execution> |
| 608 | <execution> |
| 609 | <id>report</id> |
| 610 | <phase>verify</phase> |
| 611 | <goals> |
| 612 | <goal>report-aggregate</goal> |
| 613 | </goals> |
| 614 | <configuration> |
| 615 | <dataFileIncludes> |
| 616 | <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude> |
| 617 | </dataFileIncludes> |
| 618 | </configuration> |
| 619 | </execution> |
| 620 | </executions> |
| 621 | </plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 622 | </plugins> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 623 | <pluginManagement> |
| 624 | <plugins> |
| 625 | <plugin> |
| 626 | <groupId>com.google.cloud.tools</groupId> |
| 627 | <artifactId>jib-maven-plugin</artifactId> |
egernug | d59b5ef | 2023-10-19 11:23:13 +0100 | [diff] [blame] | 628 | <version>3.3.2</version> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 629 | <configuration> |
| 630 | <container> |
| 631 | <mainClass>${app}</mainClass> |
| 632 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 633 | </container> |
| 634 | <from> |
| 635 | <image>${base.image}</image> |
| 636 | </from> |
| 637 | <to> |
| 638 | <tags> |
ToineSiebelink | 98df7fc | 2022-10-27 11:06:53 +0100 | [diff] [blame] | 639 | <tag>latest</tag> |
JosephKeenan | 371ec2f | 2021-12-01 09:46:58 +0000 | [diff] [blame] | 640 | <tag>${project.version}-latest</tag> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 641 | </tags> |
| 642 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
| 643 | </to> |
| 644 | </configuration> |
| 645 | <executions> |
| 646 | <execution> |
| 647 | <phase>package</phase> |
| 648 | <id>build</id> |
| 649 | <goals> |
| 650 | <goal>dockerBuild</goal> |
| 651 | </goals> |
| 652 | </execution> |
| 653 | <execution> |
| 654 | <phase>deploy</phase> |
| 655 | <id>buildAndPush</id> |
| 656 | <goals> |
| 657 | <goal>build</goal> |
| 658 | </goals> |
| 659 | </execution> |
| 660 | </executions> |
| 661 | </plugin> |
| 662 | </plugins> |
| 663 | </pluginManagement> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 664 | </build> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 665 | <profiles> |
| 666 | <profile> |
puthuparambil.aditya | eddb3dd | 2021-07-27 15:57:19 +0100 | [diff] [blame] | 667 | <id>docker</id> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 668 | <activation> |
| 669 | <activeByDefault>true</activeByDefault> |
| 670 | </activation> |
| 671 | <properties> |
| 672 | <image.name>ncmp-dmi-plugin</image.name> |
| 673 | </properties> |
| 674 | <build> |
| 675 | <plugins> |
| 676 | <plugin> |
| 677 | <groupId>com.google.cloud.tools</groupId> |
| 678 | <artifactId>jib-maven-plugin</artifactId> |
| 679 | </plugin> |
| 680 | </plugins> |
| 681 | </build> |
| 682 | </profile> |
| 683 | </profiles> |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 684 | </project> |