Fix configuration in JSon
[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 xmlns="http://maven.apache.org/POM/4.0.0"
22         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
24         <modelVersion>4.0.0</modelVersion>
25         <parent>
26                 <groupId>org.springframework.boot</groupId>
27                 <artifactId>spring-boot-starter-parent</artifactId>
28                 <version>2.2.4.RELEASE</version>
29                 <relativePath />
30         </parent>
31         <groupId>org.o-ran-sc.nonrtric</groupId>
32         <artifactId>policy-agent</artifactId>
33         <version>1.0.0-SNAPSHOT</version>
34         <licenses>
35                 <license>
36                         <name>The Apache Software License, Version 2.0</name>
37                         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
38                 </license>
39         </licenses>
40         <repositories>
41                 <repository>
42                         <id>onap-releases</id>
43                         <name>onap-releases</name>
44                         <url>https://nexus.onap.org/content/repositories/releases/</url>
45                 </repository>
46         </repositories>
47         <properties>
48                 <java.version>11</java.version>
49                 <springfox.version>2.8.0</springfox.version>
50                 <immutable.version>2.7.1</immutable.version>
51                 <sdk.version>1.1.6</sdk.version>
52                 <swagger.version>2.0.0</swagger.version>
53                 <json.version>20180130</json.version>
54         <commons-net.version>3.3</commons-net.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                 <docker-maven-plugin>0.30.0</docker-maven-plugin>
60                 <version.dmaap>1.1.9</version.dmaap>
61         <javax.ws.rs-api.version>2.1.1</javax.ws.rs-api.version>
62         </properties>
63         <dependencies>
64                 <dependency>
65                         <groupId>org.springframework.boot</groupId>
66                         <artifactId>spring-boot-starter-web</artifactId>
67                 </dependency>
68                 <dependency>
69                         <groupId>org.springframework.boot</groupId>
70                         <artifactId>spring-boot-starter-thymeleaf</artifactId>
71                 </dependency>
72                 <dependency>
73                         <groupId>org.springframework.boot</groupId>
74                         <artifactId>spring-boot-starter-webflux</artifactId>
75                 </dependency>
76                 <dependency>
77                         <groupId>org.springframework.boot</groupId>
78                         <artifactId>spring-boot-devtools</artifactId>
79                         <optional>true</optional>
80                 </dependency>
81                 <dependency>
82                         <groupId>org.springframework</groupId>
83                         <artifactId>spring-webflux</artifactId>
84                 </dependency>
85                 <dependency>
86                         <groupId>io.swagger.core.v3</groupId>
87                         <artifactId>swagger-jaxrs2</artifactId>
88                         <version>${swagger.version}</version>
89                 </dependency>
90                 <dependency>
91                         <groupId>io.swagger.core.v3</groupId>
92                         <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
93                         <version>${swagger.version}</version>
94                 </dependency>
95                 <dependency>
96                         <groupId>javax.xml.bind</groupId>
97                         <artifactId>jaxb-api</artifactId>
98                 </dependency>
99                 <dependency>
100                         <groupId>org.immutables</groupId>
101                         <artifactId>value</artifactId>
102                         <version>${immutable.version}</version>
103                         <scope>provided</scope>
104                 </dependency>
105                 <dependency>
106                         <groupId>org.immutables</groupId>
107                         <artifactId>gson</artifactId>
108                         <version>${immutable.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>commons-net</groupId>
117             <artifactId>commons-net</artifactId>
118             <version>${commons-net.version}</version>
119         </dependency>
120                 <!--TEST -->
121                 <dependency>
122                         <groupId>org.springframework.boot</groupId>
123                         <artifactId>spring-boot-starter-test</artifactId>
124                         <scope>test</scope>
125                 </dependency>
126                 <dependency>
127                         <groupId>org.springframework.boot</groupId>
128                         <artifactId>spring-boot-configuration-processor</artifactId>
129                         <optional>true</optional>
130                 </dependency>
131                 <dependency>
132                         <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
133                         <artifactId>cbs-client</artifactId>
134             <version>${sdk.version}</version>
135         </dependency>
136         <dependency>
137             <groupId>org.onap.dcaegen2.services.sdk.rest.services</groupId>
138             <artifactId>dmaap-client</artifactId>
139                         <version>${sdk.version}</version>
140                 </dependency>
141         <dependency>
142             <groupId>org.projectlombok</groupId>
143             <artifactId>lombok</artifactId>
144             <scope>provided</scope>
145         </dependency>
146                 <!--REQUIRED TO GENERATE DOCUMENTATION -->
147                 <dependency>
148                         <groupId>io.springfox</groupId>
149                         <artifactId>springfox-swagger2</artifactId>
150                         <version>${springfox.version}</version>
151                 </dependency>
152                 <dependency>
153                         <groupId>io.springfox</groupId>
154                         <artifactId>springfox-swagger-ui</artifactId>
155                         <version>${springfox.version}</version>
156                 </dependency>
157                 <!-- TEST -->
158                 <dependency>
159                         <groupId>org.awaitility</groupId>
160                         <artifactId>awaitility</artifactId>
161                         <version>${awaitility.version}</version>
162                         <scope>test</scope>
163                 </dependency>
164                 <dependency>
165                         <groupId>io.projectreactor</groupId>
166                         <artifactId>reactor-test</artifactId>
167                         <scope>test</scope>
168                 </dependency>
169                 <dependency>
170                         <groupId>org.junit.jupiter</groupId>
171                         <artifactId>junit-jupiter-engine</artifactId>
172                         <scope>test</scope>
173                 </dependency>
174                 <dependency>
175                         <groupId>org.mockito</groupId>
176                         <artifactId>mockito-junit-jupiter</artifactId>
177                         <scope>test</scope>
178                 </dependency>
179                 <dependency>
180                         <groupId>org.mockito</groupId>
181                         <artifactId>mockito-core</artifactId>
182                         <scope>test</scope>
183                 </dependency>
184                 <dependency>
185                         <groupId>org.onap.dmaap.messagerouter.dmaapclient</groupId>
186                         <artifactId>dmaapClient</artifactId>
187                         <version>${version.dmaap}</version>
188                 </dependency>
189         <dependency>
190             <groupId>javax.ws.rs</groupId>
191             <artifactId>javax.ws.rs-api</artifactId>
192             <version>${javax.ws.rs-api.version}</version>
193         </dependency>
194         <dependency>
195             <groupId>org.glassfish.jersey.inject</groupId>
196             <artifactId>jersey-hk2</artifactId>
197         </dependency>
198         </dependencies>
199         <build>
200                 <plugins>
201                         <plugin>
202                                 <groupId>org.springframework.boot</groupId>
203                                 <artifactId>spring-boot-maven-plugin</artifactId>
204                         </plugin>
205                         <plugin>
206                                 <groupId>net.revelc.code.formatter</groupId>
207                                 <artifactId>formatter-maven-plugin</artifactId>
208                                 <version>${formatter-maven-plugin.version}</version>
209                                 <configuration>
210                                         <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
211                                 </configuration>
212                                 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format 
213                                         spotless:apply process-sources -->
214                         </plugin>
215                         <plugin>
216                                 <groupId>com.diffplug.spotless</groupId>
217                                 <artifactId>spotless-maven-plugin</artifactId>
218                                 <version>${spotless-maven-plugin.version}</version>
219                                 <configuration>
220                                         <java>
221                                                 <removeUnusedImports />
222                                                 <importOrder>
223                                                         <order>com,java,javax,org</order>
224                                                 </importOrder>
225                                         </java>
226                                 </configuration>
227                                 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use 
228                                         mvn spotless:apply to rewrite source files use mvn spotless:check to validate 
229                                         source files -->
230                         </plugin>
231                         <plugin>
232                                 <groupId>org.apache.maven.plugins</groupId>
233                                 <artifactId>maven-surefire-plugin</artifactId>
234                                 <configuration>
235                                         <skipTests>false</skipTests>
236                                 </configuration>
237                         </plugin>
238                         <plugin>
239                                 <artifactId>maven-failsafe-plugin</artifactId>
240                         </plugin>
241                         <plugin>
242                                 <groupId>org.codehaus.mojo</groupId>
243                                 <artifactId>build-helper-maven-plugin</artifactId>
244                                 <executions>
245                                         <execution>
246                                                 <id>add-source</id>
247                                                 <phase>generate-sources</phase>
248                                                 <goals>
249                                                         <goal>add-source</goal>
250                                                 </goals>
251                                                 <configuration>
252                                                         <sources>
253                                                                 <source>${project.build.directory}/generated-sources/annotations/</source>
254                                                         </sources>
255                                                 </configuration>
256                                         </execution>
257                                 </executions>
258                         </plugin>
259                         <plugin>
260                                 <groupId>io.fabric8</groupId>
261                                 <artifactId>docker-maven-plugin</artifactId>
262                                 <version>${docker-maven-plugin}</version>
263                                 <inherited>false</inherited>
264                                 <executions>
265                                         <execution>
266                                                 <id>generate-policy-agent-image</id>
267                                                 <phase>package</phase>
268                                                 <goals>
269                                                         <goal>build</goal>
270                                                 </goals>
271                                                 <configuration>
272                                                         <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
273                                                         <images>
274                                                                 <image>
275                                                                         <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
276                                                                         <build>
277                                                                                 <cleanup>try</cleanup>
278                                                                                 <contextDir>${basedir}</contextDir>
279                                                                                 <dockerFile>Dockerfile</dockerFile>
280                                                                                 <args>
281                                                                                         <JAR>${project.build.finalName}.jar</JAR>
282                                                                                 </args>
283                                                                                 <tags>
284                                                                                         <tag>${project.version}</tag>
285                                                                                 </tags>
286                                                                         </build>
287                                                                 </image>
288                                                         </images>
289                                                 </configuration>
290                                         </execution>
291                                         <execution>
292                                                 <id>push-policy-agent-image</id>
293                                                 <goals>
294                                                         <goal>build</goal>
295                                                         <goal>push</goal>
296                                                 </goals>
297                                                 <configuration>
298                                                         <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
299                                                         <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
300                                                         <images>
301                                                                 <image>
302                                                                         <name>o-ran-sc/nonrtric-policy-agent:${project.version}</name>
303                                                                         <build>
304                                                                                 <contextDir>${basedir}</contextDir>
305                                                                                 <dockerFile>Dockerfile</dockerFile>
306                                                                                 <args>
307                                                                                         <JAR>${project.build.finalName}.jar</JAR>
308                                                                                 </args>
309                                                                                 <tags>
310                                                                                         <tag>${project.version}</tag>
311                                                                                 </tags>
312                                                                         </build>
313                                                                 </image>
314                                                         </images>
315                                                 </configuration>
316                                         </execution>
317                                 </executions>
318                         </plugin>
319                 </plugins>
320         </build>
321         <issueManagement>
322                 <system>JIRA</system>
323                 <url>https://jira.o-ran-sc.org/</url>
324         </issueManagement>
325 </project>