Release notes & Roll version after i-release 2.7.0 -> 2.8.0
[nonrtric/plt/a1policymanagementservice.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 * ========================LICENSE_START=================================
4 * O-RAN-SC
5 * %%
6 * Copyright (C) 2019-2023: Nordix Foundation
7 * Copyright (C) 2023: OpenInfra Foundation Europe
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.2.0</version>
31         <relativePath />
32     </parent>
33     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
34     <artifactId>a1policymanagementservice</artifactId>
35     <version>2.8.0-SNAPSHOT</version>
36     <licenses>
37         <license>
38             <name>The Apache Software License, Version 2.0</name>
39             <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
40         </license>
41     </licenses>
42     <repositories>
43         <repository>
44             <id>onap-releases</id>
45             <name>onap-releases</name>
46             <url>https://nexus.onap.org/content/repositories/releases/</url>
47         </repository>
48     </repositories>
49     <properties>
50         <java.version>17</java.version>
51         <json.version>20231013</json.version>
52         <maven-compiler-plugin.version>3.10.0</maven-compiler-plugin.version>
53         <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
54         <spotless-maven-plugin.version>2.30.0</spotless-maven-plugin.version>
55         <docker-maven-plugin>0.43.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         <exec-maven-plugin.version>3.1.0</exec-maven-plugin.version>
59         <software.amazon.awssdk.version>2.19.17</software.amazon.awssdk.version>
60         <springdoc.version>2.0.2</springdoc.version>
61         <springdoc.openapi-ui.version>1.6.14</springdoc.openapi-ui.version>
62         <surefire-maven-plugin.version>3.0.0-M8</surefire-maven-plugin.version>
63         <surefire-report-plugin.version>3.0.0-M8</surefire-report-plugin.version>
64     </properties>
65     <dependencies>    
66         <dependency>
67             <groupId>commons-io</groupId>
68             <artifactId>commons-io</artifactId>
69             <version>2.14.0</version>
70         </dependency>
71         <dependency>
72             <groupId>com.google.guava</groupId>
73             <artifactId>guava</artifactId>
74             <version>32.0.1-jre</version>
75         </dependency>
76         <dependency>
77             <groupId>org.springframework.boot</groupId>
78             <artifactId>spring-boot-starter-web</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>org.springframework.boot</groupId>
82             <artifactId>spring-boot-starter-thymeleaf</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>org.springframework.boot</groupId>
86             <artifactId>spring-boot-starter-webflux</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>org.springframework.boot</groupId>
90             <artifactId>spring-boot-starter-aop</artifactId>
91         </dependency>
92         <dependency>
93             <groupId>org.springframework.boot</groupId>
94             <artifactId>spring-boot-devtools</artifactId>
95             <optional>true</optional>
96         </dependency>
97         <dependency>
98             <groupId>org.springframework.boot</groupId>
99             <artifactId>spring-boot-starter-validation</artifactId>
100         </dependency>
101         <dependency>
102             <groupId>org.springframework</groupId>
103             <artifactId>spring-webflux</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>com.google.code.gson</groupId>
107             <artifactId>gson</artifactId>
108             <version>${gson.version}</version>
109         </dependency>
110         <dependency>
111             <groupId>org.json</groupId>
112             <artifactId>json</artifactId>
113             <version>${json.version}</version>
114         </dependency>
115         <dependency>
116             <groupId>org.springframework.boot</groupId>
117             <artifactId>spring-boot-configuration-processor</artifactId>
118             <optional>true</optional>
119         </dependency>
120         <dependency>
121             <groupId>org.projectlombok</groupId>
122             <artifactId>lombok</artifactId>
123             <scope>provided</scope>
124         </dependency>
125         <dependency>
126             <groupId>org.glassfish.jersey.inject</groupId>
127             <artifactId>jersey-hk2</artifactId>
128         </dependency>
129         <!-- Actuator dependencies -->
130         <dependency>
131             <groupId>org.springframework.boot</groupId>
132             <artifactId>spring-boot-starter-actuator</artifactId>
133         </dependency>
134         <!--REQUIRED
135         TO GENERATE DOCUMENTATION -->
136         <dependency>
137             <groupId>org.springdoc</groupId>
138             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
139             <version>${springdoc.version}</version>
140         </dependency>
141         <dependency>
142             <groupId>org.springdoc</groupId>
143             <artifactId>springdoc-openapi-ui</artifactId>
144             <version>${springdoc.openapi-ui.version}</version>
145         </dependency>
146         <!-- TEST -->
147         <dependency>
148             <groupId>org.springframework.boot</groupId>
149             <artifactId>spring-boot-starter-test</artifactId>
150             <scope>test</scope>
151         </dependency>
152         <dependency>
153             <groupId>org.awaitility</groupId>
154             <artifactId>awaitility</artifactId>
155             <scope>test</scope>
156         </dependency>
157         <dependency>
158             <groupId>io.projectreactor</groupId>
159             <artifactId>reactor-test</artifactId>
160             <scope>test</scope>
161         </dependency>
162         <dependency>
163             <groupId>org.junit.jupiter</groupId>
164             <artifactId>junit-jupiter-engine</artifactId>
165             <scope>test</scope>
166         </dependency>
167         <dependency>
168             <groupId>org.mockito</groupId>
169             <artifactId>mockito-junit-jupiter</artifactId>
170             <scope>test</scope>
171         </dependency>
172         <dependency>
173             <groupId>org.mockito</groupId>
174             <artifactId>mockito-core</artifactId>
175             <scope>test</scope>
176         </dependency>
177         <dependency>
178             <groupId>com.squareup.okhttp3</groupId>
179             <artifactId>mockwebserver</artifactId>
180             <scope>test</scope>
181         </dependency>
182         <dependency>
183             <groupId>com.github.erosb</groupId>
184             <artifactId>everit-json-schema</artifactId>
185             <version>1.14.1</version>
186         </dependency>
187         <dependency>
188             <groupId>software.amazon.awssdk</groupId>
189             <artifactId>s3</artifactId>
190             <version>${software.amazon.awssdk.version}</version>
191         </dependency>
192         <dependency>
193             <groupId>io.micrometer</groupId>
194             <artifactId>micrometer-registry-prometheus</artifactId>
195         </dependency>
196     </dependencies>
197     <build>
198         <plugins>
199             <plugin>
200                 <groupId>org.springframework.boot</groupId>
201                 <artifactId>spring-boot-maven-plugin</artifactId>
202             </plugin>
203             <plugin>
204                 <groupId>org.apache.maven.plugins</groupId>
205                 <artifactId>maven-surefire-plugin</artifactId>
206                 <version>${surefire-maven-plugin.version}</version>
207                 <configuration>
208                     <skipTests>false</skipTests>
209                 </configuration>
210             </plugin>
211             <plugin>
212                 <artifactId>maven-failsafe-plugin</artifactId>
213             </plugin>
214             <plugin>
215                 <groupId>org.codehaus.mojo</groupId>
216                 <artifactId>build-helper-maven-plugin</artifactId>
217                 <executions>
218                     <execution>
219                         <id>add-source</id>
220                         <phase>generate-sources</phase>
221                         <goals>
222                             <goal>add-source</goal>
223                         </goals>
224                         <configuration>
225                             <sources>
226                                 <source>${project.build.directory}/generated-sources/annotations/</source>
227                             </sources>
228                         </configuration>
229                     </execution>
230                 </executions>
231             </plugin>
232             <plugin>
233                 <groupId>org.jacoco</groupId>
234                 <artifactId>jacoco-maven-plugin</artifactId>
235                 <version>${jacoco-maven-plugin.version}</version>
236                 <executions>
237                     <execution>
238                         <id>default-prepare-agent</id>
239                         <goals>
240                             <goal>prepare-agent</goal>
241                         </goals>
242                     </execution>
243                     <execution>
244                         <id>default-report</id>
245                         <phase>prepare-package</phase>
246                         <goals>
247                             <goal>report</goal>
248                         </goals>
249                     </execution>
250                 </executions>
251             </plugin>
252             <plugin>
253                 <groupId>io.fabric8</groupId>
254                 <artifactId>docker-maven-plugin</artifactId>
255                 <version>${docker-maven-plugin}</version>
256                 <inherited>false</inherited>
257                 <executions>
258                     <execution>
259                         <id>generate-a1policymanagementservice-image</id>
260                         <phase>package</phase>
261                         <goals>
262                             <goal>build</goal>
263                         </goals>
264                         <configuration>
265                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
266                             <images>
267                                 <image>
268                                     <name>
269                                         o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
270                                     <build>
271                                         <cleanup>try</cleanup>
272                                         <contextDir>${basedir}</contextDir>
273                                         <dockerFile>Dockerfile</dockerFile>
274                                         <filter>false</filter>
275                                         <args>
276                                             <JAR>${project.build.finalName}.jar</JAR>
277                                         </args>
278                                         <tags>
279                                             <tag>${project.version}</tag>
280                                         </tags>
281                                     </build>
282                                 </image>
283                             </images>
284                         </configuration>
285                     </execution>
286                     <execution>
287                         <id>push-a1policymanagementservice-image</id>
288                         <goals>
289                             <goal>build</goal>
290                             <goal>push</goal>
291                         </goals>
292                         <configuration>
293                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
294                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
295                             <images>
296                                 <image>
297                                     <name>
298                                         o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
299                                     <build>
300                                         <contextDir>${basedir}</contextDir>
301                                         <dockerFile>Dockerfile</dockerFile>
302                                         <filter>false</filter>
303                                         <args>
304                                             <JAR>${project.build.finalName}.jar</JAR>
305                                         </args>
306                                         <tags>
307                                             <tag>${project.version}</tag>
308                                             <tag>latest</tag>
309                                         </tags>
310                                     </build>
311                                 </image>
312                             </images>
313                         </configuration>
314                     </execution>
315                 </executions>
316             </plugin>
317             <!-- support sonar in multi-module project -->
318             <plugin>
319                 <groupId>org.sonarsource.scanner.maven</groupId>
320                 <artifactId>sonar-maven-plugin</artifactId>
321                 <version>${sonar-maven-plugin.version}</version>
322             </plugin>
323             <plugin>
324                 <groupId>org.codehaus.mojo</groupId>
325                 <artifactId>exec-maven-plugin</artifactId>
326                 <version>${exec-maven-plugin.version}</version>
327                 <executions>
328                     <execution>
329                         <id>git submodule update</id>
330                         <phase>initialize</phase>
331                         <configuration>
332                             <executable>git</executable>
333                             <arguments>
334                                 <argument>submodule</argument>
335                                 <argument>update</argument>
336                                 <argument>--init</argument>
337                                 <argument>--recursive</argument>
338                             </arguments>
339                         </configuration>
340                         <goals>
341                             <goal>exec</goal>
342                         </goals>
343                     </execution>
344                     <execution>
345                         <id>copy configuration</id>
346                         <phase>initialize</phase>
347                         <configuration>
348                             <executable>cp</executable>
349                             <arguments>
350                                 <argument>-r</argument>
351                                 <argument>onap/oran/a1-policy-management/config</argument>
352                                 <argument>.</argument>
353                             </arguments>
354                         </configuration>
355                         <goals>
356                             <goal>exec</goal>
357                         </goals>
358                     </execution>
359                 </executions>
360             </plugin>
361         </plugins>
362     </build>
363     <issueManagement>
364         <system>JIRA</system>
365         <url>https://jira.o-ran-sc.org/</url>
366     </issueManagement>
367     <reporting>
368         <plugins>
369             <plugin>
370                 <groupId>org.apache.maven.plugins</groupId>
371                 <artifactId>maven-surefire-report-plugin</artifactId>
372                 <version>${surefire-report-plugin.version}</version>
373             </plugin>
374         </plugins>
375     </reporting>
376 </project>