blob: 6a52d9f1afec85e24ae41bb6ae568b1376b31189 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ============LICENSE_START=======================================================
lukegleeson7e243c92023-04-20 15:32:12 +01004 Copyright (C) 2021-2023 Nordix Foundation
Renu Kumari4d520012021-08-30 11:50:43 -04005 Modifications Copyright (C) 2021 Bell Canada
tragait34a94b92021-03-30 12:02:27 +01006 ================================================================================
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.
lukegleeson15b93e72021-07-07 15:25:30 +010018
19 SPDX-License-Identifier: Apache-2.0
tragait34a94b92021-03-30 12:02:27 +010020 ============LICENSE_END=========================================================
21-->
lukegleeson15b93e72021-07-07 15:25:30 +010022
tragait34a94b92021-03-30 12:02:27 +010023<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">
ToineSiebelink4f736db2021-09-20 13:29:09 +010026 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.cps</groupId>
29 <artifactId>cps-parent</artifactId>
egernugd91a7072023-09-29 12:12:36 +010030 <version>3.3.9-SNAPSHOT</version>
ToineSiebelink4f736db2021-09-20 13:29:09 +010031 <relativePath>../cps-parent/pom.xml</relativePath>
32 </parent>
tragait34a94b92021-03-30 12:02:27 +010033
ToineSiebelink4f736db2021-09-20 13:29:09 +010034 <artifactId>cps-ncmp-rest</artifactId>
tragait34a94b92021-03-30 12:02:27 +010035
egernug477bd462023-09-21 17:51:21 +010036 <properties>
37 <minimum-coverage>0.99</minimum-coverage>
38 </properties>
39
ToineSiebelink73001f62021-09-17 15:07:38 +010040 <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>
egernug42daf632023-10-03 12:56:29 +010065 <groupId>com.google.code.gson</groupId>
66 <artifactId>gson</artifactId>
67 </dependency>
68 <dependency>
ToineSiebelink73001f62021-09-17 15:07:38 +010069 <groupId>io.swagger.core.v3</groupId>
70 <artifactId>swagger-annotations</artifactId>
71 </dependency>
DylanB95ESTd042fcd2022-02-21 12:57:08 +000072 <dependency>
egernug477bd462023-09-21 17:51:21 +010073 <groupId>io.swagger.core.v3</groupId>
74 <artifactId>swagger-models</artifactId>
75 </dependency>
76 <dependency>
DylanB95ESTd042fcd2022-02-21 12:57:08 +000077 <groupId>org.mapstruct</groupId>
78 <artifactId>mapstruct</artifactId>
79 </dependency>
80 <dependency>
81 <groupId>org.mapstruct</groupId>
82 <artifactId>mapstruct-processor</artifactId>
83 </dependency>
egernug42daf632023-10-03 12:56:29 +010084 <dependency>
85 <groupId>org.openapitools</groupId>
86 <artifactId>jackson-databind-nullable</artifactId>
87 </dependency>
ToineSiebelink73001f62021-09-17 15:07:38 +010088 <!-- 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 Siebelinkad9b7012023-09-20 09:35:10 +0000117 <scope>test</scope>
ToineSiebelink73001f62021-09-17 15:07:38 +0100118 <exclusions>
119 <exclusion>
120 <groupId>org.junit.vintage</groupId>
121 <artifactId>junit-vintage-engine</artifactId>
122 </exclusion>
123 </exclusions>
124 </dependency>
125 <dependency>
egernug477bd462023-09-21 17:51:21 +0100126 <groupId>org.junit.jupiter</groupId>
127 <artifactId>junit-jupiter</artifactId>
egernug42daf632023-10-03 12:56:29 +0100128 <scope>test</scope>
egernug477bd462023-09-21 17:51:21 +0100129 </dependency>
ToineSiebelink73001f62021-09-17 15:07:38 +0100130 </dependencies>
tragait34a94b92021-03-30 12:02:27 +0100131
ToineSiebelink73001f62021-09-17 15:07:38 +0100132 <build>
133 <plugins>
134 <!-- Swagger code generation. -->
135 <plugin>
egernug9426ae82023-06-21 11:16:02 +0100136 <groupId>org.openapitools</groupId>
137 <artifactId>openapi-generator-maven-plugin</artifactId>
138 <version>6.6.0</version>
ToineSiebelink73001f62021-09-17 15:07:38 +0100139 <executions>
140 <execution>
Renu Kumari139e8222021-10-04 20:59:18 -0400141 <id>ncmp-code-gen</id>
ToineSiebelink73001f62021-09-17 15:07:38 +0100142 <goals>
143 <goal>generate</goal>
144 </goals>
145 <configuration>
146 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
147 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
148 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
149 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
egernug9426ae82023-06-21 11:16:02 +0100150 <generatorName>spring</generatorName>
ToineSiebelink73001f62021-09-17 15:07:38 +0100151 <generateSupportingFiles>false</generateSupportingFiles>
egernug9426ae82023-06-21 11:16:02 +0100152 <generateAliasAsModel>true</generateAliasAsModel>
ToineSiebelink73001f62021-09-17 15:07:38 +0100153 <configOptions>
154 <sourceFolder>src/gen/java</sourceFolder>
155 <dateLibrary>java11</dateLibrary>
156 <interfaceOnly>true</interfaceOnly>
egernug477bd462023-09-21 17:51:21 +0100157 <useSpringBoot3>true</useSpringBoot3>
ToineSiebelink73001f62021-09-17 15:07:38 +0100158 <useTags>true</useTags>
egernug9426ae82023-06-21 11:16:02 +0100159 <openApiNullable>false</openApiNullable>
160 <skipDefaultInterface>true</skipDefaultInterface>
ToineSiebelink73001f62021-09-17 15:07:38 +0100161 </configOptions>
162 </configuration>
163 </execution>
Renu Kumari139e8222021-10-04 20:59:18 -0400164 <execution>
165 <id>ncmp-code-gen-inventory</id>
166 <goals>
167 <goal>generate</goal>
168 </goals>
169 <configuration>
170 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
171 <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
172 <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
173 <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
egernug9426ae82023-06-21 11:16:02 +0100174 <generatorName>spring</generatorName>
Renu Kumari139e8222021-10-04 20:59:18 -0400175 <generateSupportingFiles>false</generateSupportingFiles>
176 <configOptions>
177 <sourceFolder>src/gen/java</sourceFolder>
178 <dateLibrary>java11</dateLibrary>
179 <interfaceOnly>true</interfaceOnly>
egernug477bd462023-09-21 17:51:21 +0100180 <useSpringBoot3>true</useSpringBoot3>
Renu Kumari139e8222021-10-04 20:59:18 -0400181 <useTags>true</useTags>
egernug9426ae82023-06-21 11:16:02 +0100182 <openApiNullable>false</openApiNullable>
183 <skipDefaultInterface>true</skipDefaultInterface>
Renu Kumari139e8222021-10-04 20:59:18 -0400184 </configOptions>
185 </configuration>
186 </execution>
187 <execution>
188 <id>ncmp-inventory-openapi-yaml-gen</id>
189 <goals>
190 <goal>generate</goal>
191 </goals>
192 <phase>compile</phase>
193 <configuration>
194 <inputSpec>${project.basedir}/docs/openapi/openapi-inventory.yml</inputSpec>
egernug477bd462023-09-21 17:51:21 +0100195 <generatorName>spring</generatorName>
Renu Kumari139e8222021-10-04 20:59:18 -0400196 <configOptions>
197 <outputFile>openapi-inventory.yaml</outputFile>
egernug477bd462023-09-21 17:51:21 +0100198 <useSpringBoot3>true</useSpringBoot3>
Renu Kumari139e8222021-10-04 20:59:18 -0400199 </configOptions>
200 </configuration>
201 </execution>
egernug7ae1bcf2023-06-27 09:31:23 +0100202 <execution>
203 <id>ncmp-openapi-yaml-gen</id>
204 <goals>
205 <goal>generate</goal>
206 </goals>
207 <phase>compile</phase>
208 <configuration>
209 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
210 <generatorName>openapi-yaml</generatorName>
211 <configOptions>
212 <outputFile>openapi.yaml</outputFile>
213 </configOptions>
214 </configuration>
215 </execution>
ToineSiebelink73001f62021-09-17 15:07:38 +0100216 </executions>
217 </plugin>
218 <plugin>
egernug7ae1bcf2023-06-27 09:31:23 +0100219 <groupId>org.apache.maven.plugins</groupId>
ToineSiebelink73001f62021-09-17 15:07:38 +0100220 <artifactId>maven-resources-plugin</artifactId>
221 <executions>
222 <execution>
223 <id>copy-resources</id>
224 <phase>compile</phase>
225 <goals>
226 <goal>copy-resources</goal>
227 </goals>
228 <configuration>
bmiklosbbaf5012022-08-25 18:28:16 +0200229 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-ncmp
230 </outputDirectory>
ToineSiebelink73001f62021-09-17 15:07:38 +0100231 <resources>
232 <resource>
egernug7ae1bcf2023-06-27 09:31:23 +0100233 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
ToineSiebelink73001f62021-09-17 15:07:38 +0100234 <includes>
Renu Kumari139e8222021-10-04 20:59:18 -0400235 <include>openapi*.yaml</include>
ToineSiebelink73001f62021-09-17 15:07:38 +0100236 </includes>
237 </resource>
238 </resources>
239 </configuration>
240 </execution>
241 </executions>
242 </plugin>
243 </plugins>
244 </build>
tragait34a94b92021-03-30 12:02:27 +0100245</project>