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