1 <?xml version="1.0" encoding="UTF-8"?>
4 ~ * ============LICENSE_START=======================================================
6 ~ * ================================================================================
7 ~ * Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
8 ~ * Copyright (c) 2021 Samsung Electronics. All rights reserved.
9 ~ * ================================================================================
10 ~ * Licensed under the Apache License, Version 2.0 (the "License");
11 ~ * you may not use this file except in compliance with the License.
12 ~ * You may obtain a copy of the License at
14 ~ * http://www.apache.org/licenses/LICENSE-2.0
16 ~ * Unless required by applicable law or agreed to in writing, software
17 ~ * distributed under the License is distributed on an "AS IS" BASIS,
18 ~ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 ~ * See the License for the specific language governing permissions and
20 ~ * limitations under the License.
21 ~ * ============LICENSE_END=========================================================
25 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
26 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
27 <modelVersion>4.0.0</modelVersion>
29 <groupId>org.onap.oparent</groupId>
30 <artifactId>oparent</artifactId>
31 <version>2.0.0</version>
33 <groupId>org.onap.dcaegen2.platform.mod</groupId>
34 <artifactId>auth-service</artifactId>
35 <version>1.0.1-SNAPSHOT</version>
36 <name>auth-service</name>
37 <description>REST APIs to serve Auth Service</description>
40 <java.version>11</java.version>
41 <maven.compiler.source>${java.version}</maven.compiler.source>
42 <maven.compiler.target>${java.version}</maven.compiler.target>
43 <dockerfile-maven-plugin.version>1.4.10</dockerfile-maven-plugin.version>
44 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
49 <groupId>org.springframework.boot</groupId>
50 <artifactId>spring-boot-starter-data-mongodb</artifactId>
53 <groupId>org.springframework.boot</groupId>
54 <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
57 <groupId>com.google.code.gson</groupId>
58 <artifactId>gson</artifactId>
59 <version>2.8.6</version>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-security</artifactId>
66 <groupId>io.jsonwebtoken</groupId>
67 <artifactId>jjwt</artifactId>
68 <version>0.9.1</version>
71 <groupId>org.springframework.boot</groupId>
72 <artifactId>spring-boot-starter-web</artifactId>
75 <groupId>org.springframework.boot</groupId>
76 <artifactId>spring-boot-starter-webflux</artifactId>
79 <groupId>org.springframework.boot</groupId>
80 <artifactId>spring-boot-starter-validation</artifactId>
82 <!-- CODE GENERATION -->
84 <groupId>org.projectlombok</groupId>
85 <artifactId>lombok</artifactId>
88 <groupId>com.squareup.okhttp3</groupId>
89 <artifactId>okhttp</artifactId>
90 <version>4.0.1</version>
93 <!--TEST DEPENDENCIES-->
95 <groupId>org.springframework.boot</groupId>
96 <artifactId>spring-boot-starter-test</artifactId>
100 <groupId>org.junit.vintage</groupId>
101 <artifactId>junit-vintage-engine</artifactId>
106 <groupId>com.squareup.okhttp3</groupId>
107 <artifactId>mockwebserver</artifactId>
108 <version>4.0.1</version>
112 <groupId>org.springframework.security</groupId>
113 <artifactId>spring-security-test</artifactId>
117 <groupId>io.projectreactor</groupId>
118 <artifactId>reactor-test</artifactId>
122 <groupId>javax.xml.bind</groupId>
123 <artifactId>jaxb-api</artifactId>
124 <version>2.3.1</version>
127 <groupId>org.testng</groupId>
128 <artifactId>testng</artifactId>
129 <version>RELEASE</version>
134 <dependencyManagement>
137 <!-- Import dependency management from Spring Boot -->
138 <groupId>org.springframework.boot</groupId>
139 <artifactId>spring-boot-dependencies</artifactId>
140 <version>2.2.5.RELEASE</version>
142 <scope>import</scope>
145 </dependencyManagement>
151 <groupId>org.springframework.boot</groupId>
152 <artifactId>spring-boot-maven-plugin</artifactId>
153 <version>2.2.5.RELEASE</version>
157 <goal>repackage</goal>
163 <groupId>com.spotify</groupId>
164 <artifactId>dockerfile-maven-plugin</artifactId>
165 <version>${dockerfile-maven-plugin.version}</version>
167 <contextDirectory>${project.basedir}</contextDirectory>
168 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
170 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
171 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
177 <phase>package</phase>
183 <id>tag-and-push-image-latest</id>
184 <phase>package</phase>
190 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
192 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
196 <id>tag-and-push-image-with-version</id>
197 <phase>package</phase>
203 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
204 <tag>${project.version}</tag>
205 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
211 <groupId>org.apache.maven.plugins</groupId>
212 <artifactId>maven-surefire-plugin</artifactId>
213 <version>2.22.2</version>
216 <finalName>mod-auth-service</finalName>