Make StartupService use asynchronous client
[nonrtric.git] / policy-agent / 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.1.6.RELEASE</version>
30         <relativePath />
31     </parent>
32     <groupId>org.o-ran-sc.nonrtric</groupId>
33     <artifactId>policy-agent</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>11</java.version>
50         <springfox.version>2.8.0</springfox.version>
51         <immutable.version>2.7.1</immutable.version>
52         <sdk.version>1.1.6</sdk.version>
53         <swagger.version>2.0.0</swagger.version>
54         <json.version>20180130</json.version>
55         <awaitility.version>4.0.1</awaitility.version>
56         <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
57         <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
58         <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
59         <dockerfile-maven-plugin.version>1.4.13</dockerfile-maven-plugin.version>
60     </properties>
61     <dependencies>
62         <dependency>
63             <groupId>org.springframework.boot</groupId>
64             <artifactId>spring-boot-starter-web</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.springframework.boot</groupId>
68             <artifactId>spring-boot-starter-thymeleaf</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>org.springframework.boot</groupId>
72             <artifactId>spring-boot-starter-webflux</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>org.springframework.boot</groupId>
76             <artifactId>spring-boot-devtools</artifactId>
77             <optional>true</optional>
78         </dependency>
79         <dependency>
80             <groupId>org.springframework</groupId>
81             <artifactId>spring-webflux</artifactId>
82         </dependency>
83         <dependency>
84             <groupId>io.swagger.core.v3</groupId>
85             <artifactId>swagger-jaxrs2</artifactId>
86             <version>${swagger.version}</version>
87         </dependency>
88         <dependency>
89             <groupId>io.swagger.core.v3</groupId>
90             <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
91             <version>${swagger.version}</version>
92         </dependency>
93         <dependency>
94             <groupId>org.immutables</groupId>
95             <artifactId>value</artifactId>
96             <version>${immutable.version}</version>
97             <scope>provided</scope>
98         </dependency>
99         <dependency>
100             <groupId>org.immutables</groupId>
101             <artifactId>gson</artifactId>
102             <version>${immutable.version}</version>
103         </dependency>
104         <dependency>
105             <groupId>org.json</groupId>
106             <artifactId>json</artifactId>
107             <version>${json.version}</version>
108         </dependency>
109         <!--TEST -->
110         <dependency>
111             <groupId>org.springframework.boot</groupId>
112             <artifactId>spring-boot-starter-test</artifactId>
113             <scope>test</scope>
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.onap.dcaegen2.services.sdk.rest.services</groupId>
122             <artifactId>cbs-client</artifactId>
123             <version>${sdk.version}</version>
124         </dependency>
125         <!--REQUIRED TO GENERATE DOCUMENTATION -->
126         <dependency>
127             <groupId>io.springfox</groupId>
128             <artifactId>springfox-swagger2</artifactId>
129             <version>${springfox.version}</version>
130         </dependency>
131         <dependency>
132             <groupId>io.springfox</groupId>
133             <artifactId>springfox-swagger-ui</artifactId>
134             <version>${springfox.version}</version>
135         </dependency>
136         <!-- TEST -->
137         <dependency>
138             <groupId>org.awaitility</groupId>
139             <artifactId>awaitility</artifactId>
140             <version>${awaitility.version}</version>
141             <scope>test</scope>
142         </dependency>
143         <dependency>
144             <groupId>io.projectreactor</groupId>
145             <artifactId>reactor-test</artifactId>
146             <scope>test</scope>
147         </dependency>
148         <dependency>
149             <groupId>org.junit.jupiter</groupId>
150             <artifactId>junit-jupiter-engine</artifactId>
151             <scope>test</scope>
152         </dependency>
153         <dependency>
154             <groupId>org.mockito</groupId>
155             <artifactId>mockito-junit-jupiter</artifactId>
156             <scope>test</scope>
157         </dependency>
158         <dependency>
159             <groupId>org.mockito</groupId>
160             <artifactId>mockito-core</artifactId>
161             <scope>test</scope>
162         </dependency>
163     </dependencies>
164     <build>
165         <plugins>
166             <plugin>
167                 <groupId>org.springframework.boot</groupId>
168                 <artifactId>spring-boot-maven-plugin</artifactId>
169             </plugin>
170             <plugin>
171                 <groupId>net.revelc.code.formatter</groupId>
172                 <artifactId>formatter-maven-plugin</artifactId>
173                 <version>${formatter-maven-plugin.version}</version>
174                 <configuration>
175                     <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
176                 </configuration>
177                 <!-- https://code.revelc.net/formatter-maven-plugin/ use
178                     mvn formatter:format spotless:apply process-sources -->
179             </plugin>
180             <plugin>
181                 <groupId>com.diffplug.spotless</groupId>
182                 <artifactId>spotless-maven-plugin</artifactId>
183                 <version>${spotless-maven-plugin.version}</version>
184                 <configuration>
185                     <java>
186                         <removeUnusedImports />
187                         <importOrder>
188                             <order>com,java,javax,org</order>
189                         </importOrder>
190                     </java>
191                 </configuration>
192                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven
193                     use mvn spotless:apply to rewrite source files use mvn spotless:check to
194                     validate source files -->
195             </plugin>
196             <plugin>
197                 <groupId>org.apache.maven.plugins</groupId>
198                 <artifactId>maven-surefire-plugin</artifactId>
199                 <configuration>
200                     <skipTests>false</skipTests>
201                 </configuration>
202             </plugin>
203             <plugin>
204                 <artifactId>maven-failsafe-plugin</artifactId>
205             </plugin>
206             <plugin>
207                 <groupId>org.codehaus.mojo</groupId>
208                 <artifactId>build-helper-maven-plugin</artifactId>
209                 <executions>
210                     <execution>
211                         <id>add-source</id>
212                         <phase>generate-sources</phase>
213                         <goals>
214                             <goal>add-source</goal>
215                         </goals>
216                         <configuration>
217                             <sources>
218                                 <source>${project.build.directory}/generated-sources/annotations/</source>
219                             </sources>
220                         </configuration>
221                     </execution>
222                 </executions>
223             </plugin>
224             <plugin>
225                 <groupId>com.spotify</groupId>
226                 <artifactId>dockerfile-maven-plugin</artifactId>
227                 <version>${dockerfile-maven-plugin.version}</version>
228                 <configuration>
229                     <repository>oransc/policy-agent</repository>
230                     <tag>${project.version}</tag>
231                     <buildArgs>
232                         <JAR_FILE>${project.build.finalName}.jar</JAR_FILE>
233                     </buildArgs>
234                 </configuration>
235             </plugin>
236         </plugins>
237     </build>
238     <issueManagement>
239         <system>JIRA</system>
240         <url>https://jira.o-ran-sc.org/</url>
241     </issueManagement>
242 </project>