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