Bump CPS to 3.4.5-SNAPSHOT
[cps.git] / cps-rest / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (c) 2020 Linux Foundation.
5   Modifications Copyright (C) 2020-2023 Nordix Foundation.
6   Modifications Copyright (C) 2021 Bell Canada.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12         http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19
20   SPDX-License-Identifier: Apache-2.0
21   ============LICENSE_END=========================================================
22 -->
23
24 <project xmlns="http://maven.apache.org/POM/4.0.0"
25          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
27     <modelVersion>4.0.0</modelVersion>
28     <parent>
29         <groupId>org.onap.cps</groupId>
30         <artifactId>cps-parent</artifactId>
31         <version>3.4.5-SNAPSHOT</version>
32         <relativePath>../cps-parent/pom.xml</relativePath>
33     </parent>
34
35     <artifactId>cps-rest</artifactId>
36
37     <dependencies>
38         <dependency>
39             <groupId>${project.groupId}</groupId>
40             <artifactId>cps-service</artifactId>
41         </dependency>
42         <!-- S P R I N G   D E P E N D E N C I E S -->
43         <dependency>
44             <groupId>org.springframework.boot</groupId>
45             <artifactId>spring-boot-starter-web</artifactId>
46             <exclusions>
47                 <exclusion>
48                     <groupId>org.springframework.boot</groupId>
49                     <artifactId>spring-boot-starter-tomcat</artifactId>
50                 </exclusion>
51             </exclusions>
52         </dependency>
53         <dependency>
54             <groupId>org.springframework.boot</groupId>
55             <artifactId>spring-boot-starter-validation</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>org.springframework.boot</groupId>
59             <artifactId>spring-boot-starter-jetty</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>org.springframework.retry</groupId>
63             <artifactId>spring-retry</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>org.springframework</groupId>
67             <artifactId>spring-aspects</artifactId>
68         </dependency>
69         <!-- A L P H A B E T I C A L   D E P E N D E N C I E S -->
70         <dependency>
71             <groupId>jakarta.validation</groupId>
72             <artifactId>jakarta.validation-api</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>io.gsonfire</groupId>
76             <artifactId>gson-fire</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>io.swagger.core.v3</groupId>
80             <artifactId>swagger-annotations</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.springdoc</groupId>
84             <artifactId>springdoc-openapi-ui</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.apache.commons</groupId>
88             <artifactId>commons-lang3</artifactId>
89         </dependency>
90         <dependency>
91             <groupId>org.mapstruct</groupId>
92             <artifactId>mapstruct</artifactId>
93         </dependency>
94         <dependency>
95             <groupId>org.mapstruct</groupId>
96             <artifactId>mapstruct-processor</artifactId>
97         </dependency>
98         <!-- T E S T   D E P E N D E N C I E S -->
99         <dependency>
100             <groupId>org.codehaus.groovy</groupId>
101             <artifactId>groovy</artifactId>
102             <scope>test</scope>
103         </dependency>
104         <dependency>
105             <groupId>org.codehaus.groovy</groupId>
106             <artifactId>groovy-json</artifactId>
107             <scope>test</scope>
108         </dependency>
109         <dependency>
110             <groupId>org.spockframework</groupId>
111             <artifactId>spock-core</artifactId>
112             <scope>test</scope>
113         </dependency>
114         <dependency>
115             <groupId>org.spockframework</groupId>
116             <artifactId>spock-spring</artifactId>
117             <scope>test</scope>
118         </dependency>
119         <dependency>
120             <groupId>cglib</groupId>
121             <artifactId>cglib-nodep</artifactId>
122             <scope>test</scope>
123         </dependency>
124         <dependency>
125             <groupId>org.springframework.boot</groupId>
126             <artifactId>spring-boot-starter-test</artifactId>
127             <scope>test</scope>
128             <exclusions>
129                 <exclusion>
130                     <groupId>org.junit.vintage</groupId>
131                     <artifactId>junit-vintage-engine</artifactId>
132                 </exclusion>
133             </exclusions>
134         </dependency>
135     </dependencies>
136
137     <build>
138         <plugins>
139             <!-- Swagger code generation. -->
140             <plugin>
141                 <groupId>org.openapitools</groupId>
142                 <artifactId>openapi-generator-maven-plugin</artifactId>
143                 <version>6.6.0</version>
144                 <executions>
145                     <execution>
146                         <id>code-gen</id>
147                         <goals>
148                             <goal>generate</goal>
149                         </goals>
150                         <configuration>
151                             <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
152                             <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
153                             <modelPackage>org.onap.cps.rest.model</modelPackage>
154                             <apiPackage>org.onap.cps.rest.api</apiPackage>
155                             <generatorName>spring</generatorName>
156                             <generateSupportingFiles>false</generateSupportingFiles>
157                             <configOptions>
158                                 <sourceFolder>src/gen/java</sourceFolder>
159                                 <dateLibrary>java11</dateLibrary>
160                                 <interfaceOnly>true</interfaceOnly>
161                                 <useSpringBoot3>true</useSpringBoot3>
162                                 <useTags>true</useTags>
163                                 <openApiNullable>false</openApiNullable>
164                                 <skipDefaultInterface>true</skipDefaultInterface>
165                             </configOptions>
166                         </configuration>
167                     </execution>
168                     <execution>
169                         <id>openapi-yaml-gen</id>
170                         <goals>
171                             <goal>generate</goal>
172                         </goals>
173                         <phase>compile</phase>
174                         <configuration>
175                             <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
176                             <generatorName>openapi-yaml</generatorName>
177                             <configOptions>
178                                 <outputFile>openapi.yaml</outputFile>
179                             </configOptions>
180                         </configuration>
181                     </execution>
182                 </executions>
183             </plugin>
184             <plugin>
185                 <groupId>org.apache.maven.plugins</groupId>
186                 <artifactId>maven-resources-plugin</artifactId>
187                 <executions>
188                     <execution>
189                         <id>copy-resources</id>
190                         <phase>compile</phase>
191                         <goals>
192                             <goal>copy-resources</goal>
193                         </goals>
194                         <configuration>
195                             <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory>
196                             <resources>
197                                 <resource>
198                                     <directory>${project.basedir}/target/generated-sources/openapi/</directory>
199                                     <includes>
200                                       <include>openapi.yaml</include>
201                                     </includes>
202                                 </resource>
203                             </resources>
204                         </configuration>
205                     </execution>
206                 </executions>
207             </plugin>
208         </plugins>
209     </build>
210 </project>