blob: 3568ce40fc74b755228c66c7652a5236197adcf1 [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>
PatrikBuhr725665c2023-03-01 13:02:05 +010029 <version>3.0.3</version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020030 <relativePath />
31 </parent>
elinuxhenrik75450702022-04-08 08:54:53 +020032 <groupId>org.o-ran-sc.nonrtric.plt</groupId>
33 <artifactId>informationcoordinatorservice</artifactId>
elinuxhenrik75b73902022-12-12 14:38:41 +010034 <version>1.5.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>
PatrikBuhr44fe7892023-02-03 11:28:59 +010049 <java.version>17</java.version>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020050 <gson.version>2.9.0</gson.version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020051 <json.version>20211205</json.version>
52 <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
53 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
54 <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>
55 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
56 <docker-maven-plugin>0.30.0</docker-maven-plugin>
57 <sonar-maven-plugin.version>3.7.0.1746</sonar-maven-plugin.version>
PatrikBuhr44fe7892023-02-03 11:28:59 +010058 <jacoco-maven-plugin.version>0.8.8</jacoco-maven-plugin.version>
59 <springdoc.version>2.0.2</springdoc.version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020060 <exec.skip>true</exec.skip>
61 </properties>
PatrikBuhr65bb65d2022-10-17 08:20:53 +020062 <dependencies>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020063 <dependency>
PatrikBuhr44fe7892023-02-03 11:28:59 +010064 <groupId>org.springdoc</groupId>
65 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
66 <version>${springdoc.version}</version>
67 </dependency>
68 <dependency>
69 <groupId>org.springdoc</groupId>
70 <artifactId>springdoc-openapi-ui</artifactId>
71 <version>${springdoc.version}</version>
72 </dependency>
73 <dependency>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020074 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter-web</artifactId>
76 </dependency>
77 <dependency>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-thymeleaf</artifactId>
80 </dependency>
81 <dependency>
82 <groupId>org.springframework.boot</groupId>
83 <artifactId>spring-boot-starter-webflux</artifactId>
84 </dependency>
85 <dependency>
86 <groupId>org.springframework</groupId>
87 <artifactId>spring-webflux</artifactId>
88 </dependency>
89 <dependency>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020090 <groupId>com.google.code.gson</groupId>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020091 <artifactId>gson</artifactId>
PatrikBuhr9d9519c2022-05-31 14:01:51 +020092 <version>${gson.version}</version>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +020093 </dependency>
94 <dependency>
95 <groupId>org.json</groupId>
96 <artifactId>json</artifactId>
97 <version>${json.version}</version>
98 </dependency>
99 <dependency>
100 <groupId>org.projectlombok</groupId>
101 <artifactId>lombok</artifactId>
102 <scope>provided</scope>
103 </dependency>
104 <!-- https://mvnrepository.com/artifact/com.github.erosb/everit-json-schema -->
105 <dependency>
106 <groupId>com.github.erosb</groupId>
107 <artifactId>everit-json-schema</artifactId>
108 <version>1.12.1</version>
109 </dependency>
110 <!-- Actuator dependencies -->
111 <dependency>
112 <groupId>org.springframework.boot</groupId>
113 <artifactId>spring-boot-starter-actuator</artifactId>
114 </dependency>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200115 <!-- For development help -->
116 <dependency>
117 <groupId>org.springframework.boot</groupId>
118 <artifactId>spring-boot-devtools</artifactId>
119 <optional>true</optional>
120 </dependency>
121 <dependency>
122 <groupId>org.springframework.boot</groupId>
123 <artifactId>spring-boot-configuration-processor</artifactId>
124 <optional>true</optional>
125 </dependency>
PatrikBuhr65bb65d2022-10-17 08:20:53 +0200126 <dependency>
127 <groupId>software.amazon.awssdk</groupId>
128 <artifactId>s3</artifactId>
129 <version>2.17.292</version>
130 </dependency>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200131 <!-- TEST -->
132 <dependency>
PatrikBuhr6f135182022-08-05 08:43:51 +0200133 <groupId>org.springdoc</groupId>
134 <artifactId>springdoc-openapi-ui</artifactId>
135 <version>1.6.6</version>
136 <scope>test</scope>
137 </dependency>
138 <dependency>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200139 <groupId>org.springframework.boot</groupId>
140 <artifactId>spring-boot-starter-test</artifactId>
141 <scope>test</scope>
142 </dependency>
143 <dependency>
144 <groupId>org.awaitility</groupId>
145 <artifactId>awaitility</artifactId>
146 <scope>test</scope>
147 </dependency>
148 <dependency>
149 <groupId>io.projectreactor</groupId>
150 <artifactId>reactor-test</artifactId>
151 <scope>test</scope>
152 </dependency>
153 <dependency>
154 <groupId>org.junit.jupiter</groupId>
155 <artifactId>junit-jupiter-engine</artifactId>
156 <scope>test</scope>
157 </dependency>
158 <dependency>
159 <groupId>org.mockito</groupId>
160 <artifactId>mockito-junit-jupiter</artifactId>
161 <scope>test</scope>
162 </dependency>
163 <dependency>
164 <groupId>org.mockito</groupId>
165 <artifactId>mockito-core</artifactId>
166 <scope>test</scope>
167 </dependency>
168 <dependency>
169 <groupId>com.squareup.okhttp3</groupId>
170 <artifactId>mockwebserver</artifactId>
171 <scope>test</scope>
172 </dependency>
173 </dependencies>
174 <build>
175 <plugins>
176 <plugin>
177 <groupId>org.springframework.boot</groupId>
178 <artifactId>spring-boot-maven-plugin</artifactId>
179 </plugin>
180 <plugin>
181 <groupId>net.revelc.code.formatter</groupId>
182 <artifactId>formatter-maven-plugin</artifactId>
183 <version>${formatter-maven-plugin.version}</version>
184 <configuration>
185 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
186 </configuration>
187 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
188 spotless:apply process-sources -->
189 </plugin>
190 <plugin>
191 <groupId>com.diffplug.spotless</groupId>
192 <artifactId>spotless-maven-plugin</artifactId>
193 <version>${spotless-maven-plugin.version}</version>
194 <configuration>
195 <java>
196 <removeUnusedImports />
197 <importOrder>
198 <order>com,java,org</order>
199 </importOrder>
200 </java>
201 </configuration>
202 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
203 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
204 source files -->
205 </plugin>
206 <plugin>
207 <groupId>org.apache.maven.plugins</groupId>
208 <artifactId>maven-surefire-plugin</artifactId>
209 <configuration>
210 <skipTests>false</skipTests>
211 </configuration>
212 </plugin>
213 <plugin>
214 <artifactId>maven-failsafe-plugin</artifactId>
215 </plugin>
216 <plugin>
217 <groupId>org.codehaus.mojo</groupId>
218 <artifactId>build-helper-maven-plugin</artifactId>
219 <executions>
220 <execution>
221 <id>add-source</id>
222 <phase>generate-sources</phase>
223 <goals>
224 <goal>add-source</goal>
225 </goals>
226 <configuration>
227 <sources>
228 <source>${project.build.directory}/generated-sources/annotations/</source>
229 </sources>
230 </configuration>
231 </execution>
232 </executions>
233 </plugin>
234 <plugin>
235 <groupId>org.jacoco</groupId>
236 <artifactId>jacoco-maven-plugin</artifactId>
237 <version>${jacoco-maven-plugin.version}</version>
238 <executions>
239 <execution>
240 <id>default-prepare-agent</id>
241 <goals>
242 <goal>prepare-agent</goal>
243 </goals>
244 </execution>
245 <execution>
246 <id>default-report</id>
247 <phase>prepare-package</phase>
248 <goals>
249 <goal>report</goal>
250 </goals>
251 </execution>
252 </executions>
253 </plugin>
254 <plugin>
255 <groupId>io.swagger.codegen.v3</groupId>
256 <artifactId>swagger-codegen-maven-plugin</artifactId>
257 <version>${swagger-codegen-maven-plugin.version}</version>
258 <executions>
259 <execution>
260 <phase>test</phase>
261 <goals>
262 <goal>generate</goal>
263 </goals>
264 <configuration>
265 <inputSpec>${project.basedir}/api/ics-api.json</inputSpec>
266 <language>openapi-yaml</language>
267 <output>${project.basedir}/api</output>
268 <configOptions>
269 <outputFile>ics-api.yaml</outputFile>
270 </configOptions>
271 </configuration>
272 </execution>
273 </executions>
274 </plugin>
275 <plugin>
276 <groupId>io.fabric8</groupId>
277 <artifactId>docker-maven-plugin</artifactId>
278 <version>${docker-maven-plugin}</version>
279 <inherited>false</inherited>
280 <executions>
281 <execution>
282 <id>generate-nonrtric-plt-informationcoordinatorservice-image</id>
283 <phase>package</phase>
284 <goals>
285 <goal>build</goal>
286 </goals>
287 <configuration>
288 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
289 <images>
290 <image>
291 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
292 <build>
293 <cleanup>try</cleanup>
294 <contextDir>${basedir}</contextDir>
295 <dockerFile>Dockerfile</dockerFile>
296 <args>
297 <JAR>${project.build.finalName}.jar</JAR>
298 </args>
299 <tags>
300 <tag>${project.version}</tag>
301 </tags>
302 </build>
303 </image>
304 </images>
305 </configuration>
306 </execution>
307 <execution>
308 <id>push-nonrtric-plt-informationcoordinatorservice-image</id>
309 <goals>
310 <goal>build</goal>
311 <goal>push</goal>
312 </goals>
313 <configuration>
314 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
315 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
316 <images>
317 <image>
318 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
319 <build>
320 <contextDir>${basedir}</contextDir>
321 <dockerFile>Dockerfile</dockerFile>
322 <args>
323 <JAR>${project.build.finalName}.jar</JAR>
324 </args>
325 <tags>
326 <tag>${project.version}</tag>
327 <tag>latest</tag>
328 </tags>
329 </build>
330 </image>
331 </images>
332 </configuration>
333 </execution>
334 </executions>
335 </plugin>
PatrikBuhrb799cd42022-05-12 14:30:46 +0200336 </plugins>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200337 </build>
338 <issueManagement>
339 <system>JIRA</system>
340 <url>https://jira.o-ran-sc.org/</url>
341 </issueManagement>
PatrikBuhr725665c2023-03-01 13:02:05 +0100342</project>