Release notes & Roll version after i-release 1.1.0 -> 1.1.1
[nonrtric/plt/ranpm.git] / datafilecollector / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ ============LICENSE_START=======================================================
4   ~ Copyright (C) 2023 Nordix Foundation. All rights reserved.
5   ~ Copyright (C) 2023 OpenInfra Foundation Europe. All rights reserved.
6   ~ ================================================================================
7   ~ Licensed under the Apache License, Version 2.0 (the "License");
8   ~ you may not use this file except in compliance with the License.
9   ~ You may obtain a copy of the License at
10   ~
11   ~ http://www.apache.org/licenses/LICENSE-2.0
12   ~
13   ~ Unless required by applicable law or agreed to in writing, software
14   ~ distributed under the License is distributed on an "AS IS" BASIS,
15   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   ~ See the License for the specific language governing permissions and
17   ~ limitations under the License.
18   ~ ============LICENSE_END=========================================================
19   -->
20 <project xmlns="http://maven.apache.org/POM/4.0.0"
21     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
23     <modelVersion>4.0.0</modelVersion>
24     <parent>
25         <groupId>org.springframework.boot</groupId>
26         <artifactId>spring-boot-starter-parent</artifactId>
27         <version>3.0.4</version>
28     </parent>
29     <groupId>org.o-ran-sc.nonrtric.plt.ranpm</groupId>
30     <artifactId>datafile-collector</artifactId>
31     <version>1.1.1-SNAPSHOT</version>
32     <packaging>jar</packaging>
33     <name>NONRTRIC RAN PM Data File Collector</name>
34     <description>File Collector for collecting RAN PM files from RAN functions (O-RAN SC NONRTRIC)</description>
35     <properties>
36         <java.version>17</java.version>
37         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
38         <gson.version>2.9.1</gson.version>
39         <docker-maven-plugin>0.30.0</docker-maven-plugin>
40         <jacoco-maven-plugin.version>0.8.10</jacoco-maven-plugin.version>
41         <springdoc.version>2.0.2</springdoc.version>
42         <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version>
43         <exec.skip>true</exec.skip>
44
45         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
46
47     </properties>
48     <dependencies>
49         <dependency>
50             <groupId>org.springdoc</groupId>
51             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
52             <version>${springdoc.version}</version>
53         </dependency>
54         <dependency>
55             <groupId>org.springdoc</groupId>
56             <artifactId>springdoc-openapi-ui</artifactId>
57             <version>${springdoc.openapi-ui.version}</version>
58         </dependency>
59         <dependency>
60             <groupId>com.google.code.gson</groupId>
61             <artifactId>gson</artifactId>
62             <version>${gson.version}</version>
63         </dependency>
64         <dependency>
65             <groupId>io.projectreactor.kafka</groupId>
66             <artifactId>reactor-kafka</artifactId>
67             <version>1.3.9</version>
68         </dependency>
69         <dependency>
70             <groupId>org.projectlombok</groupId>
71             <artifactId>lombok</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.awaitility</groupId>
75             <artifactId>awaitility</artifactId>
76             <scope>test</scope>
77         </dependency>
78         <dependency>
79             <groupId>org.apache.httpcomponents</groupId>
80             <artifactId>httpasyncclient</artifactId>
81         </dependency>
82         <dependency>
83             <groupId>org.springframework.boot</groupId>
84             <artifactId>spring-boot-configuration-processor</artifactId>
85             <optional>true</optional>
86         </dependency>
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework</groupId>
93             <artifactId>spring-web</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.springframework</groupId>
97             <artifactId>spring-webmvc</artifactId>
98         </dependency>
99         <dependency>
100             <groupId>org.springframework</groupId>
101             <artifactId>spring-webflux</artifactId>
102         </dependency>
103         <dependency>
104             <groupId>org.springframework.boot</groupId>
105             <artifactId>spring-boot-autoconfigure</artifactId>
106         </dependency>
107         <dependency>
108             <groupId>org.apache.httpcomponents.core5</groupId>
109             <artifactId>httpcore5</artifactId>
110         </dependency>
111         <!-- Actuator dependencies -->
112         <dependency>
113             <groupId>org.springframework.boot</groupId>
114             <artifactId>spring-boot-starter-actuator</artifactId>
115         </dependency>
116         <dependency>
117             <groupId>software.amazon.awssdk</groupId>
118             <artifactId>s3</artifactId>
119             <version>2.17.292</version>
120         </dependency>
121         <!--TESTS
122         DEPENDENCIES -->
123         <dependency>
124             <groupId>io.projectreactor</groupId>
125             <artifactId>reactor-test</artifactId>
126             <scope>test</scope>
127         </dependency>
128         <dependency>
129             <groupId>org.junit.jupiter</groupId>
130             <artifactId>junit-jupiter-engine</artifactId>
131             <scope>test</scope>
132         </dependency>
133         <dependency>
134             <groupId>org.springframework.boot</groupId>
135             <artifactId>spring-boot-starter-test</artifactId>
136             <scope>test</scope>
137         </dependency>
138         <dependency>
139             <groupId>org.mockito</groupId>
140             <artifactId>mockito-junit-jupiter</artifactId>
141             <scope>test</scope>
142         </dependency>
143         <dependency>
144             <groupId>org.mockito</groupId>
145             <artifactId>mockito-inline</artifactId>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>commons-net</groupId>
150             <artifactId>commons-net</artifactId>
151             <version>3.9.0</version>
152         </dependency>
153         <dependency>
154             <groupId>com.jcraft</groupId>
155             <artifactId>jsch</artifactId>
156             <version>0.1.55</version>
157         </dependency>
158         <dependency>
159             <groupId>io.projectreactor.netty</groupId>
160             <artifactId>reactor-netty</artifactId>
161             <version>1.0.22</version>
162         </dependency>
163     </dependencies>
164     <build>
165         <plugins>
166             <plugin>
167                 <groupId>org.springframework.boot</groupId>
168                 <artifactId>spring-boot-maven-plugin</artifactId>
169                 <configuration>
170                     <finalName>${project.artifactId}</finalName>
171                     <mainClass>org.oran.datafile.MainApp</mainClass>
172                 </configuration>
173                 <executions>
174                     <execution>
175                         <goals>
176                             <goal>build-info</goal>
177                         </goals>
178                     </execution>
179                 </executions>
180             </plugin>
181             <plugin>
182                 <groupId>io.fabric8</groupId>
183                 <artifactId>docker-maven-plugin</artifactId>
184                 <version>${docker-maven-plugin}</version>
185                 <inherited>false</inherited>
186                 <executions>
187                     <execution>
188                         <id>generate-image</id>
189                         <phase>package</phase>
190                         <goals>
191                             <goal>build</goal>
192                         </goals>
193                         <configuration>
194                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
195                             <images>
196                                 <image>
197                                     <name>
198                                         o-ran-sc/nonrtric-plt-ranpm-datafilecollector:${project.version}</name>
199                                     <build>
200                                         <cleanup>try</cleanup>
201                                         <contextDir>${basedir}</contextDir>
202                                         <dockerFile>Dockerfile</dockerFile>
203                                         <args>
204                                             <JAR>${project.build.finalName}.jar</JAR>
205                                         </args>
206                                         <tags>
207                                             <tag>${project.version}</tag>
208                                         </tags>
209                                     </build>
210                                 </image>
211                             </images>
212                         </configuration>
213                     </execution>
214                     <execution>
215                         <id>push-image</id>
216                         <goals>
217                             <goal>build</goal>
218                             <goal>push</goal>
219                         </goals>
220                         <configuration>
221                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
222                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
223                             <images>
224                                 <image>
225                                     <name>
226                                         o-ran-sc/nonrtric-plt-ranpm-datafilecollector:${project.version}</name>
227                                     <build>
228                                         <contextDir>${basedir}</contextDir>
229                                         <dockerFile>Dockerfile</dockerFile>
230                                         <args>
231                                             <JAR>${project.build.finalName}.jar</JAR>
232                                         </args>
233                                         <tags>
234                                             <tag>${project.version}</tag>
235                                             <tag>latest</tag>
236                                         </tags>
237                                     </build>
238                                 </image>
239                             </images>
240                         </configuration>
241                     </execution>
242                 </executions>
243             </plugin>
244             <plugin>
245                 <groupId>com.diffplug.spotless</groupId>
246                 <artifactId>spotless-maven-plugin</artifactId>
247                 <version>1.18.0</version>
248                 <configuration>
249                     <java>
250                         <removeUnusedImports />
251                         <importOrder>
252                             <order>com,java,javax,org</order>
253                         </importOrder>
254                     </java>
255                 </configuration>
256                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
257                             mvn spotless:apply to rewrite source files use mvn spotless:check to validate
258                             source files -->
259             </plugin>
260             <plugin>
261                 <groupId>net.revelc.code.formatter</groupId>
262                 <artifactId>formatter-maven-plugin</artifactId>
263                 <version>2.8.1</version>
264                 <configuration>
265                     <configFile>${project.basedir}/onap-java-formatter.xml</configFile>
266                 </configuration>
267                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
268                           to rewrite source files use mvn formatter:validate to validate source files -->
269             </plugin>
270             <plugin>
271                 <groupId>org.jacoco</groupId>
272                 <artifactId>jacoco-maven-plugin</artifactId>
273                 <version>${jacoco-maven-plugin.version}</version>
274                 <executions>
275                     <execution>
276                         <id>default-prepare-agent</id>
277                         <goals>
278                             <goal>prepare-agent</goal>
279                         </goals>
280                     </execution>
281                     <execution>
282                         <id>default-report</id>
283                         <phase>prepare-package</phase>
284                         <goals>
285                             <goal>report</goal>
286                         </goals>
287                     </execution>
288                 </executions>
289             </plugin>
290             <plugin>
291                 <groupId>org.sonarsource.scanner.maven</groupId>
292                 <artifactId>sonar-maven-plugin</artifactId>
293                 <version>${sonar-maven-plugin.version}</version>
294             </plugin>
295         </plugins>
296     </build>
297 </project>