blob: 74517739326d9b42c86fea760049852afeb340d1 [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>
PatrikBuhr6f135182022-08-05 08:43:51 +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>
138 <!-- TEST -->
139 <dependency>
PatrikBuhr6f135182022-08-05 08:43:51 +0200140 <groupId>org.springdoc</groupId>
141 <artifactId>springdoc-openapi-ui</artifactId>
142 <version>1.6.6</version>
143 <scope>test</scope>
144 </dependency>
145 <dependency>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200146 <groupId>org.springframework.boot</groupId>
147 <artifactId>spring-boot-starter-test</artifactId>
148 <scope>test</scope>
149 </dependency>
150 <dependency>
151 <groupId>org.awaitility</groupId>
152 <artifactId>awaitility</artifactId>
153 <scope>test</scope>
154 </dependency>
155 <dependency>
156 <groupId>io.projectreactor</groupId>
157 <artifactId>reactor-test</artifactId>
158 <scope>test</scope>
159 </dependency>
160 <dependency>
161 <groupId>org.junit.jupiter</groupId>
162 <artifactId>junit-jupiter-engine</artifactId>
163 <scope>test</scope>
164 </dependency>
165 <dependency>
166 <groupId>org.mockito</groupId>
167 <artifactId>mockito-junit-jupiter</artifactId>
168 <scope>test</scope>
169 </dependency>
170 <dependency>
171 <groupId>org.mockito</groupId>
172 <artifactId>mockito-core</artifactId>
173 <scope>test</scope>
174 </dependency>
175 <dependency>
176 <groupId>com.squareup.okhttp3</groupId>
177 <artifactId>mockwebserver</artifactId>
178 <scope>test</scope>
179 </dependency>
180 </dependencies>
181 <build>
182 <plugins>
183 <plugin>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-maven-plugin</artifactId>
186 </plugin>
187 <plugin>
188 <groupId>net.revelc.code.formatter</groupId>
189 <artifactId>formatter-maven-plugin</artifactId>
190 <version>${formatter-maven-plugin.version}</version>
191 <configuration>
192 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
193 </configuration>
194 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
195 spotless:apply process-sources -->
196 </plugin>
197 <plugin>
198 <groupId>com.diffplug.spotless</groupId>
199 <artifactId>spotless-maven-plugin</artifactId>
200 <version>${spotless-maven-plugin.version}</version>
201 <configuration>
202 <java>
203 <removeUnusedImports />
204 <importOrder>
205 <order>com,java,org</order>
206 </importOrder>
207 </java>
208 </configuration>
209 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
210 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
211 source files -->
212 </plugin>
213 <plugin>
214 <groupId>org.apache.maven.plugins</groupId>
215 <artifactId>maven-surefire-plugin</artifactId>
216 <configuration>
217 <skipTests>false</skipTests>
218 </configuration>
219 </plugin>
220 <plugin>
221 <artifactId>maven-failsafe-plugin</artifactId>
222 </plugin>
223 <plugin>
224 <groupId>org.codehaus.mojo</groupId>
225 <artifactId>build-helper-maven-plugin</artifactId>
226 <executions>
227 <execution>
228 <id>add-source</id>
229 <phase>generate-sources</phase>
230 <goals>
231 <goal>add-source</goal>
232 </goals>
233 <configuration>
234 <sources>
235 <source>${project.build.directory}/generated-sources/annotations/</source>
236 </sources>
237 </configuration>
238 </execution>
239 </executions>
240 </plugin>
241 <plugin>
242 <groupId>org.jacoco</groupId>
243 <artifactId>jacoco-maven-plugin</artifactId>
244 <version>${jacoco-maven-plugin.version}</version>
245 <executions>
246 <execution>
247 <id>default-prepare-agent</id>
248 <goals>
249 <goal>prepare-agent</goal>
250 </goals>
251 </execution>
252 <execution>
253 <id>default-report</id>
254 <phase>prepare-package</phase>
255 <goals>
256 <goal>report</goal>
257 </goals>
258 </execution>
259 </executions>
260 </plugin>
261 <plugin>
262 <groupId>io.swagger.codegen.v3</groupId>
263 <artifactId>swagger-codegen-maven-plugin</artifactId>
264 <version>${swagger-codegen-maven-plugin.version}</version>
265 <executions>
266 <execution>
267 <phase>test</phase>
268 <goals>
269 <goal>generate</goal>
270 </goals>
271 <configuration>
272 <inputSpec>${project.basedir}/api/ics-api.json</inputSpec>
273 <language>openapi-yaml</language>
274 <output>${project.basedir}/api</output>
275 <configOptions>
276 <outputFile>ics-api.yaml</outputFile>
277 </configOptions>
278 </configuration>
279 </execution>
280 </executions>
281 </plugin>
282 <plugin>
283 <groupId>io.fabric8</groupId>
284 <artifactId>docker-maven-plugin</artifactId>
285 <version>${docker-maven-plugin}</version>
286 <inherited>false</inherited>
287 <executions>
288 <execution>
289 <id>generate-nonrtric-plt-informationcoordinatorservice-image</id>
290 <phase>package</phase>
291 <goals>
292 <goal>build</goal>
293 </goals>
294 <configuration>
295 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
296 <images>
297 <image>
298 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
299 <build>
300 <cleanup>try</cleanup>
301 <contextDir>${basedir}</contextDir>
302 <dockerFile>Dockerfile</dockerFile>
303 <args>
304 <JAR>${project.build.finalName}.jar</JAR>
305 </args>
306 <tags>
307 <tag>${project.version}</tag>
308 </tags>
309 </build>
310 </image>
311 </images>
312 </configuration>
313 </execution>
314 <execution>
315 <id>push-nonrtric-plt-informationcoordinatorservice-image</id>
316 <goals>
317 <goal>build</goal>
318 <goal>push</goal>
319 </goals>
320 <configuration>
321 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
322 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
323 <images>
324 <image>
325 <name>o-ran-sc/nonrtric-plt-informationcoordinatorservice:${project.version}</name>
326 <build>
327 <contextDir>${basedir}</contextDir>
328 <dockerFile>Dockerfile</dockerFile>
329 <args>
330 <JAR>${project.build.finalName}.jar</JAR>
331 </args>
332 <tags>
333 <tag>${project.version}</tag>
334 <tag>latest</tag>
335 </tags>
336 </build>
337 </image>
338 </images>
339 </configuration>
340 </execution>
341 </executions>
342 </plugin>
PatrikBuhrb799cd42022-05-12 14:30:46 +0200343 </plugins>
elinuxhenrik93c5a6a2022-04-04 15:47:19 +0200344 </build>
345 <issueManagement>
346 <system>JIRA</system>
347 <url>https://jira.o-ran-sc.org/</url>
348 </issueManagement>
elinuxhenrikbc687e32022-06-30 13:50:45 +0200349</project>