Merge "More fine tuning around remainin plots"
[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.5.0-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>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         </dependency>
120
121     </dependencies>
122
123     <build>
124         <pluginManagement>
125             <plugins>
126                 <plugin>
127                     <groupId>com.google.cloud.tools</groupId>
128                     <artifactId>jib-maven-plugin</artifactId>
129                     <version>3.3.2</version>
130                     <configuration>
131                         <container>
132                             <mainClass>${app}</mainClass>
133                             <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
134                         </container>
135                         <from>
136                             <image>${base.image}</image>
137                         </from>
138                         <to>
139                             <tags>
140                                 <tag>latest</tag>
141                             </tags>
142                             <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
143                         </to>
144                     </configuration>
145                     <executions>
146                         <execution>
147                             <phase>package</phase>
148                             <id>build</id>
149                             <goals>
150                                 <goal>dockerBuild</goal>
151                             </goals>
152                         </execution>
153                         <execution>
154                             <phase>deploy</phase>
155                             <id>buildAndPush</id>
156                             <goals>
157                                 <goal>build</goal>
158                             </goals>
159                         </execution>
160                     </executions>
161                 </plugin>
162             </plugins>
163         </pluginManagement>
164         <plugins>
165             <plugin>
166                 <groupId>org.springframework.boot</groupId>
167                 <artifactId>spring-boot-maven-plugin</artifactId>
168                 <executions>
169                     <execution>
170                         <goals>
171                             <goal>repackage</goal>
172                         </goals>
173                         <configuration>
174                             <classifier>springboot</classifier>
175                         </configuration>
176                     </execution>
177                 </executions>
178             </plugin>
179         </plugins>
180     </build>
181     <profiles>
182         <profile>
183             <id>cps-docker</id>
184             <activation>
185                 <activeByDefault>false</activeByDefault>
186             </activation>
187
188             <properties>
189                 <image.name>cps-service</image.name>
190             </properties>
191             <dependencies>
192                 <dependency>
193                     <groupId>${project.groupId}</groupId>
194                     <artifactId>cps-rest</artifactId>
195                 </dependency>
196                 <dependency>
197                     <groupId>${project.groupId}</groupId>
198                     <artifactId>cps-ri</artifactId>
199                 </dependency>
200             </dependencies>
201             <build>
202                 <plugins>
203                     <plugin>
204                         <groupId>com.google.cloud.tools</groupId>
205                         <artifactId>jib-maven-plugin</artifactId>
206                     </plugin>
207                 </plugins>
208             </build>
209         </profile>
210         <profile>
211             <id>ncmp-docker</id>
212             <activation>
213                 <activeByDefault>false</activeByDefault>
214             </activation>
215
216             <properties>
217                 <image.name>cps-ncmp</image.name>
218             </properties>
219
220             <dependencies>
221                 <dependency>
222                     <groupId>${project.groupId}</groupId>
223                     <artifactId>cps-ncmp-rest</artifactId>
224                     <version>${project.version}</version>
225                 </dependency>
226                 <dependency>
227                     <groupId>${project.groupId}</groupId>
228                     <artifactId>cps-ri</artifactId>
229                 </dependency>
230             </dependencies>
231             <build>
232                 <plugins>
233                     <plugin>
234                         <groupId>com.google.cloud.tools</groupId>
235                         <artifactId>jib-maven-plugin</artifactId>
236                     </plugin>
237                 </plugins>
238             </build>
239         </profile>
240         <profile>
241             <id>cps-ncmp-docker</id>
242             <activation>
243                 <activeByDefault>true</activeByDefault>
244             </activation>
245
246             <properties>
247                 <image.name>cps-and-ncmp</image.name>
248             </properties>
249
250             <dependencies>
251                 <dependency>
252                     <groupId>${project.groupId}</groupId>
253                     <artifactId>cps-rest</artifactId>
254                 </dependency>
255                 <dependency>
256                     <groupId>${project.groupId}</groupId>
257                     <artifactId>cps-ncmp-rest</artifactId>
258                     <version>${project.version}</version>
259                 </dependency>
260                 <dependency>
261                     <groupId>${project.groupId}</groupId>
262                     <artifactId>cps-ri</artifactId>
263                 </dependency>
264             </dependencies>
265             <build>
266                 <plugins>
267                     <plugin>
268                         <groupId>com.google.cloud.tools</groupId>
269                         <artifactId>jib-maven-plugin</artifactId>
270                         <version>3.3.2</version>
271                     </plugin>
272                 </plugins>
273             </build>
274         </profile>
275     </profiles>
276 </project>