blob: 60ad20069a9d17f666e5525ebedc007caab87528 [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=======================================================
4 Copyright (c) 2020 Linux Foundation.
lukegleeson7e243c92023-04-20 15:32:12 +01005 Modifications Copyright (C) 2020-2023 Nordix Foundation.
Bruno Sakotof05a5032021-03-03 18:27:54 -05006 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.
Renu Kumari4d520012021-08-30 11:50:43 -040019
20 SPDX-License-Identifier: Apache-2.0
Bruno Sakotof05a5032021-03-03 18:27:54 -050021 ============LICENSE_END=========================================================
22-->
23
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020024<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>
egernugbdac4402023-07-21 13:27:24 +010031 <version>3.3.6-SNAPSHOT</version>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020032 <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 <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>
68 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020069 <groupId>io.swagger.core.v3</groupId>
70 <artifactId>swagger-annotations</artifactId>
71 </dependency>
72 <dependency>
JosephKeenan2472e612021-06-23 14:15:52 +010073 <groupId>org.springdoc</groupId>
74 <artifactId>springdoc-openapi-ui</artifactId>
JosephKeenan2472e612021-06-23 14:15:52 +010075 </dependency>
76 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020077 <groupId>org.apache.commons</groupId>
78 <artifactId>commons-lang3</artifactId>
79 </dependency>
80 <dependency>
lukegleesond5bda882022-03-02 14:32:47 +000081 <groupId>org.mapstruct</groupId>
82 <artifactId>mapstruct</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>org.mapstruct</groupId>
86 <artifactId>mapstruct-processor</artifactId>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +020087 </dependency>
88 <!-- 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>
shivasubedi8a74ced2021-04-29 12:48:05 +010095 <groupId>org.codehaus.groovy</groupId>
96 <artifactId>groovy-json</artifactId>
97 <scope>test</scope>
98 </dependency>
99 <dependency>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200100 <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>
117 <scope>test</scope>
118 <exclusions>
119 <exclusion>
120 <groupId>org.junit.vintage</groupId>
121 <artifactId>junit-vintage-engine</artifactId>
122 </exclusion>
123 </exclusions>
124 </dependency>
125 </dependencies>
126
127 <build>
128 <plugins>
129 <!-- Swagger code generation. -->
130 <plugin>
egernug9426ae82023-06-21 11:16:02 +0100131 <groupId>org.openapitools</groupId>
132 <artifactId>openapi-generator-maven-plugin</artifactId>
133 <version>6.6.0</version>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200134 <executions>
135 <execution>
Renu Kumari4d520012021-08-30 11:50:43 -0400136 <id>code-gen</id>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200137 <goals>
138 <goal>generate</goal>
139 </goals>
140 <configuration>
Renu Kumari4d520012021-08-30 11:50:43 -0400141 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200142 <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
143 <modelPackage>org.onap.cps.rest.model</modelPackage>
144 <apiPackage>org.onap.cps.rest.api</apiPackage>
egernug9426ae82023-06-21 11:16:02 +0100145 <generatorName>spring</generatorName>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200146 <generateSupportingFiles>false</generateSupportingFiles>
147 <configOptions>
148 <sourceFolder>src/gen/java</sourceFolder>
149 <dateLibrary>java11</dateLibrary>
150 <interfaceOnly>true</interfaceOnly>
151 <useTags>true</useTags>
egernug9426ae82023-06-21 11:16:02 +0100152 <openApiNullable>false</openApiNullable>
153 <skipDefaultInterface>true</skipDefaultInterface>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200154 </configOptions>
155 </configuration>
156 </execution>
egernug7ae1bcf2023-06-27 09:31:23 +0100157 <execution>
158 <id>openapi-yaml-gen</id>
159 <goals>
160 <goal>generate</goal>
161 </goals>
162 <phase>compile</phase>
163 <configuration>
164 <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
165 <generatorName>openapi-yaml</generatorName>
166 <configOptions>
167 <outputFile>openapi.yaml</outputFile>
168 </configOptions>
169 </configuration>
170 </execution>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200171 </executions>
172 </plugin>
Renu Kumari4d520012021-08-30 11:50:43 -0400173 <plugin>
egernug7ae1bcf2023-06-27 09:31:23 +0100174 <groupId>org.apache.maven.plugins</groupId>
Renu Kumari4d520012021-08-30 11:50:43 -0400175 <artifactId>maven-resources-plugin</artifactId>
176 <executions>
177 <execution>
178 <id>copy-resources</id>
179 <phase>compile</phase>
180 <goals>
181 <goal>copy-resources</goal>
182 </goals>
183 <configuration>
184 <outputDirectory>${project.basedir}/target/classes/static/api-docs/cps-core</outputDirectory>
185 <resources>
186 <resource>
egernug7ae1bcf2023-06-27 09:31:23 +0100187 <directory>${project.basedir}/target/generated-sources/openapi/</directory>
Renu Kumari4d520012021-08-30 11:50:43 -0400188 <includes>
189 <include>openapi.yaml</include>
190 </includes>
191 </resource>
192 </resources>
193 </configuration>
194 </execution>
195 </executions>
196 </plugin>
Ruslan Kashapov5e1a5a72021-02-04 17:26:01 +0200197 </plugins>
198 </build>
199</project>