Bump CPS version
[cps.git] / cps-application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (c) 2021 Pantheon.tech.
5   Modifications Copyright (C) 2021 Bell Canada.
6   Modifications Copyright (C) 2021 Nordix Foundation
7   Modifications Copyright (C) 2022 Deutsche Telekom AG
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 <project xmlns="http://maven.apache.org/POM/4.0.0"
24          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
25          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
26     <modelVersion>4.0.0</modelVersion>
27
28     <parent>
29         <groupId>org.onap.cps</groupId>
30         <artifactId>cps-parent</artifactId>
31         <version>3.2.6-SNAPSHOT</version>
32         <relativePath>../cps-parent/pom.xml</relativePath>
33     </parent>
34
35     <artifactId>cps-application</artifactId>
36
37     <properties>
38         <app>org.onap.cps.Application</app>
39         <jib-maven-plugin.version>2.8.0</jib-maven-plugin.version>
40         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
41         <minimum-coverage>0.82</minimum-coverage>
42         <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image>
43         <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
44     </properties>
45
46     <dependencies>
47         <dependency>
48             <groupId>org.springframework.boot</groupId>
49             <artifactId>spring-boot-starter-web</artifactId>
50             <exclusions>
51                 <exclusion>
52                     <groupId>org.springframework.boot</groupId>
53                     <artifactId>spring-boot-starter-tomcat</artifactId>
54                 </exclusion>
55             </exclusions>
56         </dependency>
57         <dependency>
58             <groupId>org.springframework.boot</groupId>
59             <artifactId>spring-boot-starter-jetty</artifactId>
60         </dependency>
61         <dependency>
62             <groupId>org.springframework.boot</groupId>
63             <artifactId>spring-boot-starter-security</artifactId>
64         </dependency>
65         <dependency>
66             <groupId>org.springframework.boot</groupId>
67             <artifactId>spring-boot-starter-actuator</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>io.micrometer</groupId>
71             <artifactId>micrometer-registry-prometheus</artifactId>
72         </dependency>
73         <dependency>
74             <groupId>org.springframework.cloud</groupId>
75             <artifactId>spring-cloud-starter-sleuth</artifactId>
76         </dependency>
77         <!-- T E S T   D E P E N D E N C I E S -->
78         <dependency>
79             <groupId>org.springframework.security</groupId>
80             <artifactId>spring-security-test</artifactId>
81             <scope>test</scope>
82         </dependency>
83         <dependency>
84             <groupId>org.codehaus.groovy</groupId>
85             <artifactId>groovy</artifactId>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.spockframework</groupId>
90             <artifactId>spock-core</artifactId>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>org.spockframework</groupId>
95             <artifactId>spock-spring</artifactId>
96             <scope>test</scope>
97         </dependency>
98         <dependency>
99             <groupId>cglib</groupId>
100             <artifactId>cglib-nodep</artifactId>
101             <scope>test</scope>
102         </dependency>
103         <dependency>
104             <groupId>org.springframework.boot</groupId>
105             <artifactId>spring-boot-starter-test</artifactId>
106             <scope>test</scope>
107             <exclusions>
108                 <exclusion>
109                     <groupId>org.junit.vintage</groupId>
110                     <artifactId>junit-vintage-engine</artifactId>
111                 </exclusion>
112             </exclusions>
113         </dependency>
114         <dependency>
115             <groupId>com.tngtech.archunit</groupId>
116             <artifactId>archunit-junit5</artifactId>
117         </dependency>
118         <dependency>
119             <groupId>com.fasterxml.jackson.dataformat</groupId>
120             <artifactId>jackson-dataformat-xml</artifactId>
121         </dependency>
122     </dependencies>
123
124     <build>
125         <pluginManagement>
126             <plugins>
127                 <plugin>
128                     <groupId>com.google.cloud.tools</groupId>
129                     <artifactId>jib-maven-plugin</artifactId>
130                     <version>${jib-maven-plugin.version}</version>
131                     <configuration>
132                         <container>
133                             <mainClass>${app}</mainClass>
134                             <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
135                         </container>
136                         <from>
137                             <image>${base.image}</image>
138                         </from>
139                         <to>
140                             <tags>
141                                 <tag>latest</tag>
142                             </tags>
143                             <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
144                         </to>
145                     </configuration>
146                     <executions>
147                         <execution>
148                             <phase>package</phase>
149                             <id>build</id>
150                             <goals>
151                                 <goal>dockerBuild</goal>
152                             </goals>
153                         </execution>
154                         <execution>
155                             <phase>deploy</phase>
156                             <id>buildAndPush</id>
157                             <goals>
158                                 <goal>build</goal>
159                             </goals>
160                         </execution>
161                     </executions>
162                 </plugin>
163             </plugins>
164         </pluginManagement>
165         <plugins>
166             <plugin>
167                 <groupId>org.springframework.boot</groupId>
168                 <artifactId>spring-boot-maven-plugin</artifactId>
169             </plugin>
170         </plugins>
171     </build>
172     <profiles>
173         <profile>
174             <id>cps-docker</id>
175             <activation>
176                 <activeByDefault>false</activeByDefault>
177             </activation>
178
179             <properties>
180                 <image.name>cps-service</image.name>
181             </properties>
182             <dependencies>
183                 <dependency>
184                     <groupId>${project.groupId}</groupId>
185                     <artifactId>cps-rest</artifactId>
186                 </dependency>
187                 <dependency>
188                     <groupId>${project.groupId}</groupId>
189                     <artifactId>cps-ri</artifactId>
190                 </dependency>
191             </dependencies>
192             <build>
193                 <plugins>
194                     <plugin>
195                         <groupId>com.google.cloud.tools</groupId>
196                         <artifactId>jib-maven-plugin</artifactId>
197                     </plugin>
198                 </plugins>
199             </build>
200         </profile>
201         <profile>
202             <id>ncmp-docker</id>
203             <activation>
204                 <activeByDefault>false</activeByDefault>
205             </activation>
206
207             <properties>
208                 <image.name>cps-ncmp</image.name>
209             </properties>
210
211             <dependencies>
212                 <dependency>
213                     <groupId>${project.groupId}</groupId>
214                     <artifactId>cps-ncmp-rest</artifactId>
215                     <version>${project.version}</version>
216                 </dependency>
217                 <dependency>
218                     <groupId>${project.groupId}</groupId>
219                     <artifactId>cps-ri</artifactId>
220                 </dependency>
221             </dependencies>
222             <build>
223                 <plugins>
224                     <plugin>
225                         <groupId>com.google.cloud.tools</groupId>
226                         <artifactId>jib-maven-plugin</artifactId>
227                     </plugin>
228                 </plugins>
229             </build>
230         </profile>
231         <profile>
232             <id>cps-ncmp-docker</id>
233             <activation>
234                 <activeByDefault>true</activeByDefault>
235             </activation>
236
237             <properties>
238                 <image.name>cps-and-ncmp</image.name>
239             </properties>
240
241             <dependencies>
242                 <dependency>
243                     <groupId>${project.groupId}</groupId>
244                     <artifactId>cps-rest</artifactId>
245                 </dependency>
246                 <dependency>
247                     <groupId>${project.groupId}</groupId>
248                     <artifactId>cps-ncmp-rest</artifactId>
249                     <version>${project.version}</version>
250                 </dependency>
251                 <dependency>
252                     <groupId>${project.groupId}</groupId>
253                     <artifactId>cps-ri</artifactId>
254                 </dependency>
255             </dependencies>
256             <build>
257                 <plugins>
258                     <plugin>
259                         <groupId>com.google.cloud.tools</groupId>
260                         <artifactId>jib-maven-plugin</artifactId>
261                     </plugin>
262                 </plugins>
263             </build>
264         </profile>
265     </profiles>
266 </project>