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 | 3c6ab23 | 2023-04-07 10:20:37 +0100 | [diff] [blame] | 37 | <version>1.4.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> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 42 | <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image> |
mpriyank | 221ee7d | 2023-03-23 14:17:00 +0000 | [diff] [blame] | 43 | <cps.version>3.2.6</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> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 52 | <groupId>com.google.code.gson</groupId> |
| 53 | <artifactId>gson</artifactId> |
| 54 | <version>2.8.9</version> |
| 55 | </dependency> |
| 56 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 57 | <groupId>io.swagger.core.v3</groupId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 58 | <artifactId>swagger-annotations</artifactId> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 59 | <version>2.2.10</version> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>net.logstash.logback</groupId> |
| 63 | <artifactId>logstash-logback-encoder</artifactId> |
| 64 | <version>7.0.1</version> |
| 65 | </dependency> |
| 66 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 67 | <groupId>org.apache.httpcomponents</groupId> |
| 68 | <artifactId>httpclient</artifactId> |
| 69 | <version>4.5.13</version> |
| 70 | </dependency> |
| 71 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 72 | <groupId>org.springframework.boot</groupId> |
| 73 | <artifactId>spring-boot-dependencies</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 74 | <version>2.7.6</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 75 | <type>pom</type> |
| 76 | <scope>import</scope> |
| 77 | </dependency> |
| 78 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 79 | <groupId>org.spockframework</groupId> |
shivasubedi | 275c1dc | 2021-07-07 16:39:34 +0100 | [diff] [blame] | 80 | <artifactId>spock-bom</artifactId> |
| 81 | <version>2.0-M5-groovy-3.0</version> |
| 82 | <type>pom</type> |
| 83 | <scope>import</scope> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 84 | </dependency> |
niamhcore | 9835107 | 2021-12-15 11:23:56 +0000 | [diff] [blame] | 85 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 86 | <groupId>org.springdoc</groupId> |
| 87 | <artifactId>springdoc-openapi-ui</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 88 | <version>1.6.6</version> |
ToineSiebelink | 6b35430 | 2022-03-02 12:26:02 +0000 | [diff] [blame] | 89 | </dependency> |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 90 | <dependency> |
| 91 | <groupId>org.springframework.cloud</groupId> |
| 92 | <artifactId>spring-cloud-dependencies</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 93 | <version>2021.0.3</version> |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 94 | <type>pom</type> |
| 95 | <scope>import</scope> |
| 96 | </dependency> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 97 | <dependency> |
| 98 | <groupId>org.testcontainers</groupId> |
| 99 | <artifactId>testcontainers-bom</artifactId> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 100 | <version>1.17.3</version> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 101 | <type>pom</type> |
| 102 | <scope>import</scope> |
| 103 | </dependency> |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 104 | <dependency> |
sourabh_sourabh | df26bc3 | 2022-05-04 11:38:52 +0100 | [diff] [blame] | 105 | <groupId>org.codehaus.janino</groupId> |
| 106 | <artifactId>janino</artifactId> |
| 107 | <version>3.1.7</version> |
| 108 | </dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 109 | <dependency> |
| 110 | <groupId>org.onap.cps</groupId> |
| 111 | <artifactId>cps-ncmp-events</artifactId> |
mpriyank | b1332ae | 2022-09-23 12:59:38 +0100 | [diff] [blame] | 112 | <version>${cps.version}</version> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 113 | </dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 114 | </dependencies> |
| 115 | </dependencyManagement> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 116 | <dependencies> |
| 117 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 118 | <groupId>com.google.code.gson</groupId> |
| 119 | <artifactId>gson</artifactId> |
| 120 | </dependency> |
| 121 | <dependency> |
| 122 | <groupId>com.jayway.jsonpath</groupId> |
| 123 | <artifactId>json-path</artifactId> |
| 124 | </dependency> |
| 125 | <dependency> |
| 126 | <groupId>io.micrometer</groupId> |
| 127 | <artifactId>micrometer-registry-prometheus</artifactId> |
| 128 | </dependency> |
| 129 | <dependency> |
ToineSiebelink | 17c24ef | 2023-04-19 16:52:14 +0100 | [diff] [blame] | 130 | <groupId>io.swagger.core.v3</groupId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 131 | <artifactId>swagger-annotations</artifactId> |
| 132 | </dependency> |
| 133 | <dependency> |
| 134 | <groupId>net.logstash.logback</groupId> |
| 135 | <artifactId>logstash-logback-encoder</artifactId> |
| 136 | </dependency> |
| 137 | <dependency> |
| 138 | <groupId>net.minidev</groupId> |
| 139 | <artifactId>json-smart</artifactId> |
| 140 | </dependency> |
| 141 | <dependency> |
| 142 | <groupId>org.apache.httpcomponents</groupId> |
| 143 | <artifactId>httpclient</artifactId> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 144 | </dependency> |
| 145 | <dependency> |
| 146 | <groupId>org.codehaus.groovy</groupId> |
| 147 | <artifactId>groovy</artifactId> |
| 148 | </dependency> |
| 149 | <dependency> |
| 150 | <groupId>org.codehaus.janino</groupId> |
| 151 | <artifactId>janino</artifactId> |
| 152 | </dependency> |
| 153 | <dependency> |
| 154 | <groupId>org.onap.cps</groupId> |
| 155 | <artifactId>cps-ncmp-events</artifactId> |
| 156 | </dependency> |
| 157 | <dependency> |
| 158 | <groupId>org.projectlombok</groupId> |
| 159 | <artifactId>lombok</artifactId> |
| 160 | </dependency> |
| 161 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 162 | <groupId>org.springframework.boot</groupId> |
| 163 | <artifactId>spring-boot-starter-web</artifactId> |
| 164 | </dependency> |
| 165 | <dependency> |
| 166 | <groupId>org.springframework.boot</groupId> |
| 167 | <artifactId>spring-boot-starter-validation</artifactId> |
| 168 | </dependency> |
| 169 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 170 | <groupId>org.springdoc</groupId> |
| 171 | <artifactId>springdoc-openapi-ui</artifactId> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 172 | </dependency> |
| 173 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 174 | <groupId>org.springframework.boot</groupId> |
| 175 | <artifactId>spring-boot-starter-security</artifactId> |
| 176 | </dependency> |
| 177 | <dependency> |
| 178 | <groupId>org.springframework.boot</groupId> |
| 179 | <artifactId>spring-boot-starter-actuator</artifactId> |
| 180 | </dependency> |
| 181 | <dependency> |
| 182 | <groupId>org.springframework.kafka</groupId> |
| 183 | <artifactId>spring-kafka</artifactId> |
| 184 | </dependency> |
| 185 | <!-- T E S T - D E P E N D E N C I E S --> |
| 186 | <dependency> |
| 187 | <groupId>org.spockframework</groupId> |
| 188 | <artifactId>spock-core</artifactId> |
| 189 | <scope>test</scope> |
| 190 | </dependency> |
| 191 | <dependency> |
| 192 | <groupId>org.spockframework</groupId> |
| 193 | <artifactId>spock-spring</artifactId> |
| 194 | <scope>test</scope> |
Renu Kumari | 306cadd | 2021-10-22 00:50:29 -0400 | [diff] [blame] | 195 | </dependency> |
| 196 | <dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 197 | <groupId>org.springframework.boot</groupId> |
| 198 | <artifactId>spring-boot-starter-test</artifactId> |
| 199 | <scope>test</scope> |
| 200 | <exclusions> |
| 201 | <exclusion> |
| 202 | <groupId>org.junit.vintage</groupId> |
| 203 | <artifactId>junit-vintage-engine</artifactId> |
| 204 | </exclusion> |
| 205 | </exclusions> |
| 206 | </dependency> |
| 207 | <dependency> |
JosephKeenan | 2cd8b98 | 2022-05-23 15:43:05 +0100 | [diff] [blame] | 208 | <groupId>org.springframework.kafka</groupId> |
| 209 | <artifactId>spring-kafka-test</artifactId> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 210 | <scope>test</scope> |
| 211 | </dependency> |
| 212 | <dependency> |
Renu Kumari | 306cadd | 2021-10-22 00:50:29 -0400 | [diff] [blame] | 213 | <groupId>org.springframework.security</groupId> |
| 214 | <artifactId>spring-security-test</artifactId> |
| 215 | <scope>test</scope> |
| 216 | </dependency> |
| 217 | <dependency> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 218 | <groupId>org.testcontainers</groupId> |
| 219 | <artifactId>spock</artifactId> |
| 220 | <scope>test</scope> |
| 221 | </dependency> |
| 222 | <dependency> |
| 223 | <groupId>org.testcontainers</groupId> |
| 224 | <artifactId>kafka</artifactId> |
| 225 | <scope>test</scope> |
| 226 | </dependency> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 227 | </dependencies> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 228 | <build> |
| 229 | <resources> |
| 230 | <resource> |
| 231 | <directory>src/main/resources</directory> |
| 232 | <filtering>true</filtering> |
| 233 | </resource> |
| 234 | <resource> |
| 235 | <directory>target/generated-sources/license</directory> |
| 236 | <includes> |
| 237 | <include>third-party-licenses.txt</include> |
| 238 | </includes> |
| 239 | </resource> |
| 240 | <resource> |
| 241 | <directory>target/generated-resources/licenses</directory> |
| 242 | <includes> |
| 243 | <include>*.*</include> |
| 244 | </includes> |
| 245 | <targetPath>third-party-licenses</targetPath> |
| 246 | </resource> |
| 247 | </resources> |
| 248 | <plugins> |
| 249 | <plugin> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 250 | <groupId>org.openapitools</groupId> |
| 251 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 252 | <version>6.6.0</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 253 | <executions> |
| 254 | <execution> |
| 255 | <goals> |
| 256 | <goal>generate</goal> |
| 257 | </goals> |
| 258 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 259 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 260 | <generatorName>spring</generatorName> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 261 | <generateSupportingFiles>false</generateSupportingFiles> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 262 | <invokerPackage>org.onap.cps.ncmp.dmi.rest.controller</invokerPackage> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 263 | <apiPackage>org.onap.cps.ncmp.dmi.rest.api</apiPackage> |
| 264 | <modelPackage>org.onap.cps.ncmp.dmi.model</modelPackage> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 265 | <generateAliasAsModel>true</generateAliasAsModel> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 266 | <configOptions> |
| 267 | <sourceFolder>src/gen/java</sourceFolder> |
| 268 | <dateLibrary>java11</dateLibrary> |
| 269 | <interfaceOnly>true</interfaceOnly> |
| 270 | <useTags>true</useTags> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 271 | <openApiNullable>false</openApiNullable> |
| 272 | <skipDefaultInterface>true</skipDefaultInterface> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 273 | </configOptions> |
| 274 | </configuration> |
| 275 | </execution> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 276 | <execution> |
| 277 | <id>openapi-yaml-gen</id> |
| 278 | <goals> |
| 279 | <goal>generate</goal> |
| 280 | </goals> |
| 281 | <phase>compile</phase> |
| 282 | <configuration> |
Renu Kumari | 3aea57e | 2021-10-12 13:41:01 -0400 | [diff] [blame] | 283 | <inputSpec>${project.basedir}/openapi/openapi.yml</inputSpec> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 284 | <generatorName>openapi-yaml</generatorName> |
shivasubedi | 3d1579c | 2021-09-13 16:43:20 +0100 | [diff] [blame] | 285 | </configuration> |
| 286 | </execution> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 287 | </executions> |
| 288 | </plugin> |
| 289 | <plugin> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 290 | <artifactId>maven-resources-plugin</artifactId> |
| 291 | <executions> |
| 292 | <execution> |
| 293 | <id>copy-resources</id> |
| 294 | <phase>compile</phase> |
| 295 | <goals> |
| 296 | <goal>copy-resources</goal> |
| 297 | </goals> |
| 298 | <configuration> |
| 299 | <outputDirectory>${project.basedir}/target/classes/static/api-docs</outputDirectory> |
| 300 | <resources> |
| 301 | <resource> |
egernug | 1118bed | 2023-06-28 10:57:53 +0100 | [diff] [blame^] | 302 | <directory>${project.basedir}/target/generated-sources/openapi/openapi</directory> |
puthuparambil.aditya | 1d90226 | 2021-11-23 14:53:43 +0000 | [diff] [blame] | 303 | <includes> |
| 304 | <include>openapi.yaml</include> |
| 305 | </includes> |
| 306 | </resource> |
| 307 | </resources> |
| 308 | </configuration> |
| 309 | </execution> |
| 310 | </executions> |
| 311 | </plugin> |
| 312 | <plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 313 | <groupId>org.springframework.boot</groupId> |
| 314 | <artifactId>spring-boot-maven-plugin</artifactId> |
JosephKeenan | be383b4 | 2022-03-23 15:12:53 +0000 | [diff] [blame] | 315 | <version>2.6.4</version> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 316 | <executions> |
| 317 | <execution> |
| 318 | <goals> |
| 319 | <goal>build-info</goal> |
| 320 | <goal>repackage</goal> |
| 321 | </goals> |
| 322 | </execution> |
| 323 | </executions> |
| 324 | </plugin> |
| 325 | <plugin> |
| 326 | <groupId>org.codehaus.gmavenplus</groupId> |
| 327 | <artifactId>gmavenplus-plugin</artifactId> |
| 328 | <executions> |
| 329 | <execution> |
| 330 | <goals> |
| 331 | <goal>compileTests</goal> |
| 332 | </goals> |
| 333 | </execution> |
| 334 | </executions> |
| 335 | </plugin> |
| 336 | <plugin> |
| 337 | <groupId>org.apache.maven.plugins</groupId> |
| 338 | <artifactId>maven-surefire-plugin</artifactId> |
| 339 | <configuration> |
| 340 | <argLine>${surefireArgLine}</argLine> |
| 341 | <includes> |
| 342 | <include>**/*Spec.java</include> |
| 343 | </includes> |
| 344 | <excludes> |
| 345 | <exclude>**/IT*.java</exclude> |
| 346 | </excludes> |
mpriyank | 78e1d06 | 2022-04-08 15:12:22 +0530 | [diff] [blame] | 347 | <environmentVariables> |
| 348 | <!-- |
| 349 | Disable privileged container usage to cleanup the test containers; |
| 350 | these are removed automatically on jvm termination; |
| 351 | see https://www.testcontainers.org/features/configuration/#disabling-ryuk |
| 352 | --> |
| 353 | <TESTCONTAINERS_RYUK_DISABLED>true</TESTCONTAINERS_RYUK_DISABLED> |
| 354 | </environmentVariables> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 355 | </configuration> |
| 356 | </plugin> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 357 | <plugin> |
| 358 | <groupId>org.apache.maven.plugins</groupId> |
| 359 | <artifactId>maven-checkstyle-plugin</artifactId> |
| 360 | <executions> |
| 361 | <execution> |
Bruno Sakoto | ff5f74d | 2021-07-14 11:15:48 -0400 | [diff] [blame] | 362 | <id>onap-license</id> |
| 363 | <goals> |
| 364 | <goal>check</goal> |
| 365 | </goals> |
| 366 | <phase>process-sources</phase> |
| 367 | <configuration> |
| 368 | <configLocation>onap-checkstyle/check-license.xml</configLocation> |
| 369 | <includeResources>false</includeResources> |
| 370 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 371 | <includeTestResources>false</includeTestResources> |
| 372 | <sourceDirectories> |
| 373 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 374 | </sourceDirectories> |
| 375 | <consoleOutput>false</consoleOutput> |
| 376 | <violationSeverity>warning</violationSeverity> |
| 377 | <failOnViolation>true</failOnViolation> |
| 378 | </configuration> |
| 379 | </execution> |
| 380 | <execution> |
| 381 | <id>onap-java-style</id> |
| 382 | <goals> |
| 383 | <goal>check</goal> |
| 384 | </goals> |
| 385 | <phase>process-sources</phase> |
| 386 | <configuration> |
| 387 | <configLocation>onap-checkstyle/onap-java-style.xml</configLocation> |
| 388 | <sourceDirectories> |
| 389 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 390 | </sourceDirectories> |
| 391 | <includeResources>true</includeResources> |
| 392 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 393 | <includeTestResources>true</includeTestResources> |
| 394 | <consoleOutput>false</consoleOutput> |
| 395 | <violationSeverity>warning</violationSeverity> |
| 396 | <failOnViolation>true</failOnViolation> |
| 397 | </configuration> |
| 398 | </execution> |
| 399 | <execution> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 400 | <id>cps-java-style</id> |
| 401 | <goals> |
| 402 | <goal>check</goal> |
| 403 | </goals> |
| 404 | <phase>process-sources</phase> |
| 405 | <configuration> |
| 406 | <configLocation>cps-java-style.xml</configLocation> |
| 407 | <sourceDirectories> |
| 408 | <sourceDirectory>${project.build.sourceDirectory}</sourceDirectory> |
| 409 | </sourceDirectories> |
| 410 | <includeResources>true</includeResources> |
| 411 | <includeTestSourceDirectory>true</includeTestSourceDirectory> |
| 412 | <includeTestResources>true</includeTestResources> |
| 413 | <consoleOutput>true</consoleOutput> |
| 414 | <violationSeverity>warning</violationSeverity> |
| 415 | <failOnViolation>true</failOnViolation> |
| 416 | </configuration> |
| 417 | </execution> |
| 418 | </executions> |
| 419 | <dependencies> |
| 420 | <dependency> |
| 421 | <groupId>${project.groupId}</groupId> |
| 422 | <artifactId>checkstyle</artifactId> |
| 423 | <version>${cps.version}</version> |
| 424 | </dependency> |
| 425 | </dependencies> |
| 426 | </plugin> |
| 427 | <plugin> |
| 428 | <groupId>com.github.spotbugs</groupId> |
| 429 | <artifactId>spotbugs-maven-plugin</artifactId> |
shivasubedi | 275c1dc | 2021-07-07 16:39:34 +0100 | [diff] [blame] | 430 | <version>4.1.3</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 431 | <executions> |
| 432 | <execution> |
| 433 | <id>analyze-compile</id> |
| 434 | <phase>compile</phase> |
| 435 | <goals> |
| 436 | <goal>check</goal> |
| 437 | </goals> |
| 438 | </execution> |
| 439 | </executions> |
| 440 | <dependencies> |
| 441 | <dependency> |
| 442 | <groupId>${project.groupId}</groupId> |
| 443 | <artifactId>spotbugs</artifactId> |
| 444 | <version>${cps.version}</version> |
| 445 | <scope>compile</scope> |
| 446 | </dependency> |
| 447 | </dependencies> |
| 448 | <configuration> |
| 449 | <plugins> |
| 450 | <plugin> |
| 451 | <groupId>jp.skypencil.findbugs.slf4j</groupId> |
| 452 | <artifactId>bug-pattern</artifactId> |
shivasubedi | 275c1dc | 2021-07-07 16:39:34 +0100 | [diff] [blame] | 453 | <version>1.5.0</version> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 454 | </plugin> |
| 455 | </plugins> |
| 456 | <effort>Max</effort> |
| 457 | <threshold>Low</threshold> |
| 458 | <failOnError>true</failOnError> |
| 459 | <excludeFilterFile>spotbugs-exclude.xml</excludeFilterFile> |
niamhcore | 4f43188 | 2021-09-21 16:08:29 +0100 | [diff] [blame] | 460 | <addSourceDirs>true</addSourceDirs> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 461 | <xmlOutput>true</xmlOutput> |
| 462 | <xmlOutputDirectory>${basedir}/target/spotbugs</xmlOutputDirectory> |
| 463 | </configuration> |
| 464 | </plugin> |
| 465 | <plugin> |
| 466 | <groupId>org.jacoco</groupId> |
| 467 | <artifactId>jacoco-maven-plugin</artifactId> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 468 | <configuration> |
| 469 | <excludes> |
tragait | 7c4a9aa | 2021-07-19 13:46:37 +0100 | [diff] [blame] | 470 | <exclude>org/onap/cps/ncmp/dmi/model/*</exclude> |
shivasubedi | 55500c3 | 2021-06-23 16:31:02 +0100 | [diff] [blame] | 471 | </excludes> |
| 472 | </configuration> |
| 473 | <executions> |
| 474 | <execution> |
| 475 | <id>default-prepare-agent</id> |
| 476 | <goals> |
| 477 | <goal>prepare-agent</goal> |
| 478 | </goals> |
| 479 | </execution> |
| 480 | <execution> |
| 481 | <id>coverage-check</id> |
| 482 | <goals> |
| 483 | <goal>check</goal> |
| 484 | </goals> |
| 485 | <configuration> |
| 486 | <dataFile>${basedir}/target/code-coverage/jacoco-ut.exec</dataFile> |
| 487 | <rules> |
| 488 | <rule> |
| 489 | <element>BUNDLE</element> |
| 490 | <limits> |
| 491 | <limit> |
| 492 | <counter>INSTRUCTION</counter> |
| 493 | <value>COVEREDRATIO</value> |
| 494 | <minimum>${jacoco.minimum.coverage}</minimum> |
| 495 | </limit> |
| 496 | </limits> |
| 497 | </rule> |
| 498 | </rules> |
| 499 | </configuration> |
| 500 | </execution> |
| 501 | <execution> |
| 502 | <id>report</id> |
| 503 | <phase>verify</phase> |
| 504 | <goals> |
| 505 | <goal>report-aggregate</goal> |
| 506 | </goals> |
| 507 | <configuration> |
| 508 | <dataFileIncludes> |
| 509 | <fileInclude>**/code-coverage/jacoco-ut.exec</fileInclude> |
| 510 | </dataFileIncludes> |
| 511 | </configuration> |
| 512 | </execution> |
| 513 | </executions> |
| 514 | </plugin> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 515 | </plugins> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 516 | <pluginManagement> |
| 517 | <plugins> |
| 518 | <plugin> |
| 519 | <groupId>com.google.cloud.tools</groupId> |
| 520 | <artifactId>jib-maven-plugin</artifactId> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 521 | <configuration> |
| 522 | <container> |
| 523 | <mainClass>${app}</mainClass> |
| 524 | <creationTime>USE_CURRENT_TIMESTAMP</creationTime> |
| 525 | </container> |
| 526 | <from> |
| 527 | <image>${base.image}</image> |
| 528 | </from> |
| 529 | <to> |
| 530 | <tags> |
ToineSiebelink | 98df7fc | 2022-10-27 11:06:53 +0100 | [diff] [blame] | 531 | <tag>latest</tag> |
JosephKeenan | 371ec2f | 2021-12-01 09:46:58 +0000 | [diff] [blame] | 532 | <tag>${project.version}-latest</tag> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 533 | </tags> |
| 534 | <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image> |
| 535 | </to> |
| 536 | </configuration> |
| 537 | <executions> |
| 538 | <execution> |
| 539 | <phase>package</phase> |
| 540 | <id>build</id> |
| 541 | <goals> |
| 542 | <goal>dockerBuild</goal> |
| 543 | </goals> |
| 544 | </execution> |
| 545 | <execution> |
| 546 | <phase>deploy</phase> |
| 547 | <id>buildAndPush</id> |
| 548 | <goals> |
| 549 | <goal>build</goal> |
| 550 | </goals> |
| 551 | </execution> |
| 552 | </executions> |
| 553 | </plugin> |
| 554 | </plugins> |
| 555 | </pluginManagement> |
DylanB95EST | b5a2383 | 2021-06-02 19:45:46 +0100 | [diff] [blame] | 556 | </build> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 557 | <profiles> |
| 558 | <profile> |
puthuparambil.aditya | eddb3dd | 2021-07-27 15:57:19 +0100 | [diff] [blame] | 559 | <id>docker</id> |
shivasubedi | f4b36ef | 2021-06-23 16:01:10 +0100 | [diff] [blame] | 560 | <activation> |
| 561 | <activeByDefault>true</activeByDefault> |
| 562 | </activation> |
| 563 | <properties> |
| 564 | <image.name>ncmp-dmi-plugin</image.name> |
| 565 | </properties> |
| 566 | <build> |
| 567 | <plugins> |
| 568 | <plugin> |
| 569 | <groupId>com.google.cloud.tools</groupId> |
| 570 | <artifactId>jib-maven-plugin</artifactId> |
| 571 | </plugin> |
| 572 | </plugins> |
| 573 | </build> |
| 574 | </profile> |
| 575 | </profiles> |
lukegleeson | b208aeb | 2021-07-08 16:48:15 +0100 | [diff] [blame] | 576 | </project> |