Merge "Minor bugs fix in ORU-app simulator" into e-release
[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.5.8</version>
30         <relativePath />
31     </parent>
32     <groupId>org.o-ran-sc.nonrtric</groupId>
33     <artifactId>dmaap-adaptor</artifactId>
34     <version>1.0.1-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>20211205</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         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
60         <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
61         <exec.skip>true</exec.skip>
62     </properties>
63     <dependencies>
64         <dependency>
65             <groupId>org.springdoc</groupId>
66             <artifactId>springdoc-openapi-ui</artifactId>
67             <version>1.6.3</version>
68         </dependency>
69         <dependency>
70             <groupId>org.springframework.boot</groupId>
71             <artifactId>spring-boot-starter-web</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.springframework.boot</groupId>
75             <artifactId>spring-boot-starter-thymeleaf</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>org.springframework.boot</groupId>
79             <artifactId>spring-boot-starter-webflux</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>org.springframework</groupId>
83             <artifactId>spring-webflux</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>io.swagger.core.v3</groupId>
87             <artifactId>swagger-jaxrs2</artifactId>
88             <version>${swagger.version}</version>
89         </dependency>
90         <dependency>
91             <groupId>io.swagger.core.v3</groupId>
92             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
93             <version>${swagger.version}</version>
94         </dependency>
95         <dependency>
96             <groupId>org.immutables</groupId>
97             <artifactId>value</artifactId>
98             <version>${immutable.version}</version>
99             <scope>provided</scope>
100         </dependency>
101         <dependency>
102             <groupId>org.immutables</groupId>
103             <artifactId>gson</artifactId>
104             <version>${immutable.version}</version>
105         </dependency>
106         <dependency>
107             <groupId>org.json</groupId>
108             <artifactId>json</artifactId>
109             <version>${json.version}</version>
110         </dependency>
111         <dependency>
112             <groupId>org.projectlombok</groupId>
113             <artifactId>lombok</artifactId>
114             <scope>provided</scope>
115         </dependency>
116         <!-- Actuator dependencies -->
117         <dependency>
118             <groupId>org.springframework.boot</groupId>
119             <artifactId>spring-boot-starter-actuator</artifactId>
120         </dependency>
121         <!--REQUIRED TO GENERATE DOCUMENTATION -->
122         <dependency>
123             <groupId>io.springfox</groupId>
124             <artifactId>springfox-swagger2</artifactId>
125             <version>${springfox.version}</version>
126         </dependency>
127         <dependency>
128             <groupId>io.springfox</groupId>
129             <artifactId>springfox-swagger-ui</artifactId>
130             <version>${springfox.version}</version>
131         </dependency>
132         <!-- For development help -->
133         <dependency>
134             <groupId>org.springframework.boot</groupId>
135             <artifactId>spring-boot-devtools</artifactId>
136             <optional>true</optional>
137         </dependency>
138         <dependency>
139             <groupId>org.springframework.boot</groupId>
140             <artifactId>spring-boot-configuration-processor</artifactId>
141             <optional>true</optional>
142         </dependency>
143         <!-- TEST -->
144         <dependency>
145             <groupId>org.springframework.boot</groupId>
146             <artifactId>spring-boot-starter-test</artifactId>
147             <scope>test</scope>
148         </dependency>
149         <dependency>
150             <groupId>org.awaitility</groupId>
151             <artifactId>awaitility</artifactId>
152             <scope>test</scope>
153         </dependency>
154         <dependency>
155             <groupId>io.projectreactor</groupId>
156             <artifactId>reactor-test</artifactId>
157             <scope>test</scope>
158         </dependency>
159         <dependency>
160             <groupId>org.junit.jupiter</groupId>
161             <artifactId>junit-jupiter-engine</artifactId>
162             <scope>test</scope>
163         </dependency>
164         <dependency>
165             <groupId>org.mockito</groupId>
166             <artifactId>mockito-junit-jupiter</artifactId>
167             <scope>test</scope>
168         </dependency>
169         <dependency>
170             <groupId>org.mockito</groupId>
171             <artifactId>mockito-core</artifactId>
172             <scope>test</scope>
173         </dependency>
174         <dependency>
175             <groupId>com.squareup.okhttp3</groupId>
176             <artifactId>mockwebserver</artifactId>
177             <scope>test</scope>
178         </dependency>
179         <dependency>
180             <groupId>io.projectreactor.kafka</groupId>
181             <artifactId>reactor-kafka</artifactId>
182             <version>1.3.9</version>
183         </dependency>
184         <dependency>
185             <groupId>com.google.guava</groupId>
186             <artifactId>guava</artifactId>
187             <version>31.0.1-jre</version>
188         </dependency>
189     </dependencies>
190     <build>
191         <plugins>
192             <plugin>
193                 <groupId>org.springframework.boot</groupId>
194                 <artifactId>spring-boot-maven-plugin</artifactId>
195             </plugin>
196             <plugin>
197                 <groupId>net.revelc.code.formatter</groupId>
198                 <artifactId>formatter-maven-plugin</artifactId>
199                 <version>${formatter-maven-plugin.version}</version>
200                 <configuration>
201                     <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
202                 </configuration>
203                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
204                                         spotless:apply process-sources -->
205             </plugin>
206             <plugin>
207                 <groupId>com.diffplug.spotless</groupId>
208                 <artifactId>spotless-maven-plugin</artifactId>
209                 <version>${spotless-maven-plugin.version}</version>
210                 <configuration>
211                     <java>
212                         <removeUnusedImports />
213                         <importOrder>
214                             <order>com,java,javax,org</order>
215                         </importOrder>
216                     </java>
217                 </configuration>
218                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
219                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate
220                                         source files -->
221             </plugin>
222             <plugin>
223                 <groupId>org.apache.maven.plugins</groupId>
224                 <artifactId>maven-surefire-plugin</artifactId>
225                 <configuration>
226                     <skipTests>false</skipTests>
227                 </configuration>
228             </plugin>
229             <plugin>
230                 <artifactId>maven-failsafe-plugin</artifactId>
231             </plugin>
232             <plugin>
233                 <groupId>org.codehaus.mojo</groupId>
234                 <artifactId>build-helper-maven-plugin</artifactId>
235                 <executions>
236                     <execution>
237                         <id>add-source</id>
238                         <phase>generate-sources</phase>
239                         <goals>
240                             <goal>add-source</goal>
241                         </goals>
242                         <configuration>
243                             <sources>
244                                 <source>${project.build.directory}/generated-sources/annotations/</source>
245                             </sources>
246                         </configuration>
247                     </execution>
248                 </executions>
249             </plugin>
250             <plugin>
251                 <groupId>org.jacoco</groupId>
252                 <artifactId>jacoco-maven-plugin</artifactId>
253                 <version>${jacoco-maven-plugin.version}</version>
254                 <executions>
255                     <execution>
256                         <id>default-prepare-agent</id>
257                         <goals>
258                             <goal>prepare-agent</goal>
259                         </goals>
260                     </execution>
261                     <execution>
262                         <id>default-report</id>
263                         <phase>prepare-package</phase>
264                         <goals>
265                             <goal>report</goal>
266                         </goals>
267                     </execution>
268                 </executions>
269             </plugin>
270             <plugin>
271                 <groupId>io.swagger.codegen.v3</groupId>
272                 <artifactId>swagger-codegen-maven-plugin</artifactId>
273                 <version>${swagger-codegen-maven-plugin.version}</version>
274                 <executions>
275                     <execution>
276                         <phase>test</phase>
277                         <goals>
278                             <goal>generate</goal>
279                         </goals>
280                         <configuration>
281                             <inputSpec>${project.basedir}/api/api.json</inputSpec>
282                             <language>openapi-yaml</language>
283                             <output>${project.basedir}/api</output>
284                             <configOptions>
285                                 <outputFile>api.yaml</outputFile>
286                             </configOptions>
287                         </configuration>
288                     </execution>
289                 </executions>
290             </plugin>
291             <plugin>
292                 <groupId>io.fabric8</groupId>
293                 <artifactId>docker-maven-plugin</artifactId>
294                 <version>${docker-maven-plugin}</version>
295                 <inherited>false</inherited>
296                 <executions>
297                     <execution>
298                         <id>generate-dmaap-adaptor-image</id>
299                         <phase>package</phase>
300                         <goals>
301                             <goal>build</goal>
302                         </goals>
303                         <configuration>
304                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
305                             <images>
306                                 <image>
307                                     <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
308                                     <build>
309                                         <cleanup>try</cleanup>
310                                         <contextDir>${basedir}</contextDir>
311                                         <dockerFile>Dockerfile</dockerFile>
312                                         <args>
313                                             <JAR>${project.build.finalName}.jar</JAR>
314                                         </args>
315                                         <tags>
316                                             <tag>${project.version}</tag>
317                                         </tags>
318                                     </build>
319                                 </image>
320                             </images>
321                         </configuration>
322                     </execution>
323                     <execution>
324                         <id>push-dmaap-adaptor-image</id>
325                         <goals>
326                             <goal>build</goal>
327                             <goal>push</goal>
328                         </goals>
329                         <configuration>
330                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
331                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
332                             <images>
333                                 <image>
334                                     <name>o-ran-sc/nonrtric-dmaap-adaptor:${project.version}</name>
335                                     <build>
336                                         <contextDir>${basedir}</contextDir>
337                                         <dockerFile>Dockerfile</dockerFile>
338                                         <args>
339                                             <JAR>${project.build.finalName}.jar</JAR>
340                                         </args>
341                                         <tags>
342                                             <tag>${project.version}</tag>
343                                             <tag>latest</tag>
344                                         </tags>
345                                     </build>
346                                 </image>
347                             </images>
348                         </configuration>
349                     </execution>
350                 </executions>
351             </plugin>
352             <!-- support sonar in multi-module project -->
353             <plugin>
354                 <groupId>org.sonarsource.scanner.maven</groupId>
355                 <artifactId>sonar-maven-plugin</artifactId>
356                 <version>${sonar-maven-plugin.version}</version>
357             </plugin>
358         </plugins>
359     </build>
360     <issueManagement>
361         <system>JIRA</system>
362         <url>https://jira.o-ran-sc.org/</url>
363     </issueManagement>
364 </project>