3abeb7d1f158501864c92bbd52db14e0316a64db
[cps.git] / cps-ncmp-rest / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Modification Copyright (C) 2021 Nordix Foundation
5   ================================================================================
6   Licensed under the Apache License, Version 2.0 (the "License");
7   you may not use this file except in compliance with the License.
8   You may obtain a copy of the License at
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12   Unless required by applicable law or agreed to in writing, software
13   distributed under the License is distributed on an "AS IS" BASIS,
14   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   See the License for the specific language governing permissions and
16   limitations under the License.
17   ============LICENSE_END=========================================================
18 -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0"
20          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
22 <modelVersion>4.0.0</modelVersion>
23 <parent>
24     <groupId>org.onap.cps</groupId>
25     <artifactId>cps-parent</artifactId>
26     <version>1.1.0-SNAPSHOT</version>
27     <relativePath>../cps-parent/pom.xml</relativePath>
28 </parent>
29
30 <artifactId>cps-ncmp-rest</artifactId>
31
32 <properties>
33     <minimum-coverage>0.0</minimum-coverage>
34 </properties>
35
36 <dependencies>
37     <dependency>
38         <groupId>${project.groupId}</groupId>
39         <artifactId>cps-ncmp-service</artifactId>
40         <version>${project.version}</version>
41     </dependency>
42     <dependency>
43         <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>
54         <artifactId>spring-boot-starter-jetty</artifactId>
55     </dependency>
56     <dependency>
57         <groupId>io.swagger.core.v3</groupId>
58         <artifactId>swagger-annotations</artifactId>
59     </dependency>
60     <dependency>
61         <groupId>io.springfox</groupId>
62         <artifactId>springfox-boot-starter</artifactId>
63     </dependency>
64     <dependency>
65         <groupId>io.swagger</groupId>
66         <artifactId>swagger-annotations</artifactId>
67     </dependency>
68     <!-- T E S T   D E P E N D E N C I E S -->
69     <dependency>
70         <groupId>org.codehaus.groovy</groupId>
71         <artifactId>groovy</artifactId>
72         <scope>test</scope>
73     </dependency>
74     <dependency>
75         <groupId>org.spockframework</groupId>
76         <artifactId>spock-core</artifactId>
77         <scope>test</scope>
78     </dependency>
79     <dependency>
80         <groupId>org.spockframework</groupId>
81         <artifactId>spock-spring</artifactId>
82         <scope>test</scope>
83     </dependency>
84     <dependency>
85         <groupId>cglib</groupId>
86         <artifactId>cglib-nodep</artifactId>
87         <scope>test</scope>
88     </dependency>
89     <dependency>
90         <groupId>org.springframework.boot</groupId>
91         <artifactId>spring-boot-starter-test</artifactId>
92         <scope>test</scope>
93         <exclusions>
94             <exclusion>
95                 <groupId>org.junit.vintage</groupId>
96                 <artifactId>junit-vintage-engine</artifactId>
97             </exclusion>
98         </exclusions>
99     </dependency>
100     <dependency>
101         <groupId>com.google.code.gson</groupId>
102         <artifactId>gson</artifactId>
103     </dependency>
104 </dependencies>
105
106 <build>
107     <plugins>
108         <!-- Swagger code generation. -->
109         <plugin>
110             <groupId>io.swagger.codegen.v3</groupId>
111             <artifactId>swagger-codegen-maven-plugin</artifactId>
112             <executions>
113                 <execution>
114                     <goals>
115                         <goal>generate</goal>
116                     </goals>
117                     <configuration>
118                         <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
119                         <invokerPackage>org.onap.cps.ncmp.rest.controller</invokerPackage>
120                         <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
121                         <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
122                         <language>spring</language>
123                         <generateSupportingFiles>false</generateSupportingFiles>
124                         <configOptions>
125                             <sourceFolder>src/gen/java</sourceFolder>
126                             <dateLibrary>java11</dateLibrary>
127                             <interfaceOnly>true</interfaceOnly>
128                             <useTags>true</useTags>
129                         </configOptions>
130                     </configuration>
131                 </execution>
132             </executions>
133         </plugin>
134     </plugins>
135 </build>
136 </project>