blob: d9fe5b79ab5073da03667843a088a8dbd158be31 [file] [log] [blame]
elinuxhenrik93c5a6a2022-04-04 15:47:19 +02001<?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.6</version>
30 <relativePath />
31 </parent>
elinuxhenrik75450702022-04-08 08:54:53 +020032 <groupId>org.o-ran-sc.nonrtric.plt</groupId>
33 <artifactId>informationcoordinatorservice</artifactId>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020034 <version>1.3.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>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020051 <gson.version>2.9.0</gson.version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020052 <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.24.3</spotless-maven-plugin.version>
57 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
58 <docker-maven-plugin>0.30.0</docker-maven-plugin>
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.skip>true</exec.skip>
62 </properties>
63 <dependencies>
64 <dependency>
65 <groupId>org.springdoc</groupId>
66 <artifactId>springdoc-openapi-ui</artifactId>
67 <version>1.6.6</version>
68 </dependency>
69 <dependency>
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-web</artifactId>
72 </dependency>
73 <dependency>
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter-thymeleaf</artifactId>
76 </dependency>
77 <dependency>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-webflux</artifactId>
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>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020096 <groupId>com.google.code.gson</groupId>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020097 <artifactId>gson</artifactId>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020098 <version>${gson.version}</version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020099 </dependency>
100 <dependency>
101 <groupId>org.json</groupId>
102 <artifactId>json</artifactId>
103 <version>${json.version}</version>
104 </dependency>
105 <dependency>
106 <groupId>org.projectlombok</groupId>
107 <artifactId>lombok</artifactId>
108 <scope>provided</scope>
109 </dependency>
110 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
111 <dependency>
112 <groupId>com.github.erosb</groupId>
113 <artifactId>everit-json-schema</artifactId>
114 <version>1.12.1</version>
115 </dependency>
116 <!-- Actuator dependencies -->
117 <dependency>
118 <groupId>org.springframework.boot</groupId>
119 <artifactId>spring-boot-starter-actuator</artifactId>
120 </dependency>
121 <!--REQUIRED TO GENERATE DOCUMENTATION -->
122 <dependency>
123 <groupId>io.springfox</groupId>
124 <artifactId>springfox-swagger2</artifactId>
125 <version>${springfox.version}</version>
126 </dependency>
127 <dependency>
128 <groupId>io.springfox</groupId>
129 <artifactId>springfox-swagger-ui</artifactId>
130 <version>${springfox.version}</version>
131 </dependency>
132 <!-- For development help -->
133 <dependency>
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-devtools</artifactId>
136 <optional>true</optional>
137 </dependency>
138 <dependency>
139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-configuration-processor</artifactId>
141 <optional>true</optional>
142 </dependency>
143 <!-- TEST -->
144 <dependency>
145 <groupId>org.springframework.boot</groupId>
146 <artifactId>spring-boot-starter-test</artifactId>
147 <scope>test</scope>
148 </dependency>
149 <dependency>
150 <groupId>org.awaitility</groupId>
151 <artifactId>awaitility</artifactId>
152 <scope>test</scope>
153 </dependency>
154 <dependency>
155 <groupId>io.projectreactor</groupId>
156 <artifactId>reactor-test</artifactId>
157 <scope>test</scope>
158 </dependency>
159 <dependency>
160 <groupId>org.junit.jupiter</groupId>
161 <artifactId>junit-jupiter-engine</artifactId>
162 <scope>test</scope>
163 </dependency>
164 <dependency>
165 <groupId>org.mockito</groupId>
166 <artifactId>mockito-junit-jupiter</artifactId>
167 <scope>test</scope>
168 </dependency>
169 <dependency>
170 <groupId>org.mockito</groupId>
171 <artifactId>mockito-core</artifactId>
172 <scope>test</scope>
173 </dependency>
174 <dependency>
175 <groupId>com.squareup.okhttp3</groupId>
176 <artifactId>mockwebserver</artifactId>
177 <scope>test</scope>
178 </dependency>
179 </dependencies>
180 <build>
181 <plugins>
182 <plugin>
183 <groupId>org.springframework.boot</groupId>
184 <artifactId>spring-boot-maven-plugin</artifactId>
185 </plugin>
186 <plugin>
187 <groupId>net.revelc.code.formatter</groupId>
188 <artifactId>formatter-maven-plugin</artifactId>
189 <version>${formatter-maven-plugin.version}</version>
190 <configuration>
191 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
192 </configuration>
193 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
194 spotless:apply process-sources -->
195 </plugin>
196 <plugin>
197 <groupId>com.diffplug.spotless</groupId>
198 <artifactId>spotless-maven-plugin</artifactId>
199 <version>${spotless-maven-plugin.version}</version>
200 <configuration>
201 <java>
202 <removeUnusedImports />
203 <importOrder>
204 <order>com,java,org</order>
205 </importOrder>
206 </java>
207 </configuration>
208 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
209 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
210 source files -->
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.swagger.codegen.v3</groupId>
262 <artifactId>swagger-codegen-maven-plugin</artifactId>
263 <version>${swagger-codegen-maven-plugin.version}</version>
264 <executions>
265 <execution>
266 <phase>test</phase>
267 <goals>
268 <goal>generate</goal>
269 </goals>
270 <configuration>
271 <inputSpec>${project.basedir}/api/ics-api.json</inputSpec>
272 <language>openapi-yaml</language>
273 <output>${project.basedir}/api</output>
274 <configOptions>
275 <outputFile>ics-api.yaml</outputFile>
276 </configOptions>
277 </configuration>
278 </execution>
279 </executions>
280 </plugin>
281 <plugin>
282 <groupId>io.fabric8</groupId>
283 <artifactId>docker-maven-plugin</artifactId>
284 <version>${docker-maven-plugin}</version>
285 <inherited>false</inherited>
286 <executions>
287 <execution>
288 <id>generate-nonrtric-plt-informationcoordinatorservice-image</id>
289 <phase>package</phase>
290 <goals>
291 <goal>build</goal>
292 </goals>
293 <configuration>
294 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
295 <images>
296 <image>
297 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
298 <build>
299 <cleanup>try</cleanup>
300 <contextDir>${basedir}</contextDir>
301 <dockerFile>Dockerfile</dockerFile>
302 <args>
303 <JAR>${project.build.finalName}.jar</JAR>
304 </args>
305 <tags>
306 <tag>${project.version}</tag>
307 </tags>
308 </build>
309 </image>
310 </images>
311 </configuration>
312 </execution>
313 <execution>
314 <id>push-nonrtric-plt-informationcoordinatorservice-image</id>
315 <goals>
316 <goal>build</goal>
317 <goal>push</goal>
318 </goals>
319 <configuration>
320 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
321 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
322 <images>
323 <image>
324 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
325 <build>
326 <contextDir>${basedir}</contextDir>
327 <dockerFile>Dockerfile</dockerFile>
328 <args>
329 <JAR>${project.build.finalName}.jar</JAR>
330 </args>
331 <tags>
332 <tag>${project.version}</tag>
333 <tag>latest</tag>
334 </tags>
335 </build>
336 </image>
337 </images>
338 </configuration>
339 </execution>
340 </executions>
341 </plugin>
PatrikBuhrb799cd42022-05-12 14:30:46 +0200342 </plugins>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200343 </build>
344 <issueManagement>
345 <system>JIRA</system>
346 <url>https://jira.o-ran-sc.org/</url>
347 </issueManagement>
PatrikBuhrb799cd42022-05-12 14:30:46 +0200348</project>