Bump CPS version
[cps.git] / cps-rest / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Modifications Copyright (C) 2020-2024 Nordix Foundation.
5   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.
18
19   SPDX-License-Identifier: Apache-2.0
20   ============LICENSE_END=========================================================
21 -->
22
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">
26     <modelVersion>4.0.0</modelVersion>
27     <parent>
28         <groupId>org.onap.cps</groupId>
29         <artifactId>cps-parent</artifactId>
30         <version>3.4.8-SNAPSHOT</version>
31         <relativePath>../cps-parent/pom.xml</relativePath>
32     </parent>
33
34     <artifactId>cps-rest</artifactId>
35
36     <dependencies>
37         <dependency>
38             <groupId>${project.groupId}</groupId>
39             <artifactId>cps-service</artifactId>
40         </dependency>
41         <!-- S P R I N G   D E P E N D E N C I E S -->
42         <dependency>
43             <groupId>org.springframework.boot</groupId>
44             <artifactId>spring-boot-starter-web</artifactId>
45             <exclusions>
46                 <exclusion>
47                     <groupId>org.springframework.boot</groupId>
48                     <artifactId>spring-boot-starter-tomcat</artifactId>
49                 </exclusion>
50             </exclusions>
51         </dependency>
52         <dependency>
53             <groupId>org.springframework.boot</groupId>
54             <artifactId>spring-boot-starter-validation</artifactId>
55         </dependency>
56         <dependency>
57             <groupId>org.springframework.boot</groupId>
58             <artifactId>spring-boot-starter-jetty</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.springframework.retry</groupId>
62             <artifactId>spring-retry</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.springframework</groupId>
66             <artifactId>spring-aspects</artifactId>
67         </dependency>
68         <!-- A L P H A B E T I C A L   D E P E N D E N C I E S -->
69         <dependency>
70             <groupId>jakarta.validation</groupId>
71             <artifactId>jakarta.validation-api</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>io.gsonfire</groupId>
75             <artifactId>gson-fire</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>io.swagger.core.v3</groupId>
79             <artifactId>swagger-annotations</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>org.springdoc</groupId>
83             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>org.apache.commons</groupId>
87             <artifactId>commons-lang3</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>org.mapstruct</groupId>
91             <artifactId>mapstruct</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.mapstruct</groupId>
95             <artifactId>mapstruct-processor</artifactId>
96         </dependency>
97         <!-- T E S T   D E P E N D E N C I E S -->
98         <dependency>
99             <groupId>org.codehaus.groovy</groupId>
100             <artifactId>groovy</artifactId>
101             <scope>test</scope>
102         </dependency>
103         <dependency>
104             <groupId>org.codehaus.groovy</groupId>
105             <artifactId>groovy-json</artifactId>
106             <scope>test</scope>
107         </dependency>
108         <dependency>
109             <groupId>org.spockframework</groupId>
110             <artifactId>spock-core</artifactId>
111             <scope>test</scope>
112         </dependency>
113         <dependency>
114             <groupId>org.spockframework</groupId>
115             <artifactId>spock-spring</artifactId>
116             <scope>test</scope>
117         </dependency>
118         <dependency>
119             <groupId>cglib</groupId>
120             <artifactId>cglib-nodep</artifactId>
121             <scope>test</scope>
122         </dependency>
123         <dependency>
124             <groupId>org.springframework.boot</groupId>
125             <artifactId>spring-boot-starter-test</artifactId>
126             <scope>test</scope>
127         </dependency>
128     </dependencies>
129
130     <build>
131         <plugins>
132             <!-- Swagger code generation. -->
133             <plugin>
134                 <groupId>org.openapitools</groupId>
135                 <artifactId>openapi-generator-maven-plugin</artifactId>
136                 <version>6.6.0</version>
137                 <executions>
138                     <execution>
139                         <id>code-gen</id>
140                         <goals>
141                             <goal>generate</goal>
142                         </goals>
143                         <configuration>
144                             <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
145                             <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
146                             <modelPackage>org.onap.cps.rest.model</modelPackage>
147                             <apiPackage>org.onap.cps.rest.api</apiPackage>
148                             <generatorName>spring</generatorName>
149                             <generateSupportingFiles>false</generateSupportingFiles>
150                             <configOptions>
151                                 <sourceFolder>src/gen/java</sourceFolder>
152                                 <dateLibrary>java11</dateLibrary>
153                                 <interfaceOnly>true</interfaceOnly>
154                                 <useSpringBoot3>true</useSpringBoot3>
155                                 <useTags>true</useTags>
156                                 <openApiNullable>false</openApiNullable>
157                                 <skipDefaultInterface>true</skipDefaultInterface>
158                             </configOptions>
159                         </configuration>
160                     </execution>
161                     <execution>
162                         <id>openapi-yaml-gen</id>
163                         <goals>
164                             <goal>generate</goal>
165                         </goals>
166                         <phase>compile</phase>
167                         <configuration>
168                             <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
169                             <generatorName>openapi-yaml</generatorName>
170                             <configOptions>
171                                 <outputFile>openapi.yaml</outputFile>
172                             </configOptions>
173                         </configuration>
174                     </execution>
175                 </executions>
176             </plugin>
177             <plugin>
178                 <groupId>org.apache.maven.plugins</groupId>
179                 <artifactId>maven-resources-plugin</artifactId>
180                 <executions>
181                     <execution>
182                         <id>copy-resources</id>
183                         <phase>compile</phase>
184                         <goals>
185                             <goal>copy-resources</goal>
186                         </goals>
187                         <configuration>
188                             <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory>
189                             <resources>
190                                 <resource>
191                                     <directory>${project.basedir}/target/generated-sources/openapi/</directory>
192                                     <includes>
193                                       <include>openapi.yaml</include>
194                                     </includes>
195                                 </resource>
196                             </resources>
197                         </configuration>
198                     </execution>
199                 </executions>
200             </plugin>
201         </plugins>
202     </build>
203 </project>