blob: 4bcb01af4c6edbed035b863bce9156429e4cef2a [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>
danielhanrahan64ff4582024-08-21 16:14:53 +010030 <version>3.5.3-SNAPSHOT</version>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020031 <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>
egernug42daf632023-10-03 12:56:29 +010041 <!-- 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 +020042 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020043 <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>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +020054 <artifactId>spring-boot-starter-validation</artifactId>
55 </dependency>
56 <dependency>
57 <groupId>org.springframework.boot</groupId>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020058 <artifactId>spring-boot-starter-jetty</artifactId>
59 </dependency>
60 <dependency>
Bruno Sakoto9be188d2021-06-16 11:47:54 -040061 <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>
egernug42daf632023-10-03 12:56:29 +010068 <!-- 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>
Bruno Sakoto9be188d2021-06-16 11:47:54 -040077 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020078 <groupId>io.swagger.core.v3</groupId>
79 <artifactId>swagger-annotations</artifactId>
80 </dependency>
81 <dependency>
JosephKeenan2472e612021-06-23 14:15:52 +010082 <groupId>org.springdoc</groupId>
emacleeea7d1b42024-03-24 19:05:34 +000083 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
JosephKeenan2472e612021-06-23 14:15:52 +010084 </dependency>
85 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020086 <groupId>org.apache.commons</groupId>
87 <artifactId>commons-lang3</artifactId>
88 </dependency>
89 <dependency>
lukegleesond5bda882022-03-02 14:32:47 +000090 <groupId>org.mapstruct</groupId>
91 <artifactId>mapstruct</artifactId>
92 </dependency>
93 <dependency>
94 <groupId>org.mapstruct</groupId>
95 <artifactId>mapstruct-processor</artifactId>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020096 </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>
shivasubedi8a74ced2021-04-29 12:48:05 +0100104 <groupId>org.codehaus.groovy</groupId>
105 <artifactId>groovy-json</artifactId>
106 <scope>test</scope>
107 </dependency>
108 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200109 <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>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200127 </dependency>
128 </dependencies>
129
130 <build>
131 <plugins>
132 <!-- Swagger code generation. -->
133 <plugin>
egernug9426ae82023-06-21 11:16:02 +0100134 <groupId>org.openapitools</groupId>
135 <artifactId>openapi-generator-maven-plugin</artifactId>
136 <version>6.6.0</version>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200137 <executions>
138 <execution>
Renu Kumari4d520012021-08-30 11:50:43 -0400139 <id>code-gen</id>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200140 <goals>
141 <goal>generate</goal>
142 </goals>
143 <configuration>
Renu Kumari4d520012021-08-30 11:50:43 -0400144 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200145 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
146 <modelPackage>org.onap.cps.rest.model</modelPackage>
147 <apiPackage>org.onap.cps.rest.api</apiPackage>
egernug9426ae82023-06-21 11:16:02 +0100148 <generatorName>spring</generatorName>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200149 <generateSupportingFiles>false</generateSupportingFiles>
150 <configOptions>
151 <sourceFolder>src/gen/java</sourceFolder>
152 <dateLibrary>java11</dateLibrary>
153 <interfaceOnly>true</interfaceOnly>
egernug477bd462023-09-21 17:51:21 +0100154 <useSpringBoot3>true</useSpringBoot3>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200155 <useTags>true</useTags>
egernug9426ae82023-06-21 11:16:02 +0100156 <openApiNullable>false</openApiNullable>
157 <skipDefaultInterface>true</skipDefaultInterface>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200158 </configOptions>
159 </configuration>
160 </execution>
egernug7ae1bcf2023-06-27 09:31:23 +0100161 <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>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200175 </executions>
176 </plugin>
Renu Kumari4d520012021-08-30 11:50:43 -0400177 <plugin>
egernug7ae1bcf2023-06-27 09:31:23 +0100178 <groupId>org.apache.maven.plugins</groupId>
Renu Kumari4d520012021-08-30 11:50:43 -0400179 <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>
egernug7ae1bcf2023-06-27 09:31:23 +0100191 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
Renu Kumari4d520012021-08-30 11:50:43 -0400192 <includes>
193 <include>openapi.yaml</include>
194 </includes>
195 </resource>
196 </resources>
197 </configuration>
198 </execution>
199 </executions>
200 </plugin>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200201 </plugins>
202 </build>
203</project>