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