blob: a2a2dfc1541c2ee1eb8ed1ac78cdad013691f97e [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>
34 <version>1.0.0-SNAPSHOT</version>
35 <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>
elinuxhenrika2f7c312020-11-06 16:04:26 +010048 <jacoco-maven-plugin.version>0.8.6</jacoco-maven-plugin.version>
elinuxhenrik5ada5152020-10-19 10:39:59 +020049 <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
50 </properties>
51
52 <dependencies>
53 <dependency>
54 <groupId>io.swagger</groupId>
55 <artifactId>swagger-annotations</artifactId>
56 <version>${swagger-annotations.version}</version>
57 </dependency>
58 <dependency>
59 <groupId>com.fasterxml.jackson.core</groupId>
60 <artifactId>jackson-annotations</artifactId>
61 </dependency>
62 <dependency>
63 <groupId>org.springframework</groupId>
64 <artifactId>spring-beans</artifactId>
65 </dependency>
66 <dependency>
67 <groupId>org.springframework.boot</groupId>
68 <artifactId>spring-boot-autoconfigure</artifactId>
69 </dependency>
70 <dependency>
71 <groupId>org.springframework</groupId>
72 <artifactId>spring-web</artifactId>
73 </dependency>
74 <dependency>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot</artifactId>
77 </dependency>
78 <dependency>
79 <groupId>org.springframework</groupId>
80 <artifactId>spring-webmvc</artifactId>
81 </dependency>
82 <dependency>
83 <groupId>org.springframework</groupId>
84 <artifactId>spring-context</artifactId>
85 </dependency>
86 <dependency>
87 <groupId>io.springfox</groupId>
88 <artifactId>springfox-swagger2</artifactId>
89 <version>${springfox.version}</version>
90 </dependency>
91 <dependency>
92 <groupId>io.springfox</groupId>
93 <artifactId>springfox-core</artifactId>
94 <version>${springfox.version}</version>
95 </dependency>
96 <dependency>
97 <groupId>io.springfox</groupId>
98 <artifactId>springfox-spring-web</artifactId>
99 <version>${springfox.version}</version>
100 </dependency>
101 <dependency>
102 <groupId>io.springfox</groupId>
103 <artifactId>springfox-spi</artifactId>
104 <version>${springfox.version}</version>
105 </dependency>
106 <dependency>
107 <groupId>org.assertj</groupId>
108 <artifactId>assertj-core</artifactId>
109 </dependency>
110 <dependency>
111 <groupId>org.apache.tomcat.embed</groupId>
112 <artifactId>tomcat-embed-core</artifactId>
113 </dependency>
114 <dependency>
115 <groupId>org.openapitools</groupId>
116 <artifactId>jackson-databind-nullable</artifactId>
117 <version>${jackson-databind-nullable.version}</version>
118 </dependency>
119 <dependency>
120 <groupId>javax.validation</groupId>
121 <artifactId>validation-api</artifactId>
122 </dependency>
123 <dependency>
124 <groupId>com.fasterxml.jackson.core</groupId>
125 <artifactId>jackson-databind</artifactId>
126 </dependency>
127 <dependency>
128 <groupId>org.yaml</groupId>
129 <artifactId>snakeyaml</artifactId>
130 <scope>runtime</scope>
131 </dependency>
132 <!-- TEST -->
133 <dependency>
134 <groupId>org.springframework</groupId>
135 <artifactId>spring-test</artifactId>
136 <scope>test</scope>
137 </dependency>
138 <dependency>
139 <groupId>org.junit.jupiter</groupId>
140 <artifactId>junit-jupiter-api</artifactId>
141 <scope>test</scope>
142 </dependency>
elinuxhenrik2d7ba052020-10-30 09:47:55 +0100143 <dependency>
144 <groupId>org.mockito</groupId>
145 <artifactId>mockito-junit-jupiter</artifactId>
146 <scope>test</scope>
147 </dependency>
148 <dependency>
149 <groupId>org.mockito</groupId>
150 <artifactId>mockito-core</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>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200158 </dependencies>
159
160 <build>
161 <plugins>
162 <plugin>
163 <groupId>org.openapitools</groupId>
164 <artifactId>openapi-generator-maven-plugin</artifactId>
165 <version>${openapi-generator-maven-plugin.version}</version>
166 <executions>
167 <execution>
168 <goals>
169 <goal>generate</goal>
170 </goals>
171 <configuration>
172 <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
173 <generatorName>spring</generatorName>
174 <apiPackage>org.oransc.rappcatalogue.api</apiPackage>
175 <modelPackage>org.oransc.rappcatalogue.model</modelPackage>
176 <configOptions>
177 <delegatePattern>true</delegatePattern>
178 </configOptions>
179 </configuration>
180 </execution>
181 </executions>
182 </plugin>
183 <plugin>
184 <groupId>io.swagger.codegen.v3</groupId>
185 <artifactId>swagger-codegen-maven-plugin</artifactId>
186 <version>${swagger-codegen-maven-plugin.version}</version>
187 <executions>
188 <execution>
189 <goals>
190 <goal>generate</goal>
191 </goals>
192 <configuration>
193 <inputSpec>${project.basedir}/api/rac-api.json</inputSpec>
194 <language>openapi-yaml</language>
195 <output>${project.basedir}/api/</output>
196 <configOptions>
197 <outputFile>rac-api.yaml</outputFile>
198 </configOptions>
199 </configuration>
200 </execution>
201 </executions>
202 </plugin>
203 <plugin>
elinuxhenrika2f7c312020-11-06 16:04:26 +0100204 <groupId>org.jacoco</groupId>
205 <artifactId>jacoco-maven-plugin</artifactId>
206 <version>${jacoco-maven-plugin.version}</version>
207 <executions>
208 <execution>
209 <id>default-prepare-agent</id>
210 <goals>
211 <goal>prepare-agent</goal>
212 </goals>
213 </execution>
214 <execution>
215 <id>default-report</id>
216 <phase>prepare-package</phase>
217 <goals>
218 <goal>report</goal>
219 </goals>
220 </execution>
221 </executions>
222 </plugin>
223 <plugin>
elinuxhenrik5ada5152020-10-19 10:39:59 +0200224 <groupId>io.fabric8</groupId>
225 <artifactId>docker-maven-plugin</artifactId>
226 <version>${docker-maven-plugin.version}</version>
227 <inherited>false</inherited>
228 <executions>
229 <execution>
230 <id>generate-r-app-catalogue-image</id>
231 <phase>package</phase>
232 <goals>
233 <goal>build</goal>
234 </goals>
235 <configuration>
236 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
237 <images>
238 <image>
239 <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
240 <build>
241 <cleanup>try</cleanup>
242 <contextDir>${basedir}</contextDir>
243 <dockerFile>Dockerfile</dockerFile>
244 <args>
245 <JAR>${project.build.finalName}.jar</JAR>
246 </args>
247 <tags>
248 <tag>${project.version}</tag>
249 </tags>
250 </build>
251 </image>
252 </images>
253 </configuration>
254 </execution>
255 <execution>
256 <id>push-r-app-catalogue-image</id>
257 <goals>
258 <goal>build</goal>
259 <goal>push</goal>
260 </goals>
261 <configuration>
262 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
263 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
264 <images>
265 <image>
266 <name>o-ran-sc/nonrtric-r-app-catalogue:${project.version}</name>
267 <build>
268 <contextDir>${basedir}</contextDir>
269 <dockerFile>Dockerfile</dockerFile>
270 <args>
271 <JAR>${project.build.finalName}.jar</JAR>
272 </args>
273 <tags>
274 <tag>${project.version}</tag>
275 <tag>latest</tag>
276 </tags>
277 </build>
278 </image>
279 </images>
280 </configuration>
281 </execution>
282 </executions>
283 </plugin>
284 </plugins>
285 </build>
286</project>