blob: e89058a27350acdd199982daa782f2c2abd28596 [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>
elinuxhenrikbc687e32022-06-30 13:50:45 +020034 <version>1.4.0-SNAPSHOT</version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020035 <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>
PatrikBuhr65bb65d2022-10-17 08:20:53 +020063 <dependencies>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020064 <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</groupId>
78 <artifactId>spring-webflux</artifactId>
79 </dependency>
80 <dependency>
81 <groupId>io.swagger.core.v3</groupId>
82 <artifactId>swagger-jaxrs2</artifactId>
83 <version>${swagger.version}</version>
84 </dependency>
85 <dependency>
86 <groupId>io.swagger.core.v3</groupId>
87 <artifactId>swagger-jaxrs2-servlet-initializer</artifactId>
88 <version>${swagger.version}</version>
89 </dependency>
90 <dependency>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020091 <groupId>com.google.code.gson</groupId>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020092 <artifactId>gson</artifactId>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020093 <version>${gson.version}</version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020094 </dependency>
95 <dependency>
96 <groupId>org.json</groupId>
97 <artifactId>json</artifactId>
98 <version>${json.version}</version>
99 </dependency>
100 <dependency>
101 <groupId>org.projectlombok</groupId>
102 <artifactId>lombok</artifactId>
103 <scope>provided</scope>
104 </dependency>
105 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
106 <dependency>
107 <groupId>com.github.erosb</groupId>
108 <artifactId>everit-json-schema</artifactId>
109 <version>1.12.1</version>
110 </dependency>
111 <!-- Actuator dependencies -->
112 <dependency>
113 <groupId>org.springframework.boot</groupId>
114 <artifactId>spring-boot-starter-actuator</artifactId>
115 </dependency>
116 <!--REQUIRED TO GENERATE DOCUMENTATION -->
117 <dependency>
118 <groupId>io.springfox</groupId>
119 <artifactId>springfox-swagger2</artifactId>
120 <version>${springfox.version}</version>
121 </dependency>
122 <dependency>
123 <groupId>io.springfox</groupId>
124 <artifactId>springfox-swagger-ui</artifactId>
125 <version>${springfox.version}</version>
126 </dependency>
127 <!-- For development help -->
128 <dependency>
129 <groupId>org.springframework.boot</groupId>
130 <artifactId>spring-boot-devtools</artifactId>
131 <optional>true</optional>
132 </dependency>
133 <dependency>
134 <groupId>org.springframework.boot</groupId>
135 <artifactId>spring-boot-configuration-processor</artifactId>
136 <optional>true</optional>
137 </dependency>
PatrikBuhr65bb65d2022-10-17 08:20:53 +0200138 <dependency>
139 <groupId>software.amazon.awssdk</groupId>
140 <artifactId>s3</artifactId>
141 <version>2.17.292</version>
142 </dependency>
143 <dependency>
144 <groupId>com.amazonaws</groupId>
145 <artifactId>aws-java-sdk</artifactId>
146 <version>1.12.321</version>
147 </dependency>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200148 <!-- TEST -->
149 <dependency>
PatrikBuhr6f135182022-08-05 08:43:51 +0200150 <groupId>org.springdoc</groupId>
151 <artifactId>springdoc-openapi-ui</artifactId>
152 <version>1.6.6</version>
153 <scope>test</scope>
154 </dependency>
155 <dependency>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200156 <groupId>org.springframework.boot</groupId>
157 <artifactId>spring-boot-starter-test</artifactId>
158 <scope>test</scope>
159 </dependency>
160 <dependency>
161 <groupId>org.awaitility</groupId>
162 <artifactId>awaitility</artifactId>
163 <scope>test</scope>
164 </dependency>
165 <dependency>
166 <groupId>io.projectreactor</groupId>
167 <artifactId>reactor-test</artifactId>
168 <scope>test</scope>
169 </dependency>
170 <dependency>
171 <groupId>org.junit.jupiter</groupId>
172 <artifactId>junit-jupiter-engine</artifactId>
173 <scope>test</scope>
174 </dependency>
175 <dependency>
176 <groupId>org.mockito</groupId>
177 <artifactId>mockito-junit-jupiter</artifactId>
178 <scope>test</scope>
179 </dependency>
180 <dependency>
181 <groupId>org.mockito</groupId>
182 <artifactId>mockito-core</artifactId>
183 <scope>test</scope>
184 </dependency>
185 <dependency>
186 <groupId>com.squareup.okhttp3</groupId>
187 <artifactId>mockwebserver</artifactId>
188 <scope>test</scope>
189 </dependency>
190 </dependencies>
191 <build>
192 <plugins>
193 <plugin>
194 <groupId>org.springframework.boot</groupId>
195 <artifactId>spring-boot-maven-plugin</artifactId>
196 </plugin>
197 <plugin>
198 <groupId>net.revelc.code.formatter</groupId>
199 <artifactId>formatter-maven-plugin</artifactId>
200 <version>${formatter-maven-plugin.version}</version>
201 <configuration>
202 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
203 </configuration>
204 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
205 spotless:apply process-sources -->
206 </plugin>
207 <plugin>
208 <groupId>com.diffplug.spotless</groupId>
209 <artifactId>spotless-maven-plugin</artifactId>
210 <version>${spotless-maven-plugin.version}</version>
211 <configuration>
212 <java>
213 <removeUnusedImports />
214 <importOrder>
215 <order>com,java,org</order>
216 </importOrder>
217 </java>
218 </configuration>
219 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
220 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
221 source files -->
222 </plugin>
223 <plugin>
224 <groupId>org.apache.maven.plugins</groupId>
225 <artifactId>maven-surefire-plugin</artifactId>
226 <configuration>
227 <skipTests>false</skipTests>
228 </configuration>
229 </plugin>
230 <plugin>
231 <artifactId>maven-failsafe-plugin</artifactId>
232 </plugin>
233 <plugin>
234 <groupId>org.codehaus.mojo</groupId>
235 <artifactId>build-helper-maven-plugin</artifactId>
236 <executions>
237 <execution>
238 <id>add-source</id>
239 <phase>generate-sources</phase>
240 <goals>
241 <goal>add-source</goal>
242 </goals>
243 <configuration>
244 <sources>
245 <source>${project.build.directory}/generated-sources/annotations/</source>
246 </sources>
247 </configuration>
248 </execution>
249 </executions>
250 </plugin>
251 <plugin>
252 <groupId>org.jacoco</groupId>
253 <artifactId>jacoco-maven-plugin</artifactId>
254 <version>${jacoco-maven-plugin.version}</version>
255 <executions>
256 <execution>
257 <id>default-prepare-agent</id>
258 <goals>
259 <goal>prepare-agent</goal>
260 </goals>
261 </execution>
262 <execution>
263 <id>default-report</id>
264 <phase>prepare-package</phase>
265 <goals>
266 <goal>report</goal>
267 </goals>
268 </execution>
269 </executions>
270 </plugin>
271 <plugin>
272 <groupId>io.swagger.codegen.v3</groupId>
273 <artifactId>swagger-codegen-maven-plugin</artifactId>
274 <version>${swagger-codegen-maven-plugin.version}</version>
275 <executions>
276 <execution>
277 <phase>test</phase>
278 <goals>
279 <goal>generate</goal>
280 </goals>
281 <configuration>
282 <inputSpec>${project.basedir}/api/ics-api.json</inputSpec>
283 <language>openapi-yaml</language>
284 <output>${project.basedir}/api</output>
285 <configOptions>
286 <outputFile>ics-api.yaml</outputFile>
287 </configOptions>
288 </configuration>
289 </execution>
290 </executions>
291 </plugin>
292 <plugin>
293 <groupId>io.fabric8</groupId>
294 <artifactId>docker-maven-plugin</artifactId>
295 <version>${docker-maven-plugin}</version>
296 <inherited>false</inherited>
297 <executions>
298 <execution>
299 <id>generate-nonrtric-plt-informationcoordinatorservice-image</id>
300 <phase>package</phase>
301 <goals>
302 <goal>build</goal>
303 </goals>
304 <configuration>
305 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
306 <images>
307 <image>
308 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
309 <build>
310 <cleanup>try</cleanup>
311 <contextDir>${basedir}</contextDir>
312 <dockerFile>Dockerfile</dockerFile>
313 <args>
314 <JAR>${project.build.finalName}.jar</JAR>
315 </args>
316 <tags>
317 <tag>${project.version}</tag>
318 </tags>
319 </build>
320 </image>
321 </images>
322 </configuration>
323 </execution>
324 <execution>
325 <id>push-nonrtric-plt-informationcoordinatorservice-image</id>
326 <goals>
327 <goal>build</goal>
328 <goal>push</goal>
329 </goals>
330 <configuration>
331 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
332 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
333 <images>
334 <image>
335 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
336 <build>
337 <contextDir>${basedir}</contextDir>
338 <dockerFile>Dockerfile</dockerFile>
339 <args>
340 <JAR>${project.build.finalName}.jar</JAR>
341 </args>
342 <tags>
343 <tag>${project.version}</tag>
344 <tag>latest</tag>
345 </tags>
346 </build>
347 </image>
348 </images>
349 </configuration>
350 </execution>
351 </executions>
352 </plugin>
PatrikBuhrb799cd42022-05-12 14:30:46 +0200353 </plugins>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200354 </build>
355 <issueManagement>
356 <system>JIRA</system>
357 <url>https://jira.o-ran-sc.org/</url>
358 </issueManagement>
PatrikBuhr65bb65d2022-10-17 08:20:53 +0200359</project>