b1135c5a37a56084255511d3ae96b07bc1fd0a3f
[dcaegen2/platform.git] / mod2 / auth-service / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ /*
4   ~  * ============LICENSE_START=======================================================
5   ~  *  org.onap.dcae
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
12   ~  *
13   ~  *       http://www.apache.org/licenses/LICENSE-2.0
14   ~  *
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=========================================================
21   ~  */
22   -->
23
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>
27         <parent>
28                 <groupId>org.onap.oparent</groupId>
29                 <artifactId>oparent</artifactId>
30                 <version>2.0.0</version>
31         </parent>
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>
37
38         <properties>
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>
44         </properties>
45
46         <dependencies>
47                 <dependency>
48                         <groupId>org.springframework.boot</groupId>
49                         <artifactId>spring-boot-starter-data-mongodb</artifactId>
50                 </dependency>
51                 <dependency>
52                         <groupId>org.springframework.boot</groupId>
53                         <artifactId>spring-boot-starter-data-mongodb-reactive</artifactId>
54                 </dependency>
55                 <dependency>
56                         <groupId>com.google.code.gson</groupId>
57                         <artifactId>gson</artifactId>
58                         <version>2.8.6</version>
59                 </dependency>
60                 <dependency>
61                         <groupId>org.springframework.boot</groupId>
62                         <artifactId>spring-boot-starter-security</artifactId>
63                 </dependency>
64                 <dependency>
65                         <groupId>io.jsonwebtoken</groupId>
66                         <artifactId>jjwt</artifactId>
67                         <version>0.9.1</version>
68                 </dependency>
69                 <dependency>
70                         <groupId>org.springframework.boot</groupId>
71                         <artifactId>spring-boot-starter-web</artifactId>
72                 </dependency>
73                 <dependency>
74                         <groupId>org.springframework.boot</groupId>
75                         <artifactId>spring-boot-starter-webflux</artifactId>
76                 </dependency>
77                 <dependency>
78                         <groupId>org.springframework.boot</groupId>
79                         <artifactId>spring-boot-starter-validation</artifactId>
80                 </dependency>
81                 <!-- CODE GENERATION -->
82                 <dependency>
83                         <groupId>org.projectlombok</groupId>
84                         <artifactId>lombok</artifactId>
85                 </dependency>
86                 <dependency>
87                         <groupId>com.squareup.okhttp3</groupId>
88                         <artifactId>okhttp</artifactId>
89                         <version>4.0.1</version>
90                 </dependency>
91
92                 <!--TEST DEPENDENCIES-->
93                 <dependency>
94                         <groupId>org.springframework.boot</groupId>
95                         <artifactId>spring-boot-starter-test</artifactId>
96                         <scope>test</scope>
97                         <exclusions>
98                                 <exclusion>
99                                         <groupId>org.junit.vintage</groupId>
100                                         <artifactId>junit-vintage-engine</artifactId>
101                                 </exclusion>
102                         </exclusions>
103                 </dependency>
104                 <dependency>
105                         <groupId>com.squareup.okhttp3</groupId>
106                         <artifactId>mockwebserver</artifactId>
107                         <version>4.0.1</version>
108                         <scope>test</scope>
109                 </dependency>
110                 <dependency>
111                         <groupId>org.springframework.security</groupId>
112                         <artifactId>spring-security-test</artifactId>
113                         <scope>test</scope>
114                 </dependency>
115                 <dependency>
116                         <groupId>io.projectreactor</groupId>
117                         <artifactId>reactor-test</artifactId>
118                         <scope>test</scope>
119                 </dependency>
120                 <dependency>
121                         <groupId>javax.xml.bind</groupId>
122                         <artifactId>jaxb-api</artifactId>
123                         <version>2.3.1</version>
124                 </dependency>
125 <!--            <dependency>
126                         <groupId>org.testng</groupId>
127                         <artifactId>testng</artifactId>
128                         <version>RELEASE</version>
129                         <scope>test</scope>
130                 </dependency>-->
131         </dependencies>
132
133         <dependencyManagement>
134                 <dependencies>
135                         <dependency>
136                                 <!-- Import dependency management from Spring Boot -->
137                                 <groupId>org.springframework.boot</groupId>
138                                 <artifactId>spring-boot-dependencies</artifactId>
139                                 <version>2.2.5.RELEASE</version>
140                                 <type>pom</type>
141                                 <scope>import</scope>
142                         </dependency>
143                 </dependencies>
144         </dependencyManagement>
145
146
147         <build>
148                 <plugins>
149                         <plugin>
150                                 <groupId>org.springframework.boot</groupId>
151                                 <artifactId>spring-boot-maven-plugin</artifactId>
152                                 <version>2.2.5.RELEASE</version>
153                                 <executions>
154                                         <execution>
155                                                 <goals>
156                                                         <goal>repackage</goal>
157                                                 </goals>
158                                         </execution>
159                                 </executions>
160                         </plugin>
161                         <plugin>
162                                 <groupId>com.spotify</groupId>
163                                 <artifactId>dockerfile-maven-plugin</artifactId>
164                                 <version>${dockerfile-maven-plugin.version}</version>
165                                 <configuration>
166                                         <contextDirectory>${project.basedir}</contextDirectory>
167                                         <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
168                                         <buildArgs>
169                                                 <PROJECT_BUILD_DIR_NAME>target</PROJECT_BUILD_DIR_NAME>
170                                                 <FINAL_JAR>${project.build.finalName}.jar</FINAL_JAR>
171                                         </buildArgs>
172                                 </configuration>
173                                 <executions>
174                                         <execution>
175                                                 <id>build-image</id>
176                                                 <phase>package</phase>
177                                                 <goals>
178                                                         <goal>build</goal>
179                                                 </goals>
180                                         </execution>
181                                         <execution>
182                                                 <id>tag-and-push-image-latest</id>
183                                                 <phase>package</phase>
184                                                 <goals>
185                                                         <goal>tag</goal>
186                                                         <goal>push</goal>
187                                                 </goals>
188                                                 <configuration>
189                                                         <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
190                                                         <tag>latest</tag>
191                                                         <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
192                                                 </configuration>
193                                         </execution>
194                                         <execution>
195                                                 <id>tag-and-push-image-with-version</id>
196                                                 <phase>package</phase>
197                                                 <goals>
198                                                         <goal>tag</goal>
199                                                         <goal>push</goal>
200                                                 </goals>
201                                                 <configuration>
202                                                         <repository>${onap.nexus.dockerregistry.daily}/${docker.image.name}</repository>
203                                                         <tag>${project.version}</tag>
204                                                         <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
205                                                 </configuration>
206                                         </execution>
207                                 </executions>
208                         </plugin>
209                         <plugin>
210                                 <groupId>org.apache.maven.plugins</groupId>
211                                 <artifactId>maven-surefire-plugin</artifactId>
212                                 <version>2.22.2</version>
213                         </plugin>
214                 </plugins>
215                 <finalName>mod-auth-service</finalName>
216         </build>
217 </project>