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