blob: b04daf03bd0ba7038f340803f53256118a11b592 [file] [log] [blame]
shivasubedi8df61a92021-06-16 14:43:18 +01001<?xml version="1.0" encoding="UTF-8"?>
Bruno Sakotof05a5032021-03-03 18:27:54 -05002<!--
3 ============LICENSE_START=======================================================
emacleeea7d1b42024-03-24 19:05:34 +00004 Modifications Copyright (C) 2020-2024 Nordix Foundation.
Bruno Sakotof05a5032021-03-03 18:27:54 -05005 Modifications Copyright (C) 2021 Bell Canada.
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.
Renu Kumari4d520012021-08-30 11:50:43 -040018
19 SPDX-License-Identifier: Apache-2.0
Bruno Sakotof05a5032021-03-03 18:27:54 -050020 ============LICENSE_END=========================================================
21-->
22
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020023<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">
26 <modelVersion>4.0.0</modelVersion>
27 <parent>
28 <groupId>org.onap.cps</groupId>
29 <artifactId>cps-parent</artifactId>
mpriyank08bcac32024-12-02 14:26:03 +000030 <version>3.6.0-SNAPSHOT</version>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020031 <relativePath>../cps-parent/pom.xml</relativePath>
32 </parent>
33
sourabh_sourabh1bb36392024-11-13 12:54:17 +000034 <properties>
35 <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version>
36 </properties>
37
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020038 <artifactId>cps-rest</artifactId>
39
40 <dependencies>
41 <dependency>
42 <groupId>${project.groupId}</groupId>
43 <artifactId>cps-service</artifactId>
44 </dependency>
egernug42daf632023-10-03 12:56:29 +010045 <!-- S P R I N G D E P E N D E N C I E S -->
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020046 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020047 <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>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +020058 <artifactId>spring-boot-starter-validation</artifactId>
59 </dependency>
60 <dependency>
61 <groupId>org.springframework.boot</groupId>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020062 <artifactId>spring-boot-starter-jetty</artifactId>
63 </dependency>
64 <dependency>
Bruno Sakoto9be188d2021-06-16 11:47:54 -040065 <groupId>org.springframework.retry</groupId>
66 <artifactId>spring-retry</artifactId>
67 </dependency>
68 <dependency>
69 <groupId>org.springframework</groupId>
70 <artifactId>spring-aspects</artifactId>
71 </dependency>
egernug42daf632023-10-03 12:56:29 +010072 <!-- A L P H A B E T I C A L D E P E N D E N C I E S -->
73 <dependency>
74 <groupId>jakarta.validation</groupId>
75 <artifactId>jakarta.validation-api</artifactId>
76 </dependency>
77 <dependency>
78 <groupId>io.gsonfire</groupId>
79 <artifactId>gson-fire</artifactId>
80 </dependency>
Bruno Sakoto9be188d2021-06-16 11:47:54 -040081 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020082 <groupId>io.swagger.core.v3</groupId>
83 <artifactId>swagger-annotations</artifactId>
84 </dependency>
85 <dependency>
JosephKeenan2472e612021-06-23 14:15:52 +010086 <groupId>org.springdoc</groupId>
emacleeea7d1b42024-03-24 19:05:34 +000087 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
JosephKeenan2472e612021-06-23 14:15:52 +010088 </dependency>
89 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020090 <groupId>org.apache.commons</groupId>
91 <artifactId>commons-lang3</artifactId>
92 </dependency>
93 <dependency>
lukegleesond5bda882022-03-02 14:32:47 +000094 <groupId>org.mapstruct</groupId>
95 <artifactId>mapstruct</artifactId>
96 </dependency>
97 <dependency>
98 <groupId>org.mapstruct</groupId>
99 <artifactId>mapstruct-processor</artifactId>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200100 </dependency>
101 <!-- T E S T D E P E N D E N C I E S -->
102 <dependency>
103 <groupId>org.codehaus.groovy</groupId>
104 <artifactId>groovy</artifactId>
105 <scope>test</scope>
106 </dependency>
107 <dependency>
shivasubedi8a74ced2021-04-29 12:48:05 +0100108 <groupId>org.codehaus.groovy</groupId>
109 <artifactId>groovy-json</artifactId>
110 <scope>test</scope>
111 </dependency>
112 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200113 <groupId>org.spockframework</groupId>
114 <artifactId>spock-core</artifactId>
115 <scope>test</scope>
116 </dependency>
117 <dependency>
118 <groupId>org.spockframework</groupId>
119 <artifactId>spock-spring</artifactId>
120 <scope>test</scope>
121 </dependency>
122 <dependency>
123 <groupId>cglib</groupId>
124 <artifactId>cglib-nodep</artifactId>
125 <scope>test</scope>
126 </dependency>
127 <dependency>
128 <groupId>org.springframework.boot</groupId>
129 <artifactId>spring-boot-starter-test</artifactId>
130 <scope>test</scope>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200131 </dependency>
132 </dependencies>
133
134 <build>
135 <plugins>
136 <!-- Swagger code generation. -->
137 <plugin>
egernug9426ae82023-06-21 11:16:02 +0100138 <groupId>org.openapitools</groupId>
139 <artifactId>openapi-generator-maven-plugin</artifactId>
140 <version>6.6.0</version>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200141 <executions>
142 <execution>
Renu Kumari4d520012021-08-30 11:50:43 -0400143 <id>code-gen</id>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200144 <goals>
145 <goal>generate</goal>
146 </goals>
147 <configuration>
Lee Anjella Macabuhayebb0af82024-10-03 13:47:14 +0000148 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200149 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
150 <modelPackage>org.onap.cps.rest.model</modelPackage>
151 <apiPackage>org.onap.cps.rest.api</apiPackage>
egernug9426ae82023-06-21 11:16:02 +0100152 <generatorName>spring</generatorName>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200153 <generateSupportingFiles>false</generateSupportingFiles>
154 <configOptions>
155 <sourceFolder>src/gen/java</sourceFolder>
156 <dateLibrary>java11</dateLibrary>
157 <interfaceOnly>true</interfaceOnly>
egernug477bd462023-09-21 17:51:21 +0100158 <useSpringBoot3>true</useSpringBoot3>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200159 <useTags>true</useTags>
egernug9426ae82023-06-21 11:16:02 +0100160 <openApiNullable>false</openApiNullable>
161 <skipDefaultInterface>true</skipDefaultInterface>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200162 </configOptions>
163 </configuration>
164 </execution>
egernug7ae1bcf2023-06-27 09:31:23 +0100165 <execution>
166 <id>openapi-yaml-gen</id>
167 <goals>
168 <goal>generate</goal>
169 </goals>
170 <phase>compile</phase>
171 <configuration>
Lee Anjella Macabuhayebb0af82024-10-03 13:47:14 +0000172 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
egernug7ae1bcf2023-06-27 09:31:23 +0100173 <generatorName>openapi-yaml</generatorName>
174 <configOptions>
175 <outputFile>openapi.yaml</outputFile>
176 </configOptions>
177 </configuration>
178 </execution>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200179 </executions>
180 </plugin>
Lee Anjella Macabuhayebb0af82024-10-03 13:47:14 +0000181 <plugin>
182 <groupId>org.apache.maven.plugins</groupId>
183 <artifactId>maven-resources-plugin</artifactId>
sourabh_sourabh1bb36392024-11-13 12:54:17 +0000184 <version>${maven-resources-plugin.version}</version>
Lee Anjella Macabuhayebb0af82024-10-03 13:47:14 +0000185 <executions>
186 <execution>
187 <id>copy-resources</id>
188 <phase>compile</phase>
189 <goals>
190 <goal>copy-resources</goal>
191 </goals>
192 <configuration>
193 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory>
194 <resources>
195 <resource>
196 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
197 <includes>
198 <include>openapi.yaml</include>
199 </includes>
200 </resource>
201 </resources>
202 </configuration>
203 </execution>
egernug076b1b12024-10-10 10:11:27 +0100204 <execution>
205 <id>copy-to-doc-folder</id>
206 <phase>compile</phase>
207 <goals>
208 <goal>copy-resources</goal>
209 </goals>
210 <configuration>
211 <outputDirectory>${project.basedir}/../docs/api/swagger/cps</outputDirectory>
212 <overwrite>true</overwrite>
213 <resources>
214 <resource>
215 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
216 <includes>
217 <include>openapi.yaml</include>
218 </includes>
219 </resource>
220 </resources>
221 </configuration>
222 </execution>
Lee Anjella Macabuhayebb0af82024-10-03 13:47:14 +0000223 </executions>
224 </plugin>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200225 </plugins>
226 </build>
227</project>