1 <?xml version="1.0" encoding="UTF-8"?>
3 * ========================LICENSE_START=================================
6 * Copyright (C) 2021 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"
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>
26 <groupId>org.springframework.boot</groupId>
27 <artifactId>spring-boot-starter-parent</artifactId>
28 <version>2.4.1</version>
29 <relativePath /> <!-- lookup parent from repository -->
31 <groupId>org.o-ran-sc.nonrtric</groupId>
32 <artifactId>nonrtric-gateway</artifactId>
33 <version>1.0.0-SNAPSHOT</version>
34 <name>Nonrtric Gateway</name>
35 <description>Nonrtric Gateway</description>
38 <java.version>11</java.version>
39 <spring-cloud.version>2020.0.0</spring-cloud.version>
40 <formatter-maven-plugin.version>2.13.0</formatter-maven-plugin.version>
41 <spotless-maven-plugin.version>2.5.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 <!-- https://code.revelc.net/formatter-maven-plugin/ use mvn formatter:format
90 spotless:apply process-sources -->
93 <groupId>com.diffplug.spotless</groupId>
94 <artifactId>spotless-maven-plugin</artifactId>
95 <version>${spotless-maven-plugin.version}</version>
97 <lineEndings>UNIX</lineEndings>
99 <removeUnusedImports />
101 <order>com,java,javax,org</order>
105 <!-- https://github.com/diffplug/spotless/tree/master/plugin-maven use
106 mvn spotless:apply to rewrite source files use mvn spotless:check to validate
117 <groupId>io.fabric8</groupId>
118 <artifactId>docker-maven-plugin</artifactId>
119 <version>${docker-maven-plugin.version}</version>
120 <inherited>false</inherited>
123 <id>generate-nonrtric-gateway-image</id>
124 <phase>package</phase>
129 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
132 <name>o-ran-sc/nonrtric-gateway:${project.version}</name>
134 <cleanup>try</cleanup>
135 <contextDir>${basedir}</contextDir>
136 <dockerFile>Dockerfile</dockerFile>
138 <JAR>${project.build.finalName}.jar</JAR>
141 <tag>${project.version}</tag>
149 <id>push-nonrtric-gateway-image</id>
155 <pullRegistry>${env.CONTAINER_PULL_REGISTRY}</pullRegistry>
156 <pushRegistry>${env.CONTAINER_PUSH_REGISTRY}</pushRegistry>
159 <name>o-ran-sc/nonrtric-gateway:${project.version}</name>
161 <contextDir>${basedir}</contextDir>
162 <dockerFile>Dockerfile</dockerFile>
164 <JAR>${project.build.finalName}.jar</JAR>
167 <tag>${project.version}</tag>