blob: e6e2f9a2a65ece81652b42642726af5b0bd8c638 [file] [log] [blame]
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +01001<?xml version="1.0" encoding="UTF-8"?>
Bruno Sakoto5c7c4892021-02-08 21:51:05 -05002<!--
3 ============LICENSE_START=======================================================
4 Copyright (c) 2021 Pantheon.tech.
5 Modifications Copyright (C) 2021 Bell Canada.
danielhanrahan81f61b52024-02-02 12:25:47 +00006 Modifications Copyright (C) 2021-2024 Nordix Foundation
Michal Jagiello6ce84d92022-12-13 07:40:19 +00007 Modifications Copyright (C) 2022 Deutsche Telekom AG
Bruno Sakoto5c7c4892021-02-08 21:51:05 -05008 ================================================================================
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
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010023<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>
mpriyank0ac5d962024-03-29 13:47:19 +000031 <version>3.4.8-SNAPSHOT</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010032 <relativePath>../cps-parent/pom.xml</relativePath>
33 </parent>
34
35 <artifactId>cps-application</artifactId>
36
37 <properties>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +010038 <app>org.onap.cps.Application</app>
Rishi.Chail3f6f5b82021-03-15 13:35:57 +000039 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
danielhanrahan4a875702024-02-28 07:13:50 +000040 <minimum-coverage>0.68</minimum-coverage>
egernug2b8268f2023-07-03 10:09:09 +010041 <base.image>${docker.pull.registry}/onap/integration-java17:12.0.0</base.image>
Renu Kumaribd35b4d2021-05-17 07:16:48 -040042 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010043 </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>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020058 <artifactId>spring-boot-starter-jetty</artifactId>
59 </dependency>
60 <dependency>
61 <groupId>org.springframework.boot</groupId>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010062 <artifactId>spring-boot-starter-actuator</artifactId>
63 </dependency>
64 <dependency>
egernugfb09b7c2023-10-12 13:33:08 +010065 <groupId>org.springdoc</groupId>
66 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
67 </dependency>
68 <dependency>
mpriyanka7f35682024-02-28 14:10:54 +000069 <groupId>org.eclipse.jetty</groupId>
70 <artifactId>jetty-server</artifactId>
71 </dependency>
72 <dependency>
puthuparambil.adityab46d1372021-07-09 12:51:10 +010073 <groupId>io.micrometer</groupId>
74 <artifactId>micrometer-registry-prometheus</artifactId>
75 </dependency>
76 <dependency>
egernug477bd462023-09-21 17:51:21 +010077 <groupId>io.micrometer</groupId>
78 <artifactId>micrometer-tracing-bridge-brave</artifactId>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010079 </dependency>
egernug42daf632023-10-03 12:56:29 +010080 <dependency>
81 <groupId>com.fasterxml.jackson.dataformat</groupId>
82 <artifactId>jackson-dataformat-xml</artifactId>
83 </dependency>
84
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020085 <!-- 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>
egernug42daf632023-10-03 12:56:29 +0100112 <groupId>com.tngtech.archunit</groupId>
113 <artifactId>archunit-junit5</artifactId>
114 </dependency>
115 <dependency>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200116 <groupId>org.springframework.boot</groupId>
117 <artifactId>spring-boot-starter-test</artifactId>
118 <scope>test</scope>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200119 </dependency>
egernug42daf632023-10-03 12:56:29 +0100120
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100121 </dependencies>
122
123 <build>
124 <pluginManagement>
125 <plugins>
126 <plugin>
127 <groupId>com.google.cloud.tools</groupId>
128 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100129 <version>3.3.2</version>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100130 <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>
Ruslan Kashapovaad22402021-02-23 10:08:00 +0200139 <tags>
140 <tag>latest</tag>
141 </tags>
ToineSiebelinka401e722021-06-30 08:38:51 +0100142 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100143 </to>
144 </configuration>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100145 <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>
danielhanrahan81f61b52024-02-02 12:25:47 +0000168 <executions>
169 <execution>
170 <goals>
171 <goal>repackage</goal>
172 </goals>
173 <configuration>
174 <classifier>springboot</classifier>
175 </configuration>
176 </execution>
177 </executions>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100178 </plugin>
179 </plugins>
180 </build>
181 <profiles>
182 <profile>
183 <id>cps-docker</id>
184 <activation>
185 <activeByDefault>false</activeByDefault>
186 </activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100187
188 <properties>
189 <image.name>cps-service</image.name>
190 </properties>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100191 <dependencies>
192 <dependency>
193 <groupId>${project.groupId}</groupId>
194 <artifactId>cps-rest</artifactId>
195 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200196 <dependency>
197 <groupId>${project.groupId}</groupId>
198 <artifactId>cps-ri</artifactId>
199 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100200 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100201 <build>
202 <plugins>
203 <plugin>
204 <groupId>com.google.cloud.tools</groupId>
205 <artifactId>jib-maven-plugin</artifactId>
206 </plugin>
207 </plugins>
208 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100209 </profile>
210 <profile>
tragait34a94b92021-03-30 12:02:27 +0100211 <id>ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100212 <activation>
213 <activeByDefault>false</activeByDefault>
214 </activation>
215
216 <properties>
tragait34a94b92021-03-30 12:02:27 +0100217 <image.name>cps-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100218 </properties>
219
220 <dependencies>
221 <dependency>
222 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100223 <artifactId>cps-ncmp-rest</artifactId>
224 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100225 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200226 <dependency>
227 <groupId>${project.groupId}</groupId>
228 <artifactId>cps-ri</artifactId>
229 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100230 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100231 <build>
232 <plugins>
233 <plugin>
234 <groupId>com.google.cloud.tools</groupId>
235 <artifactId>jib-maven-plugin</artifactId>
236 </plugin>
237 </plugins>
238 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100239 </profile>
240 <profile>
tragait34a94b92021-03-30 12:02:27 +0100241 <id>cps-ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100242 <activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100243 <activeByDefault>true</activeByDefault>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100244 </activation>
245
246 <properties>
tragait34a94b92021-03-30 12:02:27 +0100247 <image.name>cps-and-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100248 </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>
tragait34a94b92021-03-30 12:02:27 +0100257 <artifactId>cps-ncmp-rest</artifactId>
258 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100259 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200260 <dependency>
261 <groupId>${project.groupId}</groupId>
262 <artifactId>cps-ri</artifactId>
263 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100264 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100265 <build>
266 <plugins>
267 <plugin>
268 <groupId>com.google.cloud.tools</groupId>
269 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100270 <version>3.3.2</version>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100271 </plugin>
272 </plugins>
273 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100274 </profile>
275 </profiles>
lukegleeson15b93e72021-07-07 15:25:30 +0100276</project>