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 | a1703ea | 2024-02-29 17:47:47 +0000 | [diff] [blame] | 30 | <version>3.4.7-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> |
| 38 | </properties> |
| 39 | |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 40 | <dependencies> |
| 41 | <dependency> |
| 42 | <groupId>${project.groupId}</groupId> |
| 43 | <artifactId>cps-ncmp-service</artifactId> |
| 44 | <version>${project.version}</version> |
| 45 | </dependency> |
| 46 | <dependency> |
| 47 | <groupId>org.springframework.boot</groupId> |
| 48 | <artifactId>spring-boot-starter-web</artifactId> |
| 49 | <exclusions> |
| 50 | <exclusion> |
| 51 | <groupId>org.springframework.boot</groupId> |
| 52 | <artifactId>spring-boot-starter-tomcat</artifactId> |
| 53 | </exclusion> |
| 54 | </exclusions> |
| 55 | </dependency> |
| 56 | <dependency> |
| 57 | <groupId>org.springframework.boot</groupId> |
| 58 | <artifactId>spring-boot-starter-validation</artifactId> |
| 59 | </dependency> |
| 60 | <dependency> |
| 61 | <groupId>org.springframework.boot</groupId> |
| 62 | <artifactId>spring-boot-starter-jetty</artifactId> |
| 63 | </dependency> |
| 64 | <dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 65 | <groupId>com.google.code.gson</groupId> |
| 66 | <artifactId>gson</artifactId> |
| 67 | </dependency> |
| 68 | <dependency> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 69 | <groupId>io.swagger.core.v3</groupId> |
| 70 | <artifactId>swagger-annotations</artifactId> |
| 71 | </dependency> |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 72 | <dependency> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 73 | <groupId>io.swagger.core.v3</groupId> |
| 74 | <artifactId>swagger-models</artifactId> |
| 75 | </dependency> |
| 76 | <dependency> |
DylanB95EST | d042fcd | 2022-02-21 12:57:08 +0000 | [diff] [blame] | 77 | <groupId>org.mapstruct</groupId> |
| 78 | <artifactId>mapstruct</artifactId> |
| 79 | </dependency> |
| 80 | <dependency> |
| 81 | <groupId>org.mapstruct</groupId> |
| 82 | <artifactId>mapstruct-processor</artifactId> |
| 83 | </dependency> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 84 | <dependency> |
| 85 | <groupId>org.openapitools</groupId> |
| 86 | <artifactId>jackson-databind-nullable</artifactId> |
| 87 | </dependency> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 88 | <!-- T E S T D E P E N D E N C I E S --> |
| 89 | <dependency> |
| 90 | <groupId>org.codehaus.groovy</groupId> |
| 91 | <artifactId>groovy</artifactId> |
| 92 | <scope>test</scope> |
| 93 | </dependency> |
| 94 | <dependency> |
| 95 | <groupId>org.codehaus.groovy</groupId> |
| 96 | <artifactId>groovy-json</artifactId> |
| 97 | <scope>test</scope> |
| 98 | </dependency> |
| 99 | <dependency> |
| 100 | <groupId>org.spockframework</groupId> |
| 101 | <artifactId>spock-core</artifactId> |
| 102 | <scope>test</scope> |
| 103 | </dependency> |
| 104 | <dependency> |
| 105 | <groupId>org.spockframework</groupId> |
| 106 | <artifactId>spock-spring</artifactId> |
| 107 | <scope>test</scope> |
| 108 | </dependency> |
| 109 | <dependency> |
| 110 | <groupId>cglib</groupId> |
| 111 | <artifactId>cglib-nodep</artifactId> |
| 112 | <scope>test</scope> |
| 113 | </dependency> |
| 114 | <dependency> |
| 115 | <groupId>org.springframework.boot</groupId> |
| 116 | <artifactId>spring-boot-starter-test</artifactId> |
Toine Siebelink | ad9b701 | 2023-09-20 09:35:10 +0000 | [diff] [blame] | 117 | <scope>test</scope> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 118 | </dependency> |
| 119 | <dependency> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 120 | <groupId>org.junit.jupiter</groupId> |
| 121 | <artifactId>junit-jupiter</artifactId> |
egernug | 42daf63 | 2023-10-03 12:56:29 +0100 | [diff] [blame] | 122 | <scope>test</scope> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 123 | </dependency> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 124 | </dependencies> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 125 | |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 126 | <build> |
| 127 | <plugins> |
| 128 | <!-- Swagger code generation. --> |
| 129 | <plugin> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 130 | <groupId>org.openapitools</groupId> |
| 131 | <artifactId>openapi-generator-maven-plugin</artifactId> |
| 132 | <version>6.6.0</version> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 133 | <executions> |
| 134 | <execution> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 135 | <id>ncmp-code-gen</id> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 136 | <goals> |
| 137 | <goal>generate</goal> |
| 138 | </goals> |
| 139 | <configuration> |
| 140 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 141 | <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage> |
| 142 | <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage> |
| 143 | <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 144 | <generatorName>spring</generatorName> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 145 | <generateSupportingFiles>false</generateSupportingFiles> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 146 | <generateAliasAsModel>true</generateAliasAsModel> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 147 | <configOptions> |
| 148 | <sourceFolder>src/gen/java</sourceFolder> |
| 149 | <dateLibrary>java11</dateLibrary> |
| 150 | <interfaceOnly>true</interfaceOnly> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 151 | <useSpringBoot3>true</useSpringBoot3> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 152 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 153 | <openApiNullable>false</openApiNullable> |
| 154 | <skipDefaultInterface>true</skipDefaultInterface> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 155 | </configOptions> |
| 156 | </configuration> |
| 157 | </execution> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 158 | <execution> |
| 159 | <id>ncmp-code-gen-inventory</id> |
| 160 | <goals> |
| 161 | <goal>generate</goal> |
| 162 | </goals> |
| 163 | <configuration> |
| 164 | <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec> |
| 165 | <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage> |
| 166 | <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage> |
| 167 | <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 168 | <generatorName>spring</generatorName> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 169 | <generateSupportingFiles>false</generateSupportingFiles> |
| 170 | <configOptions> |
| 171 | <sourceFolder>src/gen/java</sourceFolder> |
| 172 | <dateLibrary>java11</dateLibrary> |
| 173 | <interfaceOnly>true</interfaceOnly> |
egernug | 477bd46 | 2023-09-21 17:51:21 +0100 | [diff] [blame] | 174 | <useSpringBoot3>true</useSpringBoot3> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 175 | <useTags>true</useTags> |
egernug | 9426ae8 | 2023-06-21 11:16:02 +0100 | [diff] [blame] | 176 | <openApiNullable>false</openApiNullable> |
| 177 | <skipDefaultInterface>true</skipDefaultInterface> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 178 | </configOptions> |
| 179 | </configuration> |
| 180 | </execution> |
| 181 | <execution> |
| 182 | <id>ncmp-inventory-openapi-yaml-gen</id> |
| 183 | <goals> |
| 184 | <goal>generate</goal> |
| 185 | </goals> |
| 186 | <phase>compile</phase> |
| 187 | <configuration> |
| 188 | <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec> |
egernug | fb09b7c | 2023-10-12 13:33:08 +0100 | [diff] [blame] | 189 | <generatorName>openapi-yaml</generatorName> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 190 | <configOptions> |
| 191 | <outputFile>openapi-inventory.yaml</outputFile> |
| 192 | </configOptions> |
| 193 | </configuration> |
| 194 | </execution> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 195 | <execution> |
| 196 | <id>ncmp-openapi-yaml-gen</id> |
| 197 | <goals> |
| 198 | <goal>generate</goal> |
| 199 | </goals> |
| 200 | <phase>compile</phase> |
| 201 | <configuration> |
| 202 | <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec> |
| 203 | <generatorName>openapi-yaml</generatorName> |
| 204 | <configOptions> |
| 205 | <outputFile>openapi.yaml</outputFile> |
| 206 | </configOptions> |
| 207 | </configuration> |
| 208 | </execution> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 209 | </executions> |
| 210 | </plugin> |
| 211 | <plugin> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 212 | <groupId>org.apache.maven.plugins</groupId> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 213 | <artifactId>maven-resources-plugin</artifactId> |
| 214 | <executions> |
| 215 | <execution> |
| 216 | <id>copy-resources</id> |
| 217 | <phase>compile</phase> |
| 218 | <goals> |
| 219 | <goal>copy-resources</goal> |
| 220 | </goals> |
| 221 | <configuration> |
bmiklos | bbaf501 | 2022-08-25 18:28:16 +0200 | [diff] [blame] | 222 | <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp |
| 223 | </outputDirectory> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 224 | <resources> |
| 225 | <resource> |
egernug | 7ae1bcf | 2023-06-27 09:31:23 +0100 | [diff] [blame] | 226 | <directory>${project.basedir}/target/generated-sources/openapi/</directory> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 227 | <includes> |
Renu Kumari | 139e822 | 2021-10-04 20:59:18 -0400 | [diff] [blame] | 228 | <include>openapi*.yaml</include> |
ToineSiebelink | 73001f6 | 2021-09-17 15:07:38 +0100 | [diff] [blame] | 229 | </includes> |
| 230 | </resource> |
| 231 | </resources> |
| 232 | </configuration> |
| 233 | </execution> |
| 234 | </executions> |
| 235 | </plugin> |
| 236 | </plugins> |
| 237 | </build> |
tragait | 34a94b9 | 2021-03-30 12:02:27 +0100 | [diff] [blame] | 238 | </project> |