Adapt A1 controller to latest A1 spec
[nonrtric.git] / policy-agent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- * ========================LICENSE_START================================= 
3         * O-RAN-SC * %% * Copyright (C) 2019 Nordix Foundation * %% * Licensed under 
4         the Apache License, Version 2.0 (the "License"); * you may not use this file 
5         except in compliance with the License. * You may obtain a copy of the License 
6         at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by 
7         applicable law or agreed to in writing, software * distributed under the 
8         License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 
9         OF ANY KIND, either express or implied. * See the License for the specific 
10         language governing permissions and * limitations under the License. * ========================LICENSE_END=================================== -->
11 <project xmlns="http://maven.apache.org/POM/4.0.0"
12         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
13         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
14         <modelVersion>4.0.0</modelVersion>
15         <parent>
16                 <groupId>org.springframework.boot</groupId>
17                 <artifactId>spring-boot-starter-parent</artifactId>
18                 <version>2.1.6.RELEASE</version>
19                 <relativePath />
20         </parent>
21         <groupId>org.o-ran-sc.nonrtric</groupId>
22         <artifactId>policy-agent</artifactId>
23         <version>1.0.0-SNAPSHOT</version>
24         <licenses>
25                 <license>
26                         <name>The Apache Software License, Version 2.0</name>
27                         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
28                 </license>
29         </licenses>
30         <repositories>
31                 <repository>
32                         <id>onap-releases</id>
33                         <name>onap-releases</name>
34                         <url>https://nexus.onap.org/content/repositories/releases/</url>
35                 </repository>
36         </repositories>
37         <properties>
38                 <java.version>11</java.version>
39                 <springfox.version>2.8.0</springfox.version>
40                 <immutable.version>2.7.1</immutable.version>
41                 <sdk.version>1.1.6</sdk.version>
42                 <swagger.version>2.0.0</swagger.version>
43                 <json.version>20180130</json.version>
44         <commons-net.version>3.3</commons-net.version>
45                 <awaitility.version>4.0.1</awaitility.version>
46                 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
47                 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
48                 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
49                 <docker-maven-plugin>0.30.0</docker-maven-plugin>
50                 <version.dmaap>1.1.9</version.dmaap>
51         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
52         </properties>
53         <dependencies>
54                 <dependency>
55                         <groupId>org.springframework.boot</groupId>
56                         <artifactId>spring-boot-starter-web</artifactId>
57                 </dependency>
58                 <dependency>
59                         <groupId>org.springframework.boot</groupId>
60                         <artifactId>spring-boot-starter-thymeleaf</artifactId>
61                 </dependency>
62                 <dependency>
63                         <groupId>org.springframework.boot</groupId>
64                         <artifactId>spring-boot-starter-webflux</artifactId>
65                 </dependency>
66                 <dependency>
67                         <groupId>org.springframework.boot</groupId>
68                         <artifactId>spring-boot-devtools</artifactId>
69                         <optional>true</optional>
70                 </dependency>
71                 <dependency>
72                         <groupId>org.springframework</groupId>
73                         <artifactId>spring-webflux</artifactId>
74                 </dependency>
75                 <dependency>
76                         <groupId>io.swagger.core.v3</groupId>
77                         <artifactId>swagger-jaxrs2</artifactId>
78                         <version>${swagger.version}</version>
79                 </dependency>
80                 <dependency>
81                         <groupId>io.swagger.core.v3</groupId>
82                         <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
83                         <version>${swagger.version}</version>
84                 </dependency>
85                 <dependency>
86                         <groupId>javax.xml.bind</groupId>
87                         <artifactId>jaxb-api</artifactId>
88                 </dependency>
89                 <dependency>
90                         <groupId>org.immutables</groupId>
91                         <artifactId>value</artifactId>
92                         <version>${immutable.version}</version>
93                         <scope>provided</scope>
94                 </dependency>
95                 <dependency>
96                         <groupId>org.immutables</groupId>
97                         <artifactId>gson</artifactId>
98                         <version>${immutable.version}</version>
99                 </dependency>
100                 <dependency>
101                         <groupId>org.json</groupId>
102                         <artifactId>json</artifactId>
103                         <version>${json.version}</version>
104                 </dependency>
105         <dependency>
106             <groupId>commons-net</groupId>
107             <artifactId>commons-net</artifactId>
108             <version>${commons-net.version}</version>
109         </dependency>
110                 <!--TEST -->
111                 <dependency>
112                         <groupId>org.springframework.boot</groupId>
113                         <artifactId>spring-boot-starter-test</artifactId>
114                         <scope>test</scope>
115                 </dependency>
116                 <dependency>
117                         <groupId>org.springframework.boot</groupId>
118                         <artifactId>spring-boot-configuration-processor</artifactId>
119                         <optional>true</optional>
120                 </dependency>
121                 <dependency>
122                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
123                         <artifactId>cbs-client</artifactId>
124             <version>${sdk.version}</version>
125         </dependency>
126         <dependency>
127             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
128             <artifactId>dmaap-client</artifactId>
129                         <version>${sdk.version}</version>
130                 </dependency>
131                 <!--REQUIRED TO GENERATE DOCUMENTATION -->
132                 <dependency>
133                         <groupId>io.springfox</groupId>
134                         <artifactId>springfox-swagger2</artifactId>
135                         <version>${springfox.version}</version>
136                 </dependency>
137                 <dependency>
138                         <groupId>io.springfox</groupId>
139                         <artifactId>springfox-swagger-ui</artifactId>
140                         <version>${springfox.version}</version>
141                 </dependency>
142                 <!-- TEST -->
143                 <dependency>
144                         <groupId>org.awaitility</groupId>
145                         <artifactId>awaitility</artifactId>
146                         <version>${awaitility.version}</version>
147                         <scope>test</scope>
148                 </dependency>
149                 <dependency>
150                         <groupId>io.projectreactor</groupId>
151                         <artifactId>reactor-test</artifactId>
152                         <scope>test</scope>
153                 </dependency>
154                 <dependency>
155                         <groupId>org.junit.jupiter</groupId>
156                         <artifactId>junit-jupiter-engine</artifactId>
157                         <scope>test</scope>
158                 </dependency>
159                 <dependency>
160                         <groupId>org.mockito</groupId>
161                         <artifactId>mockito-junit-jupiter</artifactId>
162                         <scope>test</scope>
163                 </dependency>
164                 <dependency>
165                         <groupId>org.mockito</groupId>
166                         <artifactId>mockito-core</artifactId>
167                         <scope>test</scope>
168                 </dependency>
169                 <dependency>
170                         <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
171                         <artifactId>dmaapClient</artifactId>
172                         <version>${version.dmaap}</version>
173                 </dependency>
174         <dependency>
175             <groupId>javax.ws.rs</groupId>
176             <artifactId>javax.ws.rs-api</artifactId>
177             <version>${javax.ws.rs-api.version}</version>
178         </dependency>
179         <dependency>
180             <groupId>org.glassfish.jersey.inject</groupId>
181             <artifactId>jersey-hk2</artifactId>
182         </dependency>
183         </dependencies>
184         <build>
185                 <plugins>
186                         <plugin>
187                                 <groupId>org.springframework.boot</groupId>
188                                 <artifactId>spring-boot-maven-plugin</artifactId>
189                         </plugin>
190                         <plugin>
191                                 <groupId>net.revelc.code.formatter</groupId>
192                                 <artifactId>formatter-maven-plugin</artifactId>
193                                 <version>${formatter-maven-plugin.version}</version>
194                                 <configuration>
195                                         <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
196                                 </configuration>
197                                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format 
198                                         spotless:apply process-sources -->
199                         </plugin>
200                         <plugin>
201                                 <groupId>com.diffplug.spotless</groupId>
202                                 <artifactId>spotless-maven-plugin</artifactId>
203                                 <version>${spotless-maven-plugin.version}</version>
204                                 <configuration>
205                                         <java>
206                                                 <removeUnusedImports />
207                                                 <importOrder>
208                                                         <order>com,java,javax,org</order>
209                                                 </importOrder>
210                                         </java>
211                                 </configuration>
212                                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use 
213                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate 
214                                         source files -->
215                         </plugin>
216                         <plugin>
217                                 <groupId>org.apache.maven.plugins</groupId>
218                                 <artifactId>maven-surefire-plugin</artifactId>
219                                 <configuration>
220                                         <skipTests>false</skipTests>
221                                 </configuration>
222                         </plugin>
223                         <plugin>
224                                 <artifactId>maven-failsafe-plugin</artifactId>
225                         </plugin>
226                         <plugin>
227                                 <groupId>org.codehaus.mojo</groupId>
228                                 <artifactId>build-helper-maven-plugin</artifactId>
229                                 <executions>
230                                         <execution>
231                                                 <id>add-source</id>
232                                                 <phase>generate-sources</phase>
233                                                 <goals>
234                                                         <goal>add-source</goal>
235                                                 </goals>
236                                                 <configuration>
237                                                         <sources>
238                                                                 <source>${project.build.directory}/generated-sources/annotations/</source>
239                                                         </sources>
240                                                 </configuration>
241                                         </execution>
242                                 </executions>
243                         </plugin>
244                         <plugin>
245                                 <groupId>io.fabric8</groupId>
246                                 <artifactId>docker-maven-plugin</artifactId>
247                                 <version>${docker-maven-plugin}</version>
248                                 <inherited>false</inherited>
249                                 <executions>
250                                         <execution>
251                                                 <id>generate-policy-agent-image</id>
252                                                 <phase>package</phase>
253                                                 <goals>
254                                                         <goal>build</goal>
255                                                 </goals>
256                                                 <configuration>
257                                                         <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
258                                                         <images>
259                                                                 <image>
260                                                                         <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
261                                                                         <build>
262                                                                                 <cleanup>try</cleanup>
263                                                                                 <contextDir>${basedir}</contextDir>
264                                                                                 <dockerFile>Dockerfile</dockerFile>
265                                                                                 <args>
266                                                                                         <JAR>${project.build.finalName}.jar</JAR>
267                                                                                 </args>
268                                                                                 <tags>
269                                                                                         <tag>${project.version}</tag>
270                                                                                 </tags>
271                                                                         </build>
272                                                                 </image>
273                                                         </images>
274                                                 </configuration>
275                                         </execution>
276                                         <execution>
277                                                 <id>push-policy-agent-image</id>
278                                                 <goals>
279                                                         <goal>build</goal>
280                                                         <goal>push</goal>
281                                                 </goals>
282                                                 <configuration>
283                                                         <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
284                                                         <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
285                                                         <images>
286                                                                 <image>
287                                                                         <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
288                                                                         <build>
289                                                                                 <contextDir>${basedir}</contextDir>
290                                                                                 <dockerFile>Dockerfile</dockerFile>
291                                                                                 <args>
292                                                                                         <JAR>${project.build.finalName}.jar</JAR>
293                                                                                 </args>
294                                                                                 <tags>
295                                                                                         <tag>${project.version}</tag>
296                                                                                 </tags>
297                                                                         </build>
298                                                                 </image>
299                                                         </images>
300                                                 </configuration>
301                                         </execution>
302                                 </executions>
303                         </plugin>
304                 </plugins>
305         </build>
306         <issueManagement>
307                 <system>JIRA</system>
308                 <url>https://jira.o-ran-sc.org/</url>
309         </issueManagement>
310 </project>