blob: 07e4c39dc86f32bc65c5a86b3e88536b66497dc4 [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>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200160 </dependencies>
161
162 <build>
163 <plugins>
164 <plugin>
elinuxhenrik59659e52020-11-27 16:08:41 +0100165 <groupId>org.springframework.boot</groupId>
166 <artifactId>spring-boot-maven-plugin</artifactId>
167 </plugin>
168 <plugin>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200169 <groupId>org.openapitools</groupId>
170 <artifactId>openapi-generator-maven-plugin</artifactId>
171 <version>${openapi-generator-maven-plugin.version}</version>
172 <executions>
173 <execution>
174 <goals>
175 <goal>generate</goal>
176 </goals>
177 <configuration>
178 <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
179 <generatorName>spring</generatorName>
180 <apiPackage>org.oransc.rappcatalogue.api</apiPackage>
181 <modelPackage>org.oransc.rappcatalogue.model</modelPackage>
elinuxhenrik59659e52020-11-27 16:08:41 +0100182 <invokerPackage>org.oransc.rappcatalogue</invokerPackage>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200183 <configOptions>
184 <delegatePattern>true</delegatePattern>
elinuxhenrik7851a892021-01-07 15:42:31 +0100185 <unhandledException>true</unhandledException>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200186 </configOptions>
187 </configuration>
188 </execution>
189 </executions>
190 </plugin>
191 <plugin>
192 <groupId>io.swagger.codegen.v3</groupId>
193 <artifactId>swagger-codegen-maven-plugin</artifactId>
194 <version>${swagger-codegen-maven-plugin.version}</version>
195 <executions>
196 <execution>
197 <goals>
198 <goal>generate</goal>
199 </goals>
200 <configuration>
201 <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
202 <language>openapi-yaml</language>
203 <output>${project.basedir}/api/</output>
204 <configOptions>
205 <outputFile>rac-api.yaml</outputFile>
206 </configOptions>
207 </configuration>
208 </execution>
209 </executions>
210 </plugin>
211 <plugin>
elinuxhenrik81ba9032021-01-07 16:50:20 +0100212 <groupId>net.revelc.code.formatter</groupId>
213 <artifactId>formatter-maven-plugin</artifactId>
214 <version>${formatter-maven-plugin.version}</version>
215 <configuration>
216 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
217 </configuration>
218 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
219 spotless:apply process-sources -->
220 </plugin>
221 <plugin>
222 <groupId>com.diffplug.spotless</groupId>
223 <artifactId>spotless-maven-plugin</artifactId>
224 <version>${spotless-maven-plugin.version}</version>
225 <configuration>
226 <java>
227 <removeUnusedImports />
228 <importOrder>
229 <order>com,java,javax,org</order>
230 </importOrder>
231 </java>
232 </configuration>
233 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
234 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
235 source files -->
236 </plugin>
237 <plugin>
elinuxhenrika2f7c312020-11-06 16:04:26 +0100238 <groupId>org.jacoco</groupId>
239 <artifactId>jacoco-maven-plugin</artifactId>
240 <version>${jacoco-maven-plugin.version}</version>
241 <executions>
242 <execution>
243 <id>default-prepare-agent</id>
244 <goals>
245 <goal>prepare-agent</goal>
246 </goals>
247 </execution>
248 <execution>
249 <id>default-report</id>
250 <phase>prepare-package</phase>
251 <goals>
252 <goal>report</goal>
253 </goals>
254 </execution>
255 </executions>
256 </plugin>
257 <plugin>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200258 <groupId>io.fabric8</groupId>
259 <artifactId>docker-maven-plugin</artifactId>
260 <version>${docker-maven-plugin.version}</version>
261 <inherited>false</inherited>
262 <executions>
263 <execution>
264 <id>generate-r-app-catalogue-image</id>
265 <phase>package</phase>
266 <goals>
267 <goal>build</goal>
268 </goals>
269 <configuration>
270 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
271 <images>
272 <image>
273 <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
274 <build>
275 <cleanup>try</cleanup>
276 <contextDir>${basedir}</contextDir>
277 <dockerFile>Dockerfile</dockerFile>
278 <args>
279 <JAR>${project.build.finalName}.jar</JAR>
280 </args>
281 <tags>
282 <tag>${project.version}</tag>
283 </tags>
284 </build>
285 </image>
286 </images>
287 </configuration>
288 </execution>
289 <execution>
290 <id>push-r-app-catalogue-image</id>
291 <goals>
292 <goal>build</goal>
293 <goal>push</goal>
294 </goals>
295 <configuration>
296 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
297 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
298 <images>
299 <image>
300 <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
301 <build>
302 <contextDir>${basedir}</contextDir>
303 <dockerFile>Dockerfile</dockerFile>
304 <args>
305 <JAR>${project.build.finalName}.jar</JAR>
306 </args>
307 <tags>
308 <tag>${project.version}</tag>
309 <tag>latest</tag>
310 </tags>
311 </build>
312 </image>
313 </images>
314 </configuration>
315 </execution>
316 </executions>
317 </plugin>
318 </plugins>
319 </build>
320</project>