tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | ============LICENSE_START======================================================= |
emaclee | ea7d1b4 | 2024-03-24 19:05:34 +0000 | [diff] [blame] | 4 | Copyright (C) 2021-2024 Nordix Foundation |
Renu Kumari | 4d52001 | 2021-08-30 11:50:43 -0400 | [diff] [blame] | 5 | Modifications Copyright (C) 2021 Bell Canada |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 6 | ================================================================================ |
| 7 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | you may not use this file except in compliance with the License. |
| 9 | You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 18 | |
| 19 | SPDX-License-Identifier: Apache-2.0 |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 20 | ============LICENSE_END========================================================= |
| 21 | --> |
lukegleeson | 15b93e7 | 2021-07-07 15:25:30 +0100 | [diff] [blame] | 22 | |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 23 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 24 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 25 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
ToineSiebelink | 4f736db | 2021-09-20 13:29:09 +0100 | [diff] [blame] | 26 | <modelVersion>4.0.0</modelVersion> |
| 27 | <parent> |
| 28 | <groupId>org.onap.cps</groupId> |
| 29 | <artifactId>cps-parent</artifactId> |
mpriyank | 08bcac3 | 2024-12-02 14:26:03 +0000 | [diff] [blame] | 30 | <version>3.6.0-SNAPSHOT</version> |
ToineSiebelink | 4f736db | 2021-09-20 13:29:09 +0100 | [diff] [blame] | 31 | <relativePath>../cps-parent/pom.xml</relativePath> |
| 32 | </parent> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 33 | |
ToineSiebelink | 4f736db | 2021-09-20 13:29:09 +0100 | [diff] [blame] | 34 | <artifactId>cps-ncmp-rest</artifactId> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 35 | |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 36 | <properties> |
| 37 | <minimum-coverage>0.99</minimum-coverage> |
sourabh_sourabh | 1bb3639 | 2024-11-13 12:54:17 +0000 | [diff] [blame] | 38 | <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 39 | </properties> |
| 40 | |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 41 | <dependencies> |
| 42 | <dependency> |
| 43 | <groupId>${project.groupId}</groupId> |
| 44 | <artifactId>cps-ncmp-service</artifactId> |
| 45 | <version>${project.version}</version> |
| 46 | </dependency> |
| 47 | <dependency> |
| 48 | <groupId>org.springframework.boot</groupId> |
| 49 | <artifactId>spring-boot-starter-web</artifactId> |
| 50 | <exclusions> |
| 51 | <exclusion> |
| 52 | <groupId>org.springframework.boot</groupId> |
| 53 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 54 | </exclusion> |
| 55 | </exclusions> |
| 56 | </dependency> |
| 57 | <dependency> |
| 58 | <groupId>org.springframework.boot</groupId> |
| 59 | <artifactId>spring-boot-starter-validation</artifactId> |
| 60 | </dependency> |
| 61 | <dependency> |
| 62 | <groupId>org.springframework.boot</groupId> |
| 63 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 64 | </dependency> |
| 65 | <dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 66 | <groupId>com.google.code.gson</groupId> |
| 67 | <artifactId>gson</artifactId> |
| 68 | </dependency> |
| 69 | <dependency> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 70 | <groupId>io.swagger.core.v3</groupId> |
| 71 | <artifactId>swagger-annotations</artifactId> |
| 72 | </dependency> |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 73 | <dependency> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 74 | <groupId>io.swagger.core.v3</groupId> |
| 75 | <artifactId>swagger-models</artifactId> |
| 76 | </dependency> |
| 77 | <dependency> |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 78 | <groupId>org.mapstruct</groupId> |
| 79 | <artifactId>mapstruct</artifactId> |
| 80 | </dependency> |
| 81 | <dependency> |
| 82 | <groupId>org.mapstruct</groupId> |
| 83 | <artifactId>mapstruct-processor</artifactId> |
| 84 | </dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 85 | <dependency> |
| 86 | <groupId>org.openapitools</groupId> |
| 87 | <artifactId>jackson-databind-nullable</artifactId> |
| 88 | </dependency> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 89 | <!-- T E S T D E P E N D E N C I E S --> |
| 90 | <dependency> |
| 91 | <groupId>org.codehaus.groovy</groupId> |
| 92 | <artifactId>groovy</artifactId> |
| 93 | <scope>test</scope> |
| 94 | </dependency> |
| 95 | <dependency> |
| 96 | <groupId>org.codehaus.groovy</groupId> |
| 97 | <artifactId>groovy-json</artifactId> |
| 98 | <scope>test</scope> |
| 99 | </dependency> |
| 100 | <dependency> |
| 101 | <groupId>org.spockframework</groupId> |
| 102 | <artifactId>spock-core</artifactId> |
| 103 | <scope>test</scope> |
| 104 | </dependency> |
| 105 | <dependency> |
| 106 | <groupId>org.spockframework</groupId> |
| 107 | <artifactId>spock-spring</artifactId> |
| 108 | <scope>test</scope> |
| 109 | </dependency> |
| 110 | <dependency> |
| 111 | <groupId>cglib</groupId> |
| 112 | <artifactId>cglib-nodep</artifactId> |
| 113 | <scope>test</scope> |
| 114 | </dependency> |
| 115 | <dependency> |
| 116 | <groupId>org.springframework.boot</groupId> |
| 117 | <artifactId>spring-boot-starter-test</artifactId> |
Toine Siebelink | ad9b701 | 2023-09-20 09:35:10 +0000 | [diff] [blame] | 118 | <scope>test</scope> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 119 | </dependency> |
| 120 | <dependency> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 121 | <groupId>org.junit.jupiter</groupId> |
| 122 | <artifactId>junit-jupiter</artifactId> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 123 | <scope>test</scope> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 124 | </dependency> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 125 | </dependencies> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 126 | |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 127 | <build> |
| 128 | <plugins> |
| 129 | <!-- Swagger code generation. --> |
| 130 | <plugin> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 131 | <groupId>org.openapitools</groupId> |
| 132 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 133 | <version>6.6.0</version> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 134 | <executions> |
| 135 | <execution> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 136 | <id>ncmp-code-gen</id> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 137 | <goals> |
| 138 | <goal>generate</goal> |
| 139 | </goals> |
| 140 | <configuration> |
| 141 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 142 | <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage> |
| 143 | <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage> |
| 144 | <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 145 | <generatorName>spring</generatorName> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 146 | <generateSupportingFiles>false</generateSupportingFiles> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 147 | <generateAliasAsModel>true</generateAliasAsModel> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 148 | <configOptions> |
| 149 | <sourceFolder>src/gen/java</sourceFolder> |
| 150 | <dateLibrary>java11</dateLibrary> |
| 151 | <interfaceOnly>true</interfaceOnly> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 152 | <useSpringBoot3>true</useSpringBoot3> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 153 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 154 | <openApiNullable>false</openApiNullable> |
| 155 | <skipDefaultInterface>true</skipDefaultInterface> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 156 | </configOptions> |
| 157 | </configuration> |
| 158 | </execution> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 159 | <execution> |
| 160 | <id>ncmp-code-gen-inventory</id> |
| 161 | <goals> |
| 162 | <goal>generate</goal> |
| 163 | </goals> |
| 164 | <configuration> |
| 165 | <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec> |
| 166 | <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage> |
| 167 | <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage> |
| 168 | <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 169 | <generatorName>spring</generatorName> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 170 | <generateSupportingFiles>false</generateSupportingFiles> |
| 171 | <configOptions> |
| 172 | <sourceFolder>src/gen/java</sourceFolder> |
| 173 | <dateLibrary>java11</dateLibrary> |
| 174 | <interfaceOnly>true</interfaceOnly> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 175 | <useSpringBoot3>true</useSpringBoot3> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 176 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 177 | <openApiNullable>false</openApiNullable> |
| 178 | <skipDefaultInterface>true</skipDefaultInterface> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 179 | </configOptions> |
| 180 | </configuration> |
| 181 | </execution> |
| 182 | <execution> |
| 183 | <id>ncmp-inventory-openapi-yaml-gen</id> |
| 184 | <goals> |
| 185 | <goal>generate</goal> |
| 186 | </goals> |
| 187 | <phase>compile</phase> |
| 188 | <configuration> |
| 189 | <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec> |
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame] | 190 | <generatorName>openapi-yaml</generatorName> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 191 | <configOptions> |
| 192 | <outputFile>openapi-inventory.yaml</outputFile> |
| 193 | </configOptions> |
| 194 | </configuration> |
| 195 | </execution> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 196 | <execution> |
| 197 | <id>ncmp-openapi-yaml-gen</id> |
| 198 | <goals> |
| 199 | <goal>generate</goal> |
| 200 | </goals> |
| 201 | <phase>compile</phase> |
| 202 | <configuration> |
| 203 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 204 | <generatorName>openapi-yaml</generatorName> |
| 205 | <configOptions> |
| 206 | <outputFile>openapi.yaml</outputFile> |
| 207 | </configOptions> |
| 208 | </configuration> |
| 209 | </execution> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 210 | </executions> |
| 211 | </plugin> |
| 212 | <plugin> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 213 | <groupId>org.apache.maven.plugins</groupId> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 214 | <artifactId>maven-resources-plugin</artifactId> |
sourabh_sourabh | 9eeb8e9 | 2024-10-24 14:24:54 +0100 | [diff] [blame] | 215 | <version>${maven-resources-plugin.version}</version> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 216 | <executions> |
| 217 | <execution> |
| 218 | <id>copy-resources</id> |
| 219 | <phase>compile</phase> |
| 220 | <goals> |
| 221 | <goal>copy-resources</goal> |
| 222 | </goals> |
| 223 | <configuration> |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 224 | <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp |
| 225 | </outputDirectory> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 226 | <resources> |
| 227 | <resource> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 228 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 229 | <includes> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 230 | <include>openapi*.yaml</include> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 231 | </includes> |
| 232 | </resource> |
| 233 | </resources> |
| 234 | </configuration> |
| 235 | </execution> |
egernug | 076b1b1 | 2024-10-10 10:11:27 +0100 | [diff] [blame] | 236 | <execution> |
| 237 | <id>copy-to-docs-folder</id> |
| 238 | <phase>compile</phase> |
| 239 | <goals> |
| 240 | <goal>copy-resources</goal> |
| 241 | </goals> |
| 242 | <configuration> |
| 243 | <outputDirectory>${project.basedir}/../docs/api/swagger/ncmp</outputDirectory> |
| 244 | <overwrite>true</overwrite> |
| 245 | <resources> |
| 246 | <resource> |
| 247 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
| 248 | <includes> |
| 249 | <include>openapi*.yaml</include> |
| 250 | </includes> |
| 251 | </resource> |
| 252 | </resources> |
| 253 | </configuration> |
| 254 | </execution> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 255 | </executions> |
| 256 | </plugin> |
| 257 | </plugins> |
| 258 | </build> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 259 | </project> |