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