Migrated to springboot 2.6.2
[nonrtric.git] / dmaap-adaptor-java / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2021 Nordix Foundation
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.
19 * ========================LICENSE_END===================================
20 -->
21 <project
22     xmlns="http://maven.apache.org/POM/4.0.0"
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26     <parent>
27         <groupId>org.springframework.boot</groupId>
28         <artifactId>spring-boot-starter-parent</artifactId>
29         <version>2.6.2</version>
30         <relativePath />
31     </parent>
32     <groupId>org.o-ran-sc.nonrtric</groupId>
33     <artifactId>dmaap-adaptor</artifactId>
34     <version>1.1.0-SNAPSHOT</version>
35     <licenses>
36         <license>
37             <name>The Apache Software License, Version 2.0</name>
38             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
39         </license>
40     </licenses>
41     <repositories>
42         <repository>
43             <id>onap-releases</id>
44             <name>onap-releases</name>
45             <url>https://nexus.onap.org/content/repositories/releases/</url>
46         </repository>
47     </repositories>
48     <properties>
49         <java.version>11</java.version>
50         <springfox.version>3.0.0</springfox.version>
51         <immutable.version>2.8.2</immutable.version>
52         <swagger.version>2.1.6</swagger.version>
53         <json.version>20190722</json.version>
54         <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
55         <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
56         <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>
57         <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
58         <docker-maven-plugin>0.30.0</docker-maven-plugin>
59         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
60         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
61         <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
62         <exec.skip>true</exec.skip>
63     </properties>
64     <dependencies>
65         <dependency>
66             <groupId>org.springdoc</groupId>
67             <artifactId>springdoc-openapi-ui</artifactId>
68             <version>1.6.3</version>
69         </dependency>
70         <dependency>
71             <groupId>org.springframework.boot</groupId>
72             <artifactId>spring-boot-starter-web</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-starter-thymeleaf</artifactId>
77         </dependency>
78         <dependency>
79             <groupId>org.springframework.boot</groupId>
80             <artifactId>spring-boot-starter-webflux</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.springframework</groupId>
84             <artifactId>spring-webflux</artifactId>
85         </dependency>
86         <dependency>
87             <groupId>io.swagger.core.v3</groupId>
88             <artifactId>swagger-jaxrs2</artifactId>
89             <version>${swagger.version}</version>
90         </dependency>
91         <dependency>
92             <groupId>io.swagger.core.v3</groupId>
93             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
94             <version>${swagger.version}</version>
95         </dependency>
96         <dependency>
97             <groupId>org.immutables</groupId>
98             <artifactId>value</artifactId>
99             <version>${immutable.version}</version>
100             <scope>provided</scope>
101         </dependency>
102         <dependency>
103             <groupId>org.immutables</groupId>
104             <artifactId>gson</artifactId>
105             <version>${immutable.version}</version>
106         </dependency>
107         <dependency>
108             <groupId>org.json</groupId>
109             <artifactId>json</artifactId>
110             <version>${json.version}</version>
111         </dependency>
112         <dependency>
113             <groupId>org.projectlombok</groupId>
114             <artifactId>lombok</artifactId>
115             <scope>provided</scope>
116         </dependency>
117         <!-- Actuator dependencies -->
118         <dependency>
119             <groupId>org.springframework.boot</groupId>
120             <artifactId>spring-boot-starter-actuator</artifactId>
121         </dependency>
122         <!--REQUIRED TO GENERATE DOCUMENTATION -->
123         <dependency>
124             <groupId>io.springfox</groupId>
125             <artifactId>springfox-swagger2</artifactId>
126             <version>${springfox.version}</version>
127         </dependency>
128         <dependency>
129             <groupId>io.springfox</groupId>
130             <artifactId>springfox-swagger-ui</artifactId>
131             <version>${springfox.version}</version>
132         </dependency>
133         <!-- For development help -->
134         <dependency>
135             <groupId>org.springframework.boot</groupId>
136             <artifactId>spring-boot-devtools</artifactId>
137             <optional>true</optional>
138         </dependency>
139         <dependency>
140             <groupId>org.springframework.boot</groupId>
141             <artifactId>spring-boot-configuration-processor</artifactId>
142             <optional>true</optional>
143         </dependency>
144         <!-- TEST -->
145         <dependency>
146             <groupId>org.springframework.boot</groupId>
147             <artifactId>spring-boot-starter-test</artifactId>
148             <scope>test</scope>
149         </dependency>
150         <dependency>
151             <groupId>org.awaitility</groupId>
152             <artifactId>awaitility</artifactId>
153             <scope>test</scope>
154         </dependency>
155         <dependency>
156             <groupId>io.projectreactor</groupId>
157             <artifactId>reactor-test</artifactId>
158             <scope>test</scope>
159         </dependency>
160         <dependency>
161             <groupId>org.junit.jupiter</groupId>
162             <artifactId>junit-jupiter-engine</artifactId>
163             <scope>test</scope>
164         </dependency>
165         <dependency>
166             <groupId>org.mockito</groupId>
167             <artifactId>mockito-junit-jupiter</artifactId>
168             <scope>test</scope>
169         </dependency>
170         <dependency>
171             <groupId>org.mockito</groupId>
172             <artifactId>mockito-core</artifactId>
173             <scope>test</scope>
174         </dependency>
175         <dependency>
176             <groupId>com.squareup.okhttp3</groupId>
177             <artifactId>mockwebserver</artifactId>
178             <scope>test</scope>
179         </dependency>
180         <dependency>
181             <groupId>io.projectreactor.kafka</groupId>
182             <artifactId>reactor-kafka</artifactId>
183             <version>1.3.7</version>
184         </dependency>
185         <dependency>
186             <groupId>com.google.guava</groupId>
187             <artifactId>guava</artifactId>
188             <version>31.0.1-jre</version>
189         </dependency>
190     </dependencies>
191     <build>
192         <plugins>
193             <plugin>
194                 <groupId>org.springframework.boot</groupId>
195                 <artifactId>spring-boot-maven-plugin</artifactId>
196             </plugin>
197             <plugin>
198                 <groupId>net.revelc.code.formatter</groupId>
199                 <artifactId>formatter-maven-plugin</artifactId>
200                 <version>${formatter-maven-plugin.version}</version>
201                 <configuration>
202                     <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
203                 </configuration>
204                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
205                                         spotless:apply process-sources -->
206             </plugin>
207             <plugin>
208                 <groupId>com.diffplug.spotless</groupId>
209                 <artifactId>spotless-maven-plugin</artifactId>
210                 <version>${spotless-maven-plugin.version}</version>
211                 <configuration>
212                     <java>
213                         <removeUnusedImports />
214                         <importOrder>
215                             <order>com,java,javax,org</order>
216                         </importOrder>
217                     </java>
218                 </configuration>
219                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
220                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate
221                                         source files -->
222             </plugin>
223             <plugin>
224                 <groupId>org.apache.maven.plugins</groupId>
225                 <artifactId>maven-surefire-plugin</artifactId>
226                 <configuration>
227                     <skipTests>false</skipTests>
228                 </configuration>
229             </plugin>
230             <plugin>
231                 <artifactId>maven-failsafe-plugin</artifactId>
232             </plugin>
233             <plugin>
234                 <groupId>org.codehaus.mojo</groupId>
235                 <artifactId>build-helper-maven-plugin</artifactId>
236                 <executions>
237                     <execution>
238                         <id>add-source</id>
239                         <phase>generate-sources</phase>
240                         <goals>
241                             <goal>add-source</goal>
242                         </goals>
243                         <configuration>
244                             <sources>
245                                 <source>${project.build.directory}/generated-sources/annotations/</source>
246                             </sources>
247                         </configuration>
248                     </execution>
249                 </executions>
250             </plugin>
251             <plugin>
252                 <groupId>org.jacoco</groupId>
253                 <artifactId>jacoco-maven-plugin</artifactId>
254                 <version>${jacoco-maven-plugin.version}</version>
255                 <executions>
256                     <execution>
257                         <id>default-prepare-agent</id>
258                         <goals>
259                             <goal>prepare-agent</goal>
260                         </goals>
261                     </execution>
262                     <execution>
263                         <id>default-report</id>
264                         <phase>prepare-package</phase>
265                         <goals>
266                             <goal>report</goal>
267                         </goals>
268                     </execution>
269                 </executions>
270             </plugin>
271             <plugin>
272                 <groupId>io.swagger.codegen.v3</groupId>
273                 <artifactId>swagger-codegen-maven-plugin</artifactId>
274                 <version>${swagger-codegen-maven-plugin.version}</version>
275                 <executions>
276                     <execution>
277                         <phase>test</phase>
278                         <goals>
279                             <goal>generate</goal>
280                         </goals>
281                         <configuration>
282                             <inputSpec>${project.basedir}/api/api.json</inputSpec>
283                             <language>openapi-yaml</language>
284                             <output>${project.basedir}/api</output>
285                             <configOptions>
286                                 <outputFile>api.yaml</outputFile>
287                             </configOptions>
288                         </configuration>
289                     </execution>
290                 </executions>
291             </plugin>
292             <plugin>
293                 <groupId>io.fabric8</groupId>
294                 <artifactId>docker-maven-plugin</artifactId>
295                 <version>${docker-maven-plugin}</version>
296                 <inherited>false</inherited>
297                 <executions>
298                     <execution>
299                         <id>generate-dmaap-adaptor-image</id>
300                         <phase>package</phase>
301                         <goals>
302                             <goal>build</goal>
303                         </goals>
304                         <configuration>
305                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
306                             <images>
307                                 <image>
308                                     <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
309                                     <build>
310                                         <cleanup>try</cleanup>
311                                         <contextDir>${basedir}</contextDir>
312                                         <dockerFile>Dockerfile</dockerFile>
313                                         <args>
314                                             <JAR>${project.build.finalName}.jar</JAR>
315                                         </args>
316                                         <tags>
317                                             <tag>${project.version}</tag>
318                                         </tags>
319                                     </build>
320                                 </image>
321                             </images>
322                         </configuration>
323                     </execution>
324                     <execution>
325                         <id>push-dmaap-adaptor-image</id>
326                         <goals>
327                             <goal>build</goal>
328                             <goal>push</goal>
329                         </goals>
330                         <configuration>
331                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
332                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
333                             <images>
334                                 <image>
335                                     <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
336                                     <build>
337                                         <contextDir>${basedir}</contextDir>
338                                         <dockerFile>Dockerfile</dockerFile>
339                                         <args>
340                                             <JAR>${project.build.finalName}.jar</JAR>
341                                         </args>
342                                         <tags>
343                                             <tag>${project.version}</tag>
344                                             <tag>latest</tag>
345                                         </tags>
346                                     </build>
347                                 </image>
348                             </images>
349                         </configuration>
350                     </execution>
351                 </executions>
352             </plugin>
353             <!-- support sonar in multi-module project -->
354             <plugin>
355                 <groupId>org.sonarsource.scanner.maven</groupId>
356                 <artifactId>sonar-maven-plugin</artifactId>
357                 <version>${sonar-maven-plugin.version}</version>
358             </plugin>
359         </plugins>
360     </build>
361     <issueManagement>
362         <system>JIRA</system>
363         <url>https://jira.o-ran-sc.org/</url>
364     </issueManagement>
365 </project>