CPS-401 Update Open API YAML with data types and example for output (cpsData)
[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) 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   ============LICENSE_END=========================================================
19 -->
20
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
24     <modelVersion>4.0.0</modelVersion>
25     <parent>
26         <groupId>org.onap.cps</groupId>
27         <artifactId>cps-parent</artifactId>
28         <version>1.1.0-SNAPSHOT</version>
29         <relativePath>../cps-parent/pom.xml</relativePath>
30     </parent>
31
32     <artifactId>cps-rest</artifactId>
33
34     <dependencies>
35         <dependency>
36             <groupId>${project.groupId}</groupId>
37             <artifactId>cps-service</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>org.springframework.boot</groupId>
41             <artifactId>spring-boot-starter-web</artifactId>
42             <exclusions>
43                 <exclusion>
44                     <groupId>org.springframework.boot</groupId>
45                     <artifactId>spring-boot-starter-tomcat</artifactId>
46                 </exclusion>
47             </exclusions>
48         </dependency>
49         <dependency>
50             <groupId>org.springframework.boot</groupId>
51             <artifactId>spring-boot-starter-validation</artifactId>
52         </dependency>
53         <dependency>
54             <groupId>org.springframework.boot</groupId>
55             <artifactId>spring-boot-starter-jetty</artifactId>
56         </dependency>
57         <dependency>
58             <groupId>org.springframework.retry</groupId>
59             <artifactId>spring-retry</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>org.springframework</groupId>
63             <artifactId>spring-aspects</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>io.swagger.core.v3</groupId>
67             <artifactId>swagger-annotations</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>io.springfox</groupId>
71             <artifactId>springfox-boot-starter</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>io.swagger</groupId>
75             <artifactId>swagger-annotations</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.springdoc</groupId>
79             <artifactId>springdoc-openapi-ui</artifactId>
80             <version>1.5.9</version>
81         </dependency>
82         <dependency>
83             <groupId>org.apache.commons</groupId>
84             <artifactId>commons-lang3</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>org.modelmapper</groupId>
88             <artifactId>modelmapper</artifactId>
89         </dependency>
90         <!-- T E S T   D E P E N D E N C I E S -->
91         <dependency>
92             <groupId>org.codehaus.groovy</groupId>
93             <artifactId>groovy</artifactId>
94             <scope>test</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.codehaus.groovy</groupId>
98             <artifactId>groovy-json</artifactId>
99             <scope>test</scope>
100         </dependency>
101         <dependency>
102             <groupId>org.spockframework</groupId>
103             <artifactId>spock-core</artifactId>
104             <scope>test</scope>
105         </dependency>
106         <dependency>
107             <groupId>org.spockframework</groupId>
108             <artifactId>spock-spring</artifactId>
109             <scope>test</scope>
110         </dependency>
111         <dependency>
112             <groupId>cglib</groupId>
113             <artifactId>cglib-nodep</artifactId>
114             <scope>test</scope>
115         </dependency>
116         <dependency>
117             <groupId>org.springframework.boot</groupId>
118             <artifactId>spring-boot-starter-test</artifactId>
119             <scope>test</scope>
120             <exclusions>
121                 <exclusion>
122                     <groupId>org.junit.vintage</groupId>
123                     <artifactId>junit-vintage-engine</artifactId>
124                 </exclusion>
125             </exclusions>
126         </dependency>
127     </dependencies>
128
129     <build>
130         <plugins>
131             <!-- Swagger code generation. -->
132             <plugin>
133                 <groupId>io.swagger.codegen.v3</groupId>
134                 <artifactId>swagger-codegen-maven-plugin</artifactId>
135                 <executions>
136                     <execution>
137                         <goals>
138                             <goal>generate</goal>
139                         </goals>
140                         <configuration>
141                             <inputSpec>${project.basedir}/src/main/resources/static/openapi.yml</inputSpec>
142                             <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
143                             <modelPackage>org.onap.cps.rest.model</modelPackage>
144                             <apiPackage>org.onap.cps.rest.api</apiPackage>
145                             <language>spring</language>
146                             <generateSupportingFiles>false</generateSupportingFiles>
147                             <configOptions>
148                                 <sourceFolder>src/gen/java</sourceFolder>
149                                 <dateLibrary>java11</dateLibrary>
150                                 <interfaceOnly>true</interfaceOnly>
151                                 <useTags>true</useTags>
152                             </configOptions>
153                         </configuration>
154                     </execution>
155                 </executions>
156             </plugin>
157         </plugins>
158     </build>
159 </project>