blob: 5da52d34c80852ad3599b7254dd129e90a824acc [file] [log] [blame]
elinuxhenrik5ada5152020-10-19 10:39:59 +02001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3* ========================LICENSE_START=================================
4* O-RAN-SC
5* %%
6* Copyright (C) 2020 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
26 <parent>
27 <groupId>org.springframework.boot</groupId>
28 <artifactId>spring-boot-starter-parent</artifactId>
29 <version>2.3.4.RELEASE</version>
30 <relativePath />
31 </parent>
32 <groupId>org.o-ran-sc.nonrtric</groupId>
33 <artifactId>r-app-catalogue</artifactId>
elinuxhenrik32157222020-12-03 15:56:17 +010034 <version>1.1.0-SNAPSHOT</version>
elinuxhenrik5ada5152020-10-19 10:39:59 +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 <properties>
42 <java.version>11</java.version>
43 <swagger-annotations.version>1.5.22</swagger-annotations.version>
44 <springfox.version>2.9.2</springfox.version>
45 <jackson-databind-nullable.version>0.2.1</jackson-databind-nullable.version>
46 <openapi-generator-maven-plugin.version>4.3.1</openapi-generator-maven-plugin.version>
47 <swagger-codegen-maven-plugin.version>3.0.11</swagger-codegen-maven-plugin.version>
elinuxhenrik81ba9032021-01-07 16:50:20 +010048 <formatter-maven-plugin.version>2.12.2</formatter-maven-plugin.version>
49 <spotless-maven-plugin.version>1.24.3</spotless-maven-plugin.version>
elinuxhenrika2f7c312020-11-06 16:04:26 +010050 <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
elinuxhenrik5ada5152020-10-19 10:39:59 +020051 <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
52 </properties>
53
54 <dependencies>
55 <dependency>
56 <groupId>io.swagger</groupId>
57 <artifactId>swagger-annotations</artifactId>
58 <version>${swagger-annotations.version}</version>
59 </dependency>
60 <dependency>
61 <groupId>com.fasterxml.jackson.core</groupId>
62 <artifactId>jackson-annotations</artifactId>
63 </dependency>
64 <dependency>
65 <groupId>org.springframework</groupId>
66 <artifactId>spring-beans</artifactId>
67 </dependency>
68 <dependency>
69 <groupId>org.springframework.boot</groupId>
70 <artifactId>spring-boot-autoconfigure</artifactId>
71 </dependency>
72 <dependency>
73 <groupId>org.springframework</groupId>
74 <artifactId>spring-web</artifactId>
75 </dependency>
76 <dependency>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot</artifactId>
79 </dependency>
80 <dependency>
81 <groupId>org.springframework</groupId>
82 <artifactId>spring-webmvc</artifactId>
83 </dependency>
84 <dependency>
85 <groupId>org.springframework</groupId>
86 <artifactId>spring-context</artifactId>
87 </dependency>
88 <dependency>
89 <groupId>io.springfox</groupId>
90 <artifactId>springfox-swagger2</artifactId>
91 <version>${springfox.version}</version>
92 </dependency>
93 <dependency>
94 <groupId>io.springfox</groupId>
95 <artifactId>springfox-core</artifactId>
96 <version>${springfox.version}</version>
97 </dependency>
98 <dependency>
99 <groupId>io.springfox</groupId>
100 <artifactId>springfox-spring-web</artifactId>
101 <version>${springfox.version}</version>
102 </dependency>
103 <dependency>
104 <groupId>io.springfox</groupId>
105 <artifactId>springfox-spi</artifactId>
106 <version>${springfox.version}</version>
107 </dependency>
108 <dependency>
109 <groupId>org.assertj</groupId>
110 <artifactId>assertj-core</artifactId>
111 </dependency>
112 <dependency>
113 <groupId>org.apache.tomcat.embed</groupId>
114 <artifactId>tomcat-embed-core</artifactId>
115 </dependency>
116 <dependency>
117 <groupId>org.openapitools</groupId>
118 <artifactId>jackson-databind-nullable</artifactId>
119 <version>${jackson-databind-nullable.version}</version>
120 </dependency>
121 <dependency>
122 <groupId>javax.validation</groupId>
123 <artifactId>validation-api</artifactId>
124 </dependency>
125 <dependency>
126 <groupId>com.fasterxml.jackson.core</groupId>
127 <artifactId>jackson-databind</artifactId>
128 </dependency>
129 <dependency>
130 <groupId>org.yaml</groupId>
131 <artifactId>snakeyaml</artifactId>
132 <scope>runtime</scope>
133 </dependency>
134 <!-- TEST -->
135 <dependency>
136 <groupId>org.springframework</groupId>
137 <artifactId>spring-test</artifactId>
138 <scope>test</scope>
139 </dependency>
140 <dependency>
141 <groupId>org.junit.jupiter</groupId>
142 <artifactId>junit-jupiter-api</artifactId>
143 <scope>test</scope>
144 </dependency>
elinuxhenrik2d7ba052020-10-30 09:47:55 +0100145 <dependency>
146 <groupId>org.mockito</groupId>
147 <artifactId>mockito-junit-jupiter</artifactId>
148 <scope>test</scope>
149 </dependency>
150 <dependency>
151 <groupId>org.mockito</groupId>
152 <artifactId>mockito-core</artifactId>
153 <scope>test</scope>
154 </dependency>
155 <dependency>
156 <groupId>org.junit.jupiter</groupId>
157 <artifactId>junit-jupiter-engine</artifactId>
158 <scope>test</scope>
159 </dependency>
ychacon132dcaf2021-01-13 09:20:54 +0100160 <dependency>
161 <groupId>org.springframework.boot</groupId>
162 <artifactId>spring-boot-starter-test</artifactId>
163 <scope>test</scope>
164 </dependency>
165 <dependency>
166 <groupId>org.apache.httpcomponents</groupId>
167 <artifactId>httpclient</artifactId>
168 <scope>test</scope>
169 </dependency>
170
elinuxhenrik5ada5152020-10-19 10:39:59 +0200171 </dependencies>
172
173 <build>
174 <plugins>
175 <plugin>
elinuxhenrik59659e52020-11-27 16:08:41 +0100176 <groupId>org.springframework.boot</groupId>
177 <artifactId>spring-boot-maven-plugin</artifactId>
178 </plugin>
179 <plugin>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200180 <groupId>org.openapitools</groupId>
181 <artifactId>openapi-generator-maven-plugin</artifactId>
182 <version>${openapi-generator-maven-plugin.version}</version>
183 <executions>
184 <execution>
185 <goals>
186 <goal>generate</goal>
187 </goals>
188 <configuration>
189 <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
190 <generatorName>spring</generatorName>
191 <apiPackage>org.oransc.rappcatalogue.api</apiPackage>
192 <modelPackage>org.oransc.rappcatalogue.model</modelPackage>
elinuxhenrik59659e52020-11-27 16:08:41 +0100193 <invokerPackage>org.oransc.rappcatalogue</invokerPackage>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200194 <configOptions>
195 <delegatePattern>true</delegatePattern>
elinuxhenrik7851a892021-01-07 15:42:31 +0100196 <unhandledException>true</unhandledException>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200197 </configOptions>
198 </configuration>
199 </execution>
200 </executions>
201 </plugin>
202 <plugin>
203 <groupId>io.swagger.codegen.v3</groupId>
204 <artifactId>swagger-codegen-maven-plugin</artifactId>
205 <version>${swagger-codegen-maven-plugin.version}</version>
206 <executions>
207 <execution>
208 <goals>
209 <goal>generate</goal>
210 </goals>
211 <configuration>
212 <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
213 <language>openapi-yaml</language>
214 <output>${project.basedir}/api/</output>
215 <configOptions>
216 <outputFile>rac-api.yaml</outputFile>
217 </configOptions>
218 </configuration>
219 </execution>
220 </executions>
221 </plugin>
222 <plugin>
elinuxhenrik81ba9032021-01-07 16:50:20 +0100223 <groupId>net.revelc.code.formatter</groupId>
224 <artifactId>formatter-maven-plugin</artifactId>
225 <version>${formatter-maven-plugin.version}</version>
226 <configuration>
227 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
228 </configuration>
229 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
230 spotless:apply process-sources -->
231 </plugin>
232 <plugin>
233 <groupId>com.diffplug.spotless</groupId>
234 <artifactId>spotless-maven-plugin</artifactId>
235 <version>${spotless-maven-plugin.version}</version>
236 <configuration>
237 <java>
238 <removeUnusedImports />
239 <importOrder>
240 <order>com,java,javax,org</order>
241 </importOrder>
242 </java>
243 </configuration>
244 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
245 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
246 source files -->
247 </plugin>
248 <plugin>
elinuxhenrika2f7c312020-11-06 16:04:26 +0100249 <groupId>org.jacoco</groupId>
250 <artifactId>jacoco-maven-plugin</artifactId>
251 <version>${jacoco-maven-plugin.version}</version>
252 <executions>
253 <execution>
254 <id>default-prepare-agent</id>
255 <goals>
256 <goal>prepare-agent</goal>
257 </goals>
258 </execution>
259 <execution>
260 <id>default-report</id>
261 <phase>prepare-package</phase>
262 <goals>
263 <goal>report</goal>
264 </goals>
265 </execution>
266 </executions>
267 </plugin>
268 <plugin>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200269 <groupId>io.fabric8</groupId>
270 <artifactId>docker-maven-plugin</artifactId>
271 <version>${docker-maven-plugin.version}</version>
272 <inherited>false</inherited>
273 <executions>
274 <execution>
275 <id>generate-r-app-catalogue-image</id>
276 <phase>package</phase>
277 <goals>
278 <goal>build</goal>
279 </goals>
280 <configuration>
281 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
282 <images>
283 <image>
284 <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
285 <build>
286 <cleanup>try</cleanup>
287 <contextDir>${basedir}</contextDir>
288 <dockerFile>Dockerfile</dockerFile>
289 <args>
290 <JAR>${project.build.finalName}.jar</JAR>
291 </args>
292 <tags>
293 <tag>${project.version}</tag>
294 </tags>
295 </build>
296 </image>
297 </images>
298 </configuration>
299 </execution>
300 <execution>
301 <id>push-r-app-catalogue-image</id>
302 <goals>
303 <goal>build</goal>
304 <goal>push</goal>
305 </goals>
306 <configuration>
307 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
308 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
309 <images>
310 <image>
311 <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
312 <build>
313 <contextDir>${basedir}</contextDir>
314 <dockerFile>Dockerfile</dockerFile>
315 <args>
316 <JAR>${project.build.finalName}.jar</JAR>
317 </args>
318 <tags>
319 <tag>${project.version}</tag>
320 <tag>latest</tag>
321 </tags>
322 </build>
323 </image>
324 </images>
325 </configuration>
326 </execution>
327 </executions>
328 </plugin>
329 </plugins>
330 </build>
331</project>