Step version on master after release
[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 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>2.6.8</version>
30         <relativePath />
31     </parent>
32     <groupId>org.o-ran-sc.nonrtric.plt</groupId>
33     <artifactId>a1policymanagementservice</artifactId>
34     <version>2.5.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>11</java.version>
50         <springfox.version>3.0.0</springfox.version>
51         <gson.version>2.9.0</gson.version>
52         <swagger.version>2.1.13</swagger.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.18.0</spotless-maven-plugin.version>
57         <docker-maven-plugin>0.30.0</docker-maven-plugin>
58         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
59         <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
60         <jacoco-maven-plugin.version>0.8.5</jacoco-maven-plugin.version>
61         <exec-maven-plugin.version>3.0.0</exec-maven-plugin.version>
62     </properties>
63     <dependencies>
64         <dependency>
65             <groupId>commons-io</groupId>
66             <artifactId>commons-io</artifactId>
67             <version>2.11.0</version>
68         </dependency>
69         <dependency>
70             <groupId>com.google.guava</groupId>
71             <artifactId>guava</artifactId>
72             <version>31.0.1-jre</version>
73         </dependency>
74         <dependency>
75             <groupId>org.springdoc</groupId>
76             <artifactId>springdoc-openapi-ui</artifactId>
77             <version>1.6.6</version>
78         </dependency>
79         <dependency>
80             <groupId>org.springframework.boot</groupId>
81             <artifactId>spring-boot-starter-web</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>org.springframework.boot</groupId>
85             <artifactId>spring-boot-starter-thymeleaf</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>org.springframework.boot</groupId>
89             <artifactId>spring-boot-starter-webflux</artifactId>
90         </dependency>
91         <dependency>
92             <groupId>org.springframework.boot</groupId>
93             <artifactId>spring-boot-starter-aop</artifactId>
94         </dependency>
95         <dependency>
96             <groupId>org.springframework.boot</groupId>
97             <artifactId>spring-boot-devtools</artifactId>
98             <optional>true</optional>
99         </dependency>
100         <dependency>
101             <groupId>org.springframework</groupId>
102             <artifactId>spring-webflux</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>io.swagger.core.v3</groupId>
106             <artifactId>swagger-jaxrs2</artifactId>
107             <version>${swagger.version}</version>
108         </dependency>
109         <dependency>
110             <groupId>io.swagger.core.v3</groupId>
111             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
112             <version>${swagger.version}</version>
113         </dependency>
114         <dependency>
115             <groupId>javax.xml.bind</groupId>
116             <artifactId>jaxb-api</artifactId>
117         </dependency>
118         <dependency>
119             <groupId>com.google.code.gson</groupId>
120             <artifactId>gson</artifactId>
121             <version>${gson.version}</version>
122         </dependency>
123         <dependency>
124             <groupId>org.json</groupId>
125             <artifactId>json</artifactId>
126             <version>${json.version}</version>
127         </dependency>
128         <dependency>
129             <groupId>org.springframework.boot</groupId>
130             <artifactId>spring-boot-configuration-processor</artifactId>
131             <optional>true</optional>
132         </dependency>
133         <dependency>
134             <groupId>org.projectlombok</groupId>
135             <artifactId>lombok</artifactId>
136             <scope>provided</scope>
137         </dependency>
138         <dependency>
139             <groupId>javax.ws.rs</groupId>
140             <artifactId>javax.ws.rs-api</artifactId>
141             <version>${javax.ws.rs-api.version}</version>
142         </dependency>
143         <dependency>
144             <groupId>org.glassfish.jersey.inject</groupId>
145             <artifactId>jersey-hk2</artifactId>
146         </dependency>
147         <!-- Actuator dependencies -->
148         <dependency>
149             <groupId>org.springframework.boot</groupId>
150             <artifactId>spring-boot-starter-actuator</artifactId>
151         </dependency>
152         <!--REQUIRED TO GENERATE DOCUMENTATION -->
153         <dependency>
154             <groupId>io.springfox</groupId>
155             <artifactId>springfox-swagger2</artifactId>
156             <version>${springfox.version}</version>
157         </dependency>
158         <dependency>
159             <groupId>io.springfox</groupId>
160             <artifactId>springfox-swagger-ui</artifactId>
161             <version>${springfox.version}</version>
162         </dependency>
163         <!-- TEST -->
164         <dependency>
165             <groupId>org.springframework.boot</groupId>
166             <artifactId>spring-boot-starter-test</artifactId>
167             <scope>test</scope>
168         </dependency>
169         <dependency>
170             <groupId>org.awaitility</groupId>
171             <artifactId>awaitility</artifactId>
172             <scope>test</scope>
173         </dependency>
174         <dependency>
175             <groupId>io.projectreactor</groupId>
176             <artifactId>reactor-test</artifactId>
177             <scope>test</scope>
178         </dependency>
179         <dependency>
180             <groupId>org.junit.jupiter</groupId>
181             <artifactId>junit-jupiter-engine</artifactId>
182             <scope>test</scope>
183         </dependency>
184         <dependency>
185             <groupId>org.mockito</groupId>
186             <artifactId>mockito-junit-jupiter</artifactId>
187             <scope>test</scope>
188         </dependency>
189         <dependency>
190             <groupId>org.mockito</groupId>
191             <artifactId>mockito-core</artifactId>
192             <scope>test</scope>
193         </dependency>
194         <dependency>
195             <groupId>com.squareup.okhttp3</groupId>
196             <artifactId>mockwebserver</artifactId>
197             <scope>test</scope>
198         </dependency>
199         <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
200         <dependency>
201             <groupId>com.github.erosb</groupId>
202             <artifactId>everit-json-schema</artifactId>
203             <version>1.13.0</version>
204         </dependency>
205     </dependencies>
206     <build>
207         <plugins>
208             <plugin>
209                 <groupId>org.springframework.boot</groupId>
210                 <artifactId>spring-boot-maven-plugin</artifactId>
211             </plugin>
212             <plugin>
213                 <groupId>org.apache.maven.plugins</groupId>
214                 <artifactId>maven-surefire-plugin</artifactId>
215                 <configuration>
216                     <skipTests>false</skipTests>
217                 </configuration>
218             </plugin>
219             <plugin>
220                 <artifactId>maven-failsafe-plugin</artifactId>
221             </plugin>
222             <plugin>
223                 <groupId>org.codehaus.mojo</groupId>
224                 <artifactId>build-helper-maven-plugin</artifactId>
225                 <executions>
226                     <execution>
227                         <id>add-source</id>
228                         <phase>generate-sources</phase>
229                         <goals>
230                             <goal>add-source</goal>
231                         </goals>
232                         <configuration>
233                             <sources>
234                                 <source>${project.build.directory}/generated-sources/annotations/</source>
235                             </sources>
236                         </configuration>
237                     </execution>
238                 </executions>
239             </plugin>
240             <plugin>
241                 <groupId>org.jacoco</groupId>
242                 <artifactId>jacoco-maven-plugin</artifactId>
243                 <version>${jacoco-maven-plugin.version}</version>
244                 <executions>
245                     <execution>
246                         <id>default-prepare-agent</id>
247                         <goals>
248                             <goal>prepare-agent</goal>
249                         </goals>
250                     </execution>
251                     <execution>
252                         <id>default-report</id>
253                         <phase>prepare-package</phase>
254                         <goals>
255                             <goal>report</goal>
256                         </goals>
257                     </execution>
258                 </executions>
259             </plugin>
260             <plugin>
261                 <groupId>io.fabric8</groupId>
262                 <artifactId>docker-maven-plugin</artifactId>
263                 <version>${docker-maven-plugin}</version>
264                 <inherited>false</inherited>
265                 <executions>
266                     <execution>
267                         <id>generate-a1policymanagementservice-image</id>
268                         <phase>package</phase>
269                         <goals>
270                             <goal>build</goal>
271                         </goals>
272                         <configuration>
273                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
274                             <images>
275                                 <image>
276                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
277                                     <build>
278                                         <cleanup>try</cleanup>
279                                         <contextDir>${basedir}</contextDir>
280                                         <dockerFile>Dockerfile</dockerFile>
281                                         <args>
282                                             <JAR>${project.build.finalName}.jar</JAR>
283                                         </args>
284                                         <tags>
285                                             <tag>${project.version}</tag>
286                                         </tags>
287                                     </build>
288                                 </image>
289                             </images>
290                         </configuration>
291                     </execution>
292                     <execution>
293                         <id>push-a1policymanagementservice-image</id>
294                         <goals>
295                             <goal>build</goal>
296                             <goal>push</goal>
297                         </goals>
298                         <configuration>
299                             <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
300                             <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
301                             <images>
302                                 <image>
303                                     <name>o-ran-sc/nonrtric-plt-a1policymanagementservice:${project.version}</name>
304                                     <build>
305                                         <contextDir>${basedir}</contextDir>
306                                         <dockerFile>Dockerfile</dockerFile>
307                                         <args>
308                                             <JAR>${project.build.finalName}.jar</JAR>
309                                         </args>
310                                         <tags>
311                                             <tag>${project.version}</tag>
312                                             <tag>latest</tag>
313                                         </tags>
314                                     </build>
315                                 </image>
316                             </images>
317                         </configuration>
318                     </execution>
319                 </executions>
320             </plugin>
321             <!-- support sonar in multi-module project -->
322             <plugin>
323                 <groupId>org.sonarsource.scanner.maven</groupId>
324                 <artifactId>sonar-maven-plugin</artifactId>
325                 <version>${sonar-maven-plugin.version}</version>
326             </plugin>
327             <plugin>
328                 <groupId>org.codehaus.mojo</groupId>
329                 <artifactId>exec-maven-plugin</artifactId>
330                 <version>${exec-maven-plugin.version}</version>
331                 <executions>
332                     <execution>
333                         <id>git submodule update</id>
334                         <phase>initialize</phase>
335                         <configuration>
336                             <executable>git</executable>
337                             <arguments>
338                                 <argument>submodule</argument>
339                                 <argument>update</argument>
340                                 <argument>--init</argument>
341                                 <argument>--recursive</argument>
342                             </arguments>
343                         </configuration>
344                         <goals>
345                             <goal>exec</goal>
346                         </goals>
347                     </execution>
348                     <execution>
349                         <id>copy configuration</id>
350                         <phase>initialize</phase>
351                         <configuration>
352                             <executable>cp</executable>
353                             <arguments>
354                                 <argument>-r</argument>
355                                 <argument>onap/oran/a1-policy-management/config</argument>
356                                 <argument>.</argument>
357                             </arguments>
358                         </configuration>
359                         <goals>
360                             <goal>exec</goal>
361                         </goals>
362                     </execution>
363                 </executions>
364             </plugin>
365         </plugins>
366     </build>
367     <issueManagement>
368         <system>JIRA</system>
369         <url>https://jira.o-ran-sc.org/</url>
370     </issueManagement>
371 </project>