DMAAP Consumer logic
[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                 <awaitility.version>4.0.1</awaitility.version>
45                 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
46                 <formatter-maven-plugin.version>2.8.1</formatter-maven-plugin.version>
47                 <spotless-maven-plugin.version>1.18.0</spotless-maven-plugin.version>
48                 <docker-maven-plugin>0.30.0</docker-maven-plugin>
49                 <version.dmaap>1.1.9</version.dmaap>
50                 <version.lombok>1.18.4</version.lombok>
51         </properties>
52         <dependencies>
53                 <dependency>
54                         <groupId>org.springframework.boot</groupId>
55                         <artifactId>spring-boot-starter-web</artifactId>
56                 </dependency>
57                 <dependency>
58                         <groupId>org.springframework.boot</groupId>
59                         <artifactId>spring-boot-starter-thymeleaf</artifactId>
60                 </dependency>
61                 <dependency>
62                         <groupId>org.springframework.boot</groupId>
63                         <artifactId>spring-boot-starter-webflux</artifactId>
64                 </dependency>
65                 <dependency>
66                         <groupId>org.springframework.boot</groupId>
67                         <artifactId>spring-boot-devtools</artifactId>
68                         <optional>true</optional>
69                 </dependency>
70                 <dependency>
71                         <groupId>org.springframework</groupId>
72                         <artifactId>spring-webflux</artifactId>
73                 </dependency>
74                 <dependency>
75                         <groupId>io.swagger.core.v3</groupId>
76                         <artifactId>swagger-jaxrs2</artifactId>
77                         <version>${swagger.version}</version>
78                 </dependency>
79                 <dependency>
80                         <groupId>io.swagger.core.v3</groupId>
81                         <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
82                         <version>${swagger.version}</version>
83                 </dependency>
84                 <dependency>
85                         <groupId>javax.xml.bind</groupId>
86                         <artifactId>jaxb-api</artifactId>
87                 </dependency>
88                 <dependency>
89                         <groupId>org.immutables</groupId>
90                         <artifactId>value</artifactId>
91                         <version>${immutable.version}</version>
92                         <scope>provided</scope>
93                 </dependency>
94                 <dependency>
95                         <groupId>org.immutables</groupId>
96                         <artifactId>gson</artifactId>
97                         <version>${immutable.version}</version>
98                 </dependency>
99                 <dependency>
100                         <groupId>org.json</groupId>
101                         <artifactId>json</artifactId>
102                         <version>${json.version}</version>
103                 </dependency>
104                 <!--TEST -->
105                 <dependency>
106                         <groupId>org.springframework.boot</groupId>
107                         <artifactId>spring-boot-starter-test</artifactId>
108                         <scope>test</scope>
109                 </dependency>
110                 <dependency>
111                         <groupId>org.springframework.boot</groupId>
112                         <artifactId>spring-boot-configuration-processor</artifactId>
113                         <optional>true</optional>
114                 </dependency>
115                 <dependency>
116                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
117                         <artifactId>cbs-client</artifactId>
118                         <version>${sdk.version}</version>
119                 </dependency>
120                 <!--REQUIRED TO GENERATE DOCUMENTATION -->
121                 <dependency>
122                         <groupId>io.springfox</groupId>
123                         <artifactId>springfox-swagger2</artifactId>
124                         <version>${springfox.version}</version>
125                 </dependency>
126                 <dependency>
127                         <groupId>io.springfox</groupId>
128                         <artifactId>springfox-swagger-ui</artifactId>
129                         <version>${springfox.version}</version>
130                 </dependency>
131                 <!-- TEST -->
132                 <dependency>
133                         <groupId>org.awaitility</groupId>
134                         <artifactId>awaitility</artifactId>
135                         <version>${awaitility.version}</version>
136                         <scope>test</scope>
137                 </dependency>
138                 <dependency>
139                         <groupId>io.projectreactor</groupId>
140                         <artifactId>reactor-test</artifactId>
141                         <scope>test</scope>
142                 </dependency>
143                 <dependency>
144                         <groupId>org.junit.jupiter</groupId>
145                         <artifactId>junit-jupiter-engine</artifactId>
146                         <scope>test</scope>
147                 </dependency>
148                 <dependency>
149                         <groupId>org.mockito</groupId>
150                         <artifactId>mockito-junit-jupiter</artifactId>
151                         <scope>test</scope>
152                 </dependency>
153                 <dependency>
154                         <groupId>org.mockito</groupId>
155                         <artifactId>mockito-core</artifactId>
156                         <scope>test</scope>
157                 </dependency>
158                 <dependency>
159                         <groupId>org.projectlombok</groupId>
160                         <artifactId>lombok</artifactId>
161                         <scope>provided</scope>
162                 </dependency>
163                 <dependency>
164                         <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
165                         <artifactId>dmaapClient</artifactId>
166                         <version>${version.dmaap}</version>
167                 </dependency>
168         </dependencies>
169         <build>
170                 <plugins>
171                         <plugin>
172                                 <groupId>org.springframework.boot</groupId>
173                                 <artifactId>spring-boot-maven-plugin</artifactId>
174                         </plugin>
175                         <plugin>
176                                 <groupId>net.revelc.code.formatter</groupId>
177                                 <artifactId>formatter-maven-plugin</artifactId>
178                                 <version>${formatter-maven-plugin.version}</version>
179                                 <configuration>
180                                         <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
181                                 </configuration>
182                                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format 
183                                         spotless:apply process-sources -->
184                         </plugin>
185                         <plugin>
186                                 <groupId>com.diffplug.spotless</groupId>
187                                 <artifactId>spotless-maven-plugin</artifactId>
188                                 <version>${spotless-maven-plugin.version}</version>
189                                 <configuration>
190                                         <java>
191                                                 <removeUnusedImports />
192                                                 <importOrder>
193                                                         <order>com,java,javax,org</order>
194                                                 </importOrder>
195                                         </java>
196                                 </configuration>
197                                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use 
198                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate 
199                                         source files -->
200                         </plugin>
201                         <plugin>
202                                 <groupId>org.apache.maven.plugins</groupId>
203                                 <artifactId>maven-surefire-plugin</artifactId>
204                                 <configuration>
205                                         <skipTests>false</skipTests>
206                                 </configuration>
207                         </plugin>
208                         <plugin>
209                                 <artifactId>maven-failsafe-plugin</artifactId>
210                         </plugin>
211                         <plugin>
212                                 <groupId>org.codehaus.mojo</groupId>
213                                 <artifactId>build-helper-maven-plugin</artifactId>
214                                 <executions>
215                                         <execution>
216                                                 <id>add-source</id>
217                                                 <phase>generate-sources</phase>
218                                                 <goals>
219                                                         <goal>add-source</goal>
220                                                 </goals>
221                                                 <configuration>
222                                                         <sources>
223                                                                 <source>${project.build.directory}/generated-sources/annotations/</source>
224                                                         </sources>
225                                                 </configuration>
226                                         </execution>
227                                 </executions>
228                         </plugin>
229                         <plugin>
230                                 <groupId>io.fabric8</groupId>
231                                 <artifactId>docker-maven-plugin</artifactId>
232                                 <version>${docker-maven-plugin}</version>
233                                 <inherited>false</inherited>
234                                 <executions>
235                                         <execution>
236                                                 <id>generate-policy-agent-image</id>
237                                                 <phase>package</phase>
238                                                 <goals>
239                                                         <goal>build</goal>
240                                                 </goals>
241                                                 <configuration>
242                                                         <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
243                                                         <images>
244                                                                 <image>
245                                                                         <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
246                                                                         <build>
247                                                                                 <cleanup>try</cleanup>
248                                                                                 <contextDir>${basedir}</contextDir>
249                                                                                 <dockerFile>Dockerfile</dockerFile>
250                                                                                 <args>
251                                                                                         <JAR>${project.build.finalName}.jar</JAR>
252                                                                                 </args>
253                                                                                 <tags>
254                                                                                         <tag>${project.version}</tag>
255                                                                                 </tags>
256                                                                         </build>
257                                                                 </image>
258                                                         </images>
259                                                 </configuration>
260                                         </execution>
261                                         <execution>
262                                                 <id>push-policy-agent-image</id>
263                                                 <goals>
264                                                         <goal>build</goal>
265                                                         <goal>push</goal>
266                                                 </goals>
267                                                 <configuration>
268                                                         <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
269                                                         <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
270                                                         <images>
271                                                                 <image>
272                                                                         <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
273                                                                         <build>
274                                                                                 <contextDir>${basedir}</contextDir>
275                                                                                 <dockerFile>Dockerfile</dockerFile>
276                                                                                 <args>
277                                                                                         <JAR>${project.build.finalName}.jar</JAR>
278                                                                                 </args>
279                                                                                 <tags>
280                                                                                         <tag>${project.version}</tag>
281                                                                                 </tags>
282                                                                         </build>
283                                                                 </image>
284                                                         </images>
285                                                 </configuration>
286                                         </execution>
287                                 </executions>
288                         </plugin>
289                 </plugins>
290         </build>
291         <issueManagement>
292                 <system>JIRA</system>
293                 <url>https://jira.o-ran-sc.org/</url>
294         </issueManagement>
295 </project>