1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2021-2023 Nordix Foundation
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
12 * http://www.apache.org/licenses/LICENSE-2.0
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===================================
21 <project xmlns="http://maven.apache.org/POM/4.0.0"
22 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">
23 <modelVersion>4.0.0</modelVersion>
25 <groupId>org.springframework.boot</groupId>
26 <artifactId>spring-boot-starter-parent</artifactId>
27 <version>3.0.6</version>
30 <groupId>org.o-ran-sc.nonrtric</groupId>
31 <artifactId>nonrtric-gateway</artifactId>
32 <version>1.3.0-SNAPSHOT</version>
33 <name>Nonrtric Gateway</name>
34 <description>Nonrtric Gateway</description>
37 <java.version>17</java.version>
38 <spring-cloud.version>2022.0.2</spring-cloud.version>
39 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
40 <spotless-maven-plugin.version>2.30.0</spotless-maven-plugin.version>
41 <docker-maven-plugin.version>0.30.0</docker-maven-plugin.version>
46 <groupId>org.springframework.cloud</groupId>
47 <artifactId>spring-cloud-starter-gateway</artifactId>
51 <groupId>org.springframework.boot</groupId>
52 <artifactId>spring-boot-starter-test</artifactId>
56 <groupId>org.springframework.boot</groupId>
57 <artifactId>spring-boot-starter-actuator</artifactId>
58 <scope>runtime</scope>
62 <dependencyManagement>
65 <groupId>org.springframework.cloud</groupId>
66 <artifactId>spring-cloud-dependencies</artifactId>
67 <version>${spring-cloud.version}</version>
72 </dependencyManagement>
77 <groupId>org.springframework.boot</groupId>
78 <artifactId>spring-boot-maven-plugin</artifactId>
81 <groupId>net.revelc.code.formatter</groupId>
82 <artifactId>formatter-maven-plugin</artifactId>
83 <version>${formatter-maven-plugin.version}</version>
85 <lineEnding>LF</lineEnding>
86 <configFile>${project.basedir}/eclipse-formatter.xml</configFile>
88 <!-- Use mvn formatter:format or spotless:apply -->
91 <groupId>com.diffplug.spotless</groupId>
92 <artifactId>spotless-maven-plugin</artifactId>
93 <version>${spotless-maven-plugin.version}</version>
95 <lineEndings>UNIX</lineEndings>
97 <removeUnusedImports />
99 <order>com,java,javax,org</order>
103 <!-- Use mvn spotless:apply to rewrite source files use mvn spotless:check to validate files -->
113 <groupId>io.fabric8</groupId>
114 <artifactId>docker-maven-plugin</artifactId>
115 <version>${docker-maven-plugin.version}</version>
116 <inherited>false</inherited>
119 <id>generate-nonrtric-gateway-image</id>
120 <phase>package</phase>
125 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
128 <name>o-ran-sc/nonrtric-gateway:${project.version}</name>
130 <cleanup>try</cleanup>
131 <contextDir>${basedir}</contextDir>
132 <dockerFile>Dockerfile</dockerFile>
133 <filter>false</filter>
135 <JAR>${project.build.finalName}.jar</JAR>
138 <tag>${project.version}</tag>
146 <id>push-nonrtric-gateway-image</id>
152 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
153 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
156 <name>o-ran-sc/nonrtric-gateway:${project.version}</name>
158 <contextDir>${basedir}</contextDir>
159 <dockerFile>Dockerfile</dockerFile>
160 <filter>false</filter>
162 <JAR>${project.build.finalName}.jar</JAR>
165 <tag>${project.version}</tag>