Release notes & Roll version after i-release 1.1.0 -> 1.1.1
[nonrtric/plt/ranpm.git] / pmproducer / 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.0.4</version>
31         <relativePath />
32     </parent>
33     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
34     <artifactId>pmproducer</artifactId>
35     <version>1.1.1-SNAPSHOT</version>
36     <name>NONRTRIC RAN PM Producer</name>
37     <description>Filtering and distribution of PM data to rApps subscribers (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>20211205</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         <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
59         <docker-maven-plugin>0.30.0</docker-maven-plugin>
60         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
61         <jacoco-maven-plugin.version>0.8.10</jacoco-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>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>com.github.erosb</groupId>
123             <artifactId>everit-json-schema</artifactId>
124             <version>1.12.1</version>
125             <scope>test</scope>
126         </dependency>
127         <dependency>
128             <groupId>com.schibsted.spt.data</groupId>
129             <artifactId>jslt</artifactId>
130             <version>0.1.11</version>
131         </dependency>
132         <dependency>
133             <groupId>com.jayway.jsonpath</groupId>
134             <artifactId>json-path</artifactId>
135             <version>2.7.0</version>
136         </dependency>
137         <dependency>
138             <groupId>org.springframework.boot</groupId>
139             <artifactId>spring-boot-starter-test</artifactId>
140             <scope>test</scope>
141         </dependency>
142         <dependency>
143             <groupId>org.awaitility</groupId>
144             <artifactId>awaitility</artifactId>
145             <scope>test</scope>
146         </dependency>
147         <dependency>
148             <groupId>io.projectreactor</groupId>
149             <artifactId>reactor-test</artifactId>
150             <scope>test</scope>
151         </dependency>
152         <dependency>
153             <groupId>org.junit.jupiter</groupId>
154             <artifactId>junit-jupiter-engine</artifactId>
155             <scope>test</scope>
156         </dependency>
157         <dependency>
158             <groupId>org.mockito</groupId>
159             <artifactId>mockito-junit-jupiter</artifactId>
160             <scope>test</scope>
161         </dependency>
162         <dependency>
163             <groupId>org.mockito</groupId>
164             <artifactId>mockito-core</artifactId>
165             <scope>test</scope>
166         </dependency>
167         <dependency>
168             <groupId>org.mockito</groupId>
169             <artifactId>mockito-inline</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>31.0.1-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.swagger.codegen.v3</groupId>
270                 <artifactId>swagger-codegen-maven-plugin</artifactId>
271                 <version>${swagger-codegen-maven-plugin.version}</version>
272                 <executions>
273                     <execution>
274                         <phase>test</phase>
275                         <goals>
276                             <goal>generate</goal>
277                         </goals>
278                         <configuration>
279                             <inputSpec>${project.basedir}/api/api.json</inputSpec>
280                             <language>openapi-yaml</language>
281                             <output>${project.basedir}/api</output>
282                             <configOptions>
283                                 <outputFile>api.yaml</outputFile>
284                             </configOptions>
285                         </configuration>
286                     </execution>
287                 </executions>
288             </plugin>
289             <plugin>
290                 <groupId>io.fabric8</groupId>
291                 <artifactId>docker-maven-plugin</artifactId>
292                 <version>${docker-maven-plugin}</version>
293                 <inherited>false</inherited>
294                 <executions>
295                     <execution>
296                         <id>generate-nonrtric-plt-pmproducer-image</id>
297                         <phase>package</phase>
298                         <goals>
299                             <goal>build</goal>
300                         </goals>
301                         <configuration>
302                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
303                             <images>
304                                 <image>
305                                     <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
306                                     <build>
307                                         <cleanup>try</cleanup>
308                                         <contextDir>${basedir}</contextDir>
309                                         <dockerFile>Dockerfile</dockerFile>
310                                         <args>
311                                             <JAR>${project.build.finalName}.jar</JAR>
312                                         </args>
313                                         <tags>
314                                             <tag>${project.version}</tag>
315                                         </tags>
316                                     </build>
317                                 </image>
318                             </images>
319                         </configuration>
320                     </execution>
321                     <execution>
322                         <id>push-nonrtric-plt-pmproducer-image</id>
323                         <goals>
324                             <goal>build</goal>
325                             <goal>push</goal>
326                         </goals>
327                         <configuration>
328                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
329                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
330                             <images>
331                                 <image>
332                                     <name>o-ran-sc/nonrtric-plt-pmproducer:${project.version}</name>
333                                     <build>
334                                         <contextDir>${basedir}</contextDir>
335                                         <dockerFile>Dockerfile</dockerFile>
336                                         <args>
337                                             <JAR>${project.build.finalName}.jar</JAR>
338                                         </args>
339                                         <tags>
340                                             <tag>${project.version}</tag>
341                                             <tag>latest</tag>
342                                         </tags>
343                                     </build>
344                                 </image>
345                             </images>
346                         </configuration>
347                     </execution>
348                 </executions>
349             </plugin>
350             <!-- support sonar in multi-module project -->
351             <plugin>
352                 <groupId>org.sonarsource.scanner.maven</groupId>
353                 <artifactId>sonar-maven-plugin</artifactId>
354                 <version>${sonar-maven-plugin.version}</version>
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>