1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2021-2023 Nordix Foundation
7 * Copyright (C) 2023 OpenInfra Foundation Europe
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ========================LICENSE_END===================================
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>
26 <groupId>org.springframework.boot</groupId>
27 <artifactId>spring-boot-starter-parent</artifactId>
28 <version>3.0.6</version>
31 <groupId>org.o-ran-sc.nonrtric</groupId>
32 <artifactId>nonrtric-gateway</artifactId>
33 <version>1.3.0-SNAPSHOT</version>
34 <name>Nonrtric Gateway</name>
35 <description>Nonrtric Gateway</description>
38 <java.version>17</java.version>
39 <spring-cloud.version>2022.0.2</spring-cloud.version>
40 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
41 <spotless-maven-plugin.version>2.30.0</spotless-maven-plugin.version>
42 <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
47 <groupId>org.springframework.cloud</groupId>
48 <artifactId>spring-cloud-starter-gateway</artifactId>
52 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-starter-test</artifactId>
57 <groupId>org.springframework.boot</groupId>
58 <artifactId>spring-boot-starter-actuator</artifactId>
59 <scope>runtime</scope>
63 <dependencyManagement>
66 <groupId>org.springframework.cloud</groupId>
67 <artifactId>spring-cloud-dependencies</artifactId>
68 <version>${spring-cloud.version}</version>
73 </dependencyManagement>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-maven-plugin</artifactId>
82 <groupId>net.revelc.code.formatter</groupId>
83 <artifactId>formatter-maven-plugin</artifactId>
84 <version>${formatter-maven-plugin.version}</version>
86 <lineEnding>LF</lineEnding>
87 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
89 <!-- Use mvn formatter:format or spotless:apply -->
92 <groupId>com.diffplug.spotless</groupId>
93 <artifactId>spotless-maven-plugin</artifactId>
94 <version>${spotless-maven-plugin.version}</version>
96 <lineEndings>UNIX</lineEndings>
98 <removeUnusedImports />
100 <order>com,java,javax,org</order>
104 <!-- Use mvn spotless:apply to rewrite source files use mvn spotless:check to validate files -->
114 <groupId>io.fabric8</groupId>
115 <artifactId>docker-maven-plugin</artifactId>
116 <version>${docker-maven-plugin.version}</version>
117 <inherited>false</inherited>
120 <id>generate-nonrtric-gateway-image</id>
121 <phase>package</phase>
126 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
129 <name>o-ran-sc/nonrtric-gateway:${project.version}</name>
131 <cleanup>try</cleanup>
132 <contextDir>${basedir}</contextDir>
133 <dockerFile>Dockerfile</dockerFile>
134 <filter>false</filter>
136 <JAR>${project.build.finalName}.jar</JAR>
139 <tag>${project.version}</tag>
147 <id>push-nonrtric-gateway-image</id>
153 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
154 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
157 <name>o-ran-sc/nonrtric-gateway:${project.version}</name>
159 <contextDir>${basedir}</contextDir>
160 <dockerFile>Dockerfile</dockerFile>
161 <filter>false</filter>
163 <JAR>${project.build.finalName}.jar</JAR>
166 <tag>${project.version}</tag>