Define DMI REST interface for Datajobs
[cps/ncmp-dmi-plugin.git] / pom.xml
1 <!--
2   ============LICENSE_START=======================================================
3   Copyright (c) 2021 Nordix Foundation.
4   ================================================================================
5   Licensed under the Apache License, Version 2.0 (the "License");
6   you may not use this file except in compliance with the License.
7   You may obtain a copy of the License at
8
9         http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16   ============LICENSE_END=========================================================
17 -->
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
24     <parent>
25         <groupId>org.onap.oparent</groupId>
26         <artifactId>oparent</artifactId>
27         <version>3.2.0</version>
28         <relativePath/>
29     </parent>
30
31     <organization>
32         <name>ONAP - CPS</name>
33         <url>http://www.onap.org/</url>
34     </organization>
35
36     <groupId>org.onap.cps</groupId>
37     <artifactId>ncmp-dmi-plugin</artifactId>
38     <version>0.0.1-SNAPSHOT</version>
39     <name>ncmp-dmi-plugin</name>
40     <description>DMI Plugin Service</description>
41
42     <properties>
43         <app>org.onap.cps.ncmp.Application</app>
44         <groovy.version>3.0.8</groovy.version>
45         <java.version>11</java.version>
46         <oparent.version>3.1.0</oparent.version>
47         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
48         <spock-core.version>2.0-M5-groovy-3.0</spock-core.version>
49         <spock-spring.version>2.0-M5-groovy-3.0</spock-spring.version>
50         <springboot.version>2.5.0</springboot.version>
51         <swagger.version>2.1.4</swagger.version>
52         <swagger-annotations-version>1.6.2</swagger-annotations-version>
53         <swagger-codegen-maven-plugin.version>3.0.18</swagger-codegen-maven-plugin.version>
54     </properties>
55
56     <dependencyManagement>
57         <dependencies>
58             <dependency>
59                 <groupId>org.springframework.boot</groupId>
60                 <artifactId>spring-boot-dependencies</artifactId>
61                 <version>${springboot.version}</version>
62                 <type>pom</type>
63                 <scope>import</scope>
64             </dependency>
65             <dependency>
66                 <groupId>io.swagger</groupId>
67                 <artifactId>swagger-annotations</artifactId>
68                 <version>${swagger-annotations-version}</version>
69             </dependency>
70             <dependency>
71                 <groupId>org.codehaus.groovy</groupId>
72                 <artifactId>groovy</artifactId>
73                 <version>${groovy.version}</version>
74             </dependency>
75             <dependency>
76                 <groupId>org.spockframework</groupId>
77                 <artifactId>spock-core</artifactId>
78                 <version>${spock-core.version}</version>
79             </dependency>
80             <dependency>
81                 <groupId>org.spockframework</groupId>
82                 <artifactId>spock-spring</artifactId>
83                 <version>${spock-spring.version}</version>
84             </dependency>
85         </dependencies>
86     </dependencyManagement>
87
88     <dependencies>
89         <dependency>
90             <groupId>org.springframework.boot</groupId>
91             <artifactId>spring-boot-starter-web</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>org.springframework.boot</groupId>
95             <artifactId>spring-boot-starter-validation</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>org.codehaus.groovy</groupId>
99             <artifactId>groovy</artifactId>
100             <version>${groovy.version}</version>
101         </dependency>
102         <dependency>
103             <groupId>org.springframework.boot</groupId>
104             <artifactId>spring-boot-starter-test</artifactId>
105             <scope>test</scope>
106             <exclusions>
107                 <exclusion>
108                     <groupId>org.junit.vintage</groupId>
109                     <artifactId>junit-vintage-engine</artifactId>
110                 </exclusion>
111             </exclusions>
112         </dependency>
113         <dependency>
114             <groupId>org.spockframework</groupId>
115             <artifactId>spock-core</artifactId>
116             <scope>test</scope>
117         </dependency>
118         <dependency>
119             <groupId>org.spockframework</groupId>
120             <artifactId>spock-spring</artifactId>
121             <scope>test</scope>
122         </dependency>
123         <dependency>
124             <groupId>io.swagger</groupId>
125             <artifactId>swagger-annotations</artifactId>
126             <version>${swagger-annotations-version}</version>
127         </dependency>
128     </dependencies>
129
130     <build>
131         <resources>
132             <resource>
133                 <directory>src/main/resources</directory>
134                 <filtering>true</filtering>
135             </resource>
136             <resource>
137                 <directory>target/generated-sources/license</directory>
138                 <includes>
139                     <include>third-party-licenses.txt</include>
140                 </includes>
141             </resource>
142             <resource>
143                 <directory>target/generated-resources/licenses</directory>
144                 <includes>
145                     <include>*.*</include>
146                 </includes>
147                 <targetPath>third-party-licenses</targetPath>
148             </resource>
149         </resources>
150         <plugins>
151             <plugin>
152                 <groupId>io.swagger.codegen.v3</groupId>
153                 <artifactId>swagger-codegen-maven-plugin</artifactId>
154                 <version>${swagger-codegen-maven-plugin.version}</version>
155                 <executions>
156                     <execution>
157                         <goals>
158                             <goal>generate</goal>
159                         </goals>
160                         <configuration>
161                             <inputSpec>${project.basedir}/docs/openapi/openapi.yml</inputSpec>
162                             <language>spring</language>
163                             <generateSupportingFiles>false</generateSupportingFiles>
164                             <apiPackage>org.onap.cps.ncmp.rest.api</apiPackage>
165                             <modelPackage>org.onap.cps.ncmp.rest.model</modelPackage>
166                             <configOptions>
167                                 <sourceFolder>src/gen/java</sourceFolder>
168                                 <dateLibrary>java11</dateLibrary>
169                                 <interfaceOnly>true</interfaceOnly>
170                                 <useTags>true</useTags>
171                             </configOptions>
172                         </configuration>
173                     </execution>
174                 </executions>
175             </plugin>
176             <plugin>
177                 <groupId>org.springframework.boot</groupId>
178                 <artifactId>spring-boot-maven-plugin</artifactId>
179                 <executions>
180                     <execution>
181                         <goals>
182                             <goal>build-info</goal>
183                             <goal>repackage</goal>
184                         </goals>
185                     </execution>
186                 </executions>
187             </plugin>
188             <plugin>
189                 <groupId>org.codehaus.gmavenplus</groupId>
190                 <artifactId>gmavenplus-plugin</artifactId>
191                 <executions>
192                     <execution>
193                         <goals>
194                             <goal>compileTests</goal>
195                         </goals>
196                     </execution>
197                 </executions>
198             </plugin>
199             <plugin>
200                 <groupId>org.apache.maven.plugins</groupId>
201                 <artifactId>maven-surefire-plugin</artifactId>
202                 <configuration>
203                     <argLine>${surefireArgLine}</argLine>
204                     <includes>
205                         <include>**/*Spec.java</include>
206                     </includes>
207                     <excludes>
208                         <exclude>**/IT*.java</exclude>
209                     </excludes>
210                 </configuration>
211             </plugin>
212         </plugins>
213     </build>
214 </project>