blob: 19710be80ba33cba26f8c1cc77079f0adb3a4725 [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>
danielhanrahan64ff4582024-08-21 16:14:53 +010031 <version>3.5.3-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>
david.mcweeney22934862024-04-25 14:37:33 +010078 <artifactId>micrometer-tracing-bridge-otel</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>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020087 <groupId>org.codehaus.groovy</groupId>
88 <artifactId>groovy</artifactId>
89 <scope>test</scope>
90 </dependency>
91 <dependency>
92 <groupId>org.spockframework</groupId>
93 <artifactId>spock-core</artifactId>
94 <scope>test</scope>
95 </dependency>
96 <dependency>
97 <groupId>org.spockframework</groupId>
98 <artifactId>spock-spring</artifactId>
99 <scope>test</scope>
100 </dependency>
101 <dependency>
102 <groupId>cglib</groupId>
103 <artifactId>cglib-nodep</artifactId>
104 <scope>test</scope>
105 </dependency>
106 <dependency>
egernug42daf632023-10-03 12:56:29 +0100107 <groupId>com.tngtech.archunit</groupId>
108 <artifactId>archunit-junit5</artifactId>
danielhanrahan43a5d4b2024-08-18 01:28:39 +0100109 <scope>test</scope>
egernug42daf632023-10-03 12:56:29 +0100110 </dependency>
111 <dependency>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200112 <groupId>org.springframework.boot</groupId>
113 <artifactId>spring-boot-starter-test</artifactId>
114 <scope>test</scope>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200115 </dependency>
egernug42daf632023-10-03 12:56:29 +0100116
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100117 </dependencies>
118
119 <build>
120 <pluginManagement>
121 <plugins>
122 <plugin>
123 <groupId>com.google.cloud.tools</groupId>
124 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100125 <version>3.3.2</version>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100126 <configuration>
127 <container>
128 <mainClass>${app}</mainClass>
129 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
130 </container>
131 <from>
132 <image>${base.image}</image>
133 </from>
134 <to>
Ruslan Kashapovaad22402021-02-23 10:08:00 +0200135 <tags>
136 <tag>latest</tag>
137 </tags>
ToineSiebelinka401e722021-06-30 08:38:51 +0100138 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100139 </to>
140 </configuration>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100141 <executions>
142 <execution>
143 <phase>package</phase>
144 <id>build</id>
145 <goals>
146 <goal>dockerBuild</goal>
147 </goals>
148 </execution>
149 <execution>
150 <phase>deploy</phase>
151 <id>buildAndPush</id>
152 <goals>
153 <goal>build</goal>
154 </goals>
155 </execution>
156 </executions>
157 </plugin>
158 </plugins>
159 </pluginManagement>
160 <plugins>
161 <plugin>
162 <groupId>org.springframework.boot</groupId>
163 <artifactId>spring-boot-maven-plugin</artifactId>
danielhanrahan81f61b52024-02-02 12:25:47 +0000164 <executions>
165 <execution>
166 <goals>
167 <goal>repackage</goal>
168 </goals>
169 <configuration>
170 <classifier>springboot</classifier>
171 </configuration>
172 </execution>
173 </executions>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100174 </plugin>
175 </plugins>
176 </build>
177 <profiles>
178 <profile>
179 <id>cps-docker</id>
180 <activation>
181 <activeByDefault>false</activeByDefault>
182 </activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100183
184 <properties>
185 <image.name>cps-service</image.name>
186 </properties>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100187 <dependencies>
188 <dependency>
189 <groupId>${project.groupId}</groupId>
190 <artifactId>cps-rest</artifactId>
191 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200192 <dependency>
193 <groupId>${project.groupId}</groupId>
194 <artifactId>cps-ri</artifactId>
195 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100196 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100197 <build>
198 <plugins>
199 <plugin>
200 <groupId>com.google.cloud.tools</groupId>
201 <artifactId>jib-maven-plugin</artifactId>
202 </plugin>
203 </plugins>
204 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100205 </profile>
206 <profile>
tragait34a94b92021-03-30 12:02:27 +0100207 <id>ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100208 <activation>
209 <activeByDefault>false</activeByDefault>
210 </activation>
211
212 <properties>
tragait34a94b92021-03-30 12:02:27 +0100213 <image.name>cps-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100214 </properties>
215
216 <dependencies>
217 <dependency>
218 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100219 <artifactId>cps-ncmp-rest</artifactId>
220 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100221 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200222 <dependency>
223 <groupId>${project.groupId}</groupId>
224 <artifactId>cps-ri</artifactId>
225 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100226 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100227 <build>
228 <plugins>
229 <plugin>
230 <groupId>com.google.cloud.tools</groupId>
231 <artifactId>jib-maven-plugin</artifactId>
232 </plugin>
233 </plugins>
234 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100235 </profile>
236 <profile>
tragait34a94b92021-03-30 12:02:27 +0100237 <id>cps-ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100238 <activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100239 <activeByDefault>true</activeByDefault>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100240 </activation>
241
242 <properties>
tragait34a94b92021-03-30 12:02:27 +0100243 <image.name>cps-and-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100244 </properties>
245
246 <dependencies>
247 <dependency>
248 <groupId>${project.groupId}</groupId>
249 <artifactId>cps-rest</artifactId>
250 </dependency>
251 <dependency>
252 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100253 <artifactId>cps-ncmp-rest</artifactId>
254 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100255 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200256 <dependency>
257 <groupId>${project.groupId}</groupId>
258 <artifactId>cps-ri</artifactId>
259 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100260 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100261 <build>
262 <plugins>
263 <plugin>
264 <groupId>com.google.cloud.tools</groupId>
265 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100266 <version>3.3.2</version>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100267 </plugin>
268 </plugins>
269 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100270 </profile>
271 </profiles>
lukegleeson15b93e72021-07-07 15:25:30 +0100272</project>