Bump CPS to 3.4.7-SNAPSHOT
[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-2024 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.4.7-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         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
40         <minimum-coverage>0.68</minimum-coverage>
41         <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image>
42         <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
43     </properties>
44
45     <dependencies>
46         <dependency>
47             <groupId>org.springframework.boot</groupId>
48             <artifactId>spring-boot-starter-web</artifactId>
49             <exclusions>
50                 <exclusion>
51                     <groupId>org.springframework.boot</groupId>
52                     <artifactId>spring-boot-starter-tomcat</artifactId>
53                 </exclusion>
54             </exclusions>
55         </dependency>
56         <dependency>
57             <groupId>org.springframework.boot</groupId>
58             <artifactId>spring-boot-starter-jetty</artifactId>
59         </dependency>
60         <dependency>
61             <groupId>org.springframework.boot</groupId>
62             <artifactId>spring-boot-starter-actuator</artifactId>
63         </dependency>
64         <dependency>
65             <groupId>org.springdoc</groupId>
66             <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.eclipse.jetty</groupId>
70             <artifactId>jetty-server</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.eclipse.jetty</groupId>
74             <artifactId>jetty-http</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>jakarta.servlet</groupId>
78             <artifactId>jakarta.servlet-api</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>io.micrometer</groupId>
82             <artifactId>micrometer-registry-prometheus</artifactId>
83         </dependency>
84         <dependency>
85             <groupId>io.micrometer</groupId>
86             <artifactId>micrometer-tracing-bridge-brave</artifactId>
87         </dependency>
88         <dependency>
89             <groupId>com.fasterxml.jackson.dataformat</groupId>
90             <artifactId>jackson-dataformat-xml</artifactId>
91         </dependency>
92
93         <!-- T E S T   D E P E N D E N C I E S -->
94         <dependency>
95             <groupId>org.springframework.security</groupId>
96             <artifactId>spring-security-test</artifactId>
97             <scope>test</scope>
98         </dependency>
99         <dependency>
100             <groupId>org.codehaus.groovy</groupId>
101             <artifactId>groovy</artifactId>
102             <scope>test</scope>
103         </dependency>
104         <dependency>
105             <groupId>org.spockframework</groupId>
106             <artifactId>spock-core</artifactId>
107             <scope>test</scope>
108         </dependency>
109         <dependency>
110             <groupId>org.spockframework</groupId>
111             <artifactId>spock-spring</artifactId>
112             <scope>test</scope>
113         </dependency>
114         <dependency>
115             <groupId>cglib</groupId>
116             <artifactId>cglib-nodep</artifactId>
117             <scope>test</scope>
118         </dependency>
119         <dependency>
120             <groupId>com.tngtech.archunit</groupId>
121             <artifactId>archunit-junit5</artifactId>
122         </dependency>
123         <dependency>
124             <groupId>org.springframework.boot</groupId>
125             <artifactId>spring-boot-starter-test</artifactId>
126             <scope>test</scope>
127             <exclusions>
128                 <exclusion>
129                     <groupId>org.junit.vintage</groupId>
130                     <artifactId>junit-vintage-engine</artifactId>
131                 </exclusion>
132             </exclusions>
133         </dependency>
134
135     </dependencies>
136
137     <build>
138         <pluginManagement>
139             <plugins>
140                 <plugin>
141                     <groupId>com.google.cloud.tools</groupId>
142                     <artifactId>jib-maven-plugin</artifactId>
143                     <version>3.3.2</version>
144                     <configuration>
145                         <container>
146                             <mainClass>${app}</mainClass>
147                             <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
148                         </container>
149                         <from>
150                             <image>${base.image}</image>
151                         </from>
152                         <to>
153                             <tags>
154                                 <tag>latest</tag>
155                             </tags>
156                             <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
157                         </to>
158                     </configuration>
159                     <executions>
160                         <execution>
161                             <phase>package</phase>
162                             <id>build</id>
163                             <goals>
164                                 <goal>dockerBuild</goal>
165                             </goals>
166                         </execution>
167                         <execution>
168                             <phase>deploy</phase>
169                             <id>buildAndPush</id>
170                             <goals>
171                                 <goal>build</goal>
172                             </goals>
173                         </execution>
174                     </executions>
175                 </plugin>
176             </plugins>
177         </pluginManagement>
178         <plugins>
179             <plugin>
180                 <groupId>org.springframework.boot</groupId>
181                 <artifactId>spring-boot-maven-plugin</artifactId>
182                 <executions>
183                     <execution>
184                         <goals>
185                             <goal>repackage</goal>
186                         </goals>
187                         <configuration>
188                             <classifier>springboot</classifier>
189                         </configuration>
190                     </execution>
191                 </executions>
192             </plugin>
193         </plugins>
194     </build>
195     <profiles>
196         <profile>
197             <id>cps-docker</id>
198             <activation>
199                 <activeByDefault>false</activeByDefault>
200             </activation>
201
202             <properties>
203                 <image.name>cps-service</image.name>
204             </properties>
205             <dependencies>
206                 <dependency>
207                     <groupId>${project.groupId}</groupId>
208                     <artifactId>cps-rest</artifactId>
209                 </dependency>
210                 <dependency>
211                     <groupId>${project.groupId}</groupId>
212                     <artifactId>cps-ri</artifactId>
213                 </dependency>
214             </dependencies>
215             <build>
216                 <plugins>
217                     <plugin>
218                         <groupId>com.google.cloud.tools</groupId>
219                         <artifactId>jib-maven-plugin</artifactId>
220                     </plugin>
221                 </plugins>
222             </build>
223         </profile>
224         <profile>
225             <id>ncmp-docker</id>
226             <activation>
227                 <activeByDefault>false</activeByDefault>
228             </activation>
229
230             <properties>
231                 <image.name>cps-ncmp</image.name>
232             </properties>
233
234             <dependencies>
235                 <dependency>
236                     <groupId>${project.groupId}</groupId>
237                     <artifactId>cps-ncmp-rest</artifactId>
238                     <version>${project.version}</version>
239                 </dependency>
240                 <dependency>
241                     <groupId>${project.groupId}</groupId>
242                     <artifactId>cps-ri</artifactId>
243                 </dependency>
244             </dependencies>
245             <build>
246                 <plugins>
247                     <plugin>
248                         <groupId>com.google.cloud.tools</groupId>
249                         <artifactId>jib-maven-plugin</artifactId>
250                     </plugin>
251                 </plugins>
252             </build>
253         </profile>
254         <profile>
255             <id>cps-ncmp-docker</id>
256             <activation>
257                 <activeByDefault>true</activeByDefault>
258             </activation>
259
260             <properties>
261                 <image.name>cps-and-ncmp</image.name>
262             </properties>
263
264             <dependencies>
265                 <dependency>
266                     <groupId>${project.groupId}</groupId>
267                     <artifactId>cps-rest</artifactId>
268                 </dependency>
269                 <dependency>
270                     <groupId>${project.groupId}</groupId>
271                     <artifactId>cps-ncmp-rest</artifactId>
272                     <version>${project.version}</version>
273                 </dependency>
274                 <dependency>
275                     <groupId>${project.groupId}</groupId>
276                     <artifactId>cps-ri</artifactId>
277                 </dependency>
278             </dependencies>
279             <build>
280                 <plugins>
281                     <plugin>
282                         <groupId>com.google.cloud.tools</groupId>
283                         <artifactId>jib-maven-plugin</artifactId>
284                         <version>3.3.2</version>
285                     </plugin>
286                 </plugins>
287             </build>
288         </profile>
289     </profiles>
290 </project>