4b42656e89d8c6141f16dc3430c9c10303450aea
[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.apache.commons</groupId>
79             <artifactId>commons-lang3</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>org.modelmapper</groupId>
83             <artifactId>modelmapper</artifactId>
84         </dependency>
85         <!-- T E S T   D E P E N D E N C I E S -->
86         <dependency>
87             <groupId>org.codehaus.groovy</groupId>
88             <artifactId>groovy</artifactId>
89             <scope>test</scope>
90         </dependency>
91         <dependency>
92             <groupId>org.codehaus.groovy</groupId>
93             <artifactId>groovy-json</artifactId>
94             <scope>test</scope>
95         </dependency>
96         <dependency>
97             <groupId>org.spockframework</groupId>
98             <artifactId>spock-core</artifactId>
99             <scope>test</scope>
100         </dependency>
101         <dependency>
102             <groupId>org.spockframework</groupId>
103             <artifactId>spock-spring</artifactId>
104             <scope>test</scope>
105         </dependency>
106         <dependency>
107             <groupId>cglib</groupId>
108             <artifactId>cglib-nodep</artifactId>
109             <scope>test</scope>
110         </dependency>
111         <dependency>
112             <groupId>org.springframework.boot</groupId>
113             <artifactId>spring-boot-starter-test</artifactId>
114             <scope>test</scope>
115             <exclusions>
116                 <exclusion>
117                     <groupId>org.junit.vintage</groupId>
118                     <artifactId>junit-vintage-engine</artifactId>
119                 </exclusion>
120             </exclusions>
121         </dependency>
122     </dependencies>
123
124     <build>
125         <plugins>
126             <!-- Swagger code generation. -->
127             <plugin>
128                 <groupId>io.swagger.codegen.v3</groupId>
129                 <artifactId>swagger-codegen-maven-plugin</artifactId>
130                 <executions>
131                     <execution>
132                         <goals>
133                             <goal>generate</goal>
134                         </goals>
135                         <configuration>
136                             <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
137                             <invokerPackage>org.onap.cps.rest.controller</invokerPackage>
138                             <modelPackage>org.onap.cps.rest.model</modelPackage>
139                             <apiPackage>org.onap.cps.rest.api</apiPackage>
140                             <language>spring</language>
141                             <generateSupportingFiles>false</generateSupportingFiles>
142                             <configOptions>
143                                 <sourceFolder>src/gen/java</sourceFolder>
144                                 <dateLibrary>java11</dateLibrary>
145                                 <interfaceOnly>true</interfaceOnly>
146                                 <useTags>true</useTags>
147                             </configOptions>
148                         </configuration>
149                     </execution>
150                 </executions>
151             </plugin>
152         </plugins>
153     </build>
154 </project>