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