1 <?xml version="1.0" encoding="UTF-8"?>
4 ~ * ============LICENSE_START=======================================================
6 ~ * ================================================================================
7 ~ * Copyright (c) 2020 AT&T Intellectual Property. All rights reserved.
8 ~ * ================================================================================
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=========================================================
24 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
26 <modelVersion>4.0.0</modelVersion>
28 <groupId>org.onap.oparent</groupId>
29 <artifactId>oparent</artifactId>
30 <version>2.0.0</version>
32 <groupId>org.onap.dcaegen2.platform.mod</groupId>
33 <artifactId>auth-service</artifactId>
34 <version>1.0.0-SNAPSHOT</version>
35 <name>auth-service</name>
36 <description>REST APIs to serve Auth Service</description>
39 <java.version>11</java.version>
40 <maven.compiler.source>${java.version}</maven.compiler.source>
41 <maven.compiler.target>${java.version}</maven.compiler.target>
42 <dockerfile-maven-plugin.version>1.4.10</dockerfile-maven-plugin.version>
43 <docker.image.name>onap/${project.groupId}.${project.artifactId}</docker.image.name>
48 <groupId>org.springframework.boot</groupId>
49 <artifactId>spring-boot-starter-data-mongodb</artifactId>
52 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
56 <groupId>com.google.code.gson</groupId>
57 <artifactId>gson</artifactId>
58 <version>2.8.6</version>
61 <groupId>org.springframework.boot</groupId>
62 <artifactId>spring-boot-starter-security</artifactId>
65 <groupId>io.jsonwebtoken</groupId>
66 <artifactId>jjwt</artifactId>
67 <version>0.9.1</version>
70 <groupId>org.springframework.boot</groupId>
71 <artifactId>spring-boot-starter-web</artifactId>
74 <groupId>org.springframework.boot</groupId>
75 <artifactId>spring-boot-starter-webflux</artifactId>
78 <groupId>org.springframework.boot</groupId>
79 <artifactId>spring-boot-starter-validation</artifactId>
81 <!-- CODE GENERATION -->
83 <groupId>org.projectlombok</groupId>
84 <artifactId>lombok</artifactId>
87 <groupId>com.squareup.okhttp3</groupId>
88 <artifactId>okhttp</artifactId>
89 <version>4.0.1</version>
92 <!--TEST DEPENDENCIES-->
94 <groupId>org.springframework.boot</groupId>
95 <artifactId>spring-boot-starter-test</artifactId>
99 <groupId>org.junit.vintage</groupId>
100 <artifactId>junit-vintage-engine</artifactId>
105 <groupId>org.springframework.security</groupId>
106 <artifactId>spring-security-test</artifactId>
110 <groupId>com.squareup.okhttp3</groupId>
111 <artifactId>mockwebserver</artifactId>
112 <version>4.0.1</version>
116 <groupId>org.springframework.security</groupId>
117 <artifactId>spring-security-test</artifactId>
121 <groupId>io.projectreactor</groupId>
122 <artifactId>reactor-test</artifactId>
126 <groupId>javax.xml.bind</groupId>
127 <artifactId>jaxb-api</artifactId>
128 <version>2.3.1</version>
131 <groupId>org.testng</groupId>
132 <artifactId>testng</artifactId>
133 <version>RELEASE</version>
138 <dependencyManagement>
141 <!-- Import dependency management from Spring Boot -->
142 <groupId>org.springframework.boot</groupId>
143 <artifactId>spring-boot-dependencies</artifactId>
144 <version>2.2.5.RELEASE</version>
146 <scope>import</scope>
149 </dependencyManagement>
155 <groupId>org.springframework.boot</groupId>
156 <artifactId>spring-boot-maven-plugin</artifactId>
157 <version>2.2.5.RELEASE</version>
161 <goal>repackage</goal>
167 <groupId>com.spotify</groupId>
168 <artifactId>dockerfile-maven-plugin</artifactId>
169 <version>${dockerfile-maven-plugin.version}</version>
171 <contextDirectory>${project.basedir}</contextDirectory>
172 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
174 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
175 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
181 <phase>package</phase>
187 <id>tag-and-push-image-latest</id>
188 <phase>package</phase>
194 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
196 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
200 <id>tag-and-push-image-with-version</id>
201 <phase>package</phase>
207 <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
208 <tag>${project.version}</tag>
209 <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
215 <groupId>org.apache.maven.plugins</groupId>
216 <artifactId>maven-surefire-plugin</artifactId>
217 <version>2.22.2</version>
220 <finalName>mod-auth-service</finalName>