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