blob: 4c231a6d4ea3d39df22ba59a58f6cfc69aae7d93 [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>
mpriyank22e1f432024-02-27 14:04:38 +000031 <version>3.4.6-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>
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>
puthuparambil.adityab46d1372021-07-09 12:51:10 +010081 <groupId>io.micrometer</groupId>
82 <artifactId>micrometer-registry-prometheus</artifactId>
83 </dependency>
84 <dependency>
egernug477bd462023-09-21 17:51:21 +010085 <groupId>io.micrometer</groupId>
86 <artifactId>micrometer-tracing-bridge-brave</artifactId>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010087 </dependency>
egernug42daf632023-10-03 12:56:29 +010088 <dependency>
89 <groupId>com.fasterxml.jackson.dataformat</groupId>
90 <artifactId>jackson-dataformat-xml</artifactId>
91 </dependency>
92
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020093 <!-- 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>
egernug42daf632023-10-03 12:56:29 +0100120 <groupId>com.tngtech.archunit</groupId>
121 <artifactId>archunit-junit5</artifactId>
122 </dependency>
123 <dependency>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200124 <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>
egernug42daf632023-10-03 12:56:29 +0100134
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100135 </dependencies>
136
137 <build>
138 <pluginManagement>
139 <plugins>
140 <plugin>
141 <groupId>com.google.cloud.tools</groupId>
142 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100143 <version>3.3.2</version>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100144 <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>
Ruslan Kashapovaad22402021-02-23 10:08:00 +0200153 <tags>
154 <tag>latest</tag>
155 </tags>
ToineSiebelinka401e722021-06-30 08:38:51 +0100156 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100157 </to>
158 </configuration>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100159 <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>
danielhanrahan81f61b52024-02-02 12:25:47 +0000182 <executions>
183 <execution>
184 <goals>
185 <goal>repackage</goal>
186 </goals>
187 <configuration>
188 <classifier>springboot</classifier>
189 </configuration>
190 </execution>
191 </executions>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100192 </plugin>
193 </plugins>
194 </build>
195 <profiles>
196 <profile>
197 <id>cps-docker</id>
198 <activation>
199 <activeByDefault>false</activeByDefault>
200 </activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100201
202 <properties>
203 <image.name>cps-service</image.name>
204 </properties>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100205 <dependencies>
206 <dependency>
207 <groupId>${project.groupId}</groupId>
208 <artifactId>cps-rest</artifactId>
209 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200210 <dependency>
211 <groupId>${project.groupId}</groupId>
212 <artifactId>cps-ri</artifactId>
213 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100214 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100215 <build>
216 <plugins>
217 <plugin>
218 <groupId>com.google.cloud.tools</groupId>
219 <artifactId>jib-maven-plugin</artifactId>
220 </plugin>
221 </plugins>
222 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100223 </profile>
224 <profile>
tragait34a94b92021-03-30 12:02:27 +0100225 <id>ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100226 <activation>
227 <activeByDefault>false</activeByDefault>
228 </activation>
229
230 <properties>
tragait34a94b92021-03-30 12:02:27 +0100231 <image.name>cps-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100232 </properties>
233
234 <dependencies>
235 <dependency>
236 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100237 <artifactId>cps-ncmp-rest</artifactId>
238 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100239 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200240 <dependency>
241 <groupId>${project.groupId}</groupId>
242 <artifactId>cps-ri</artifactId>
243 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100244 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100245 <build>
246 <plugins>
247 <plugin>
248 <groupId>com.google.cloud.tools</groupId>
249 <artifactId>jib-maven-plugin</artifactId>
250 </plugin>
251 </plugins>
252 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100253 </profile>
254 <profile>
tragait34a94b92021-03-30 12:02:27 +0100255 <id>cps-ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100256 <activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100257 <activeByDefault>true</activeByDefault>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100258 </activation>
259
260 <properties>
tragait34a94b92021-03-30 12:02:27 +0100261 <image.name>cps-and-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100262 </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>
tragait34a94b92021-03-30 12:02:27 +0100271 <artifactId>cps-ncmp-rest</artifactId>
272 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100273 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200274 <dependency>
275 <groupId>${project.groupId}</groupId>
276 <artifactId>cps-ri</artifactId>
277 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100278 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100279 <build>
280 <plugins>
281 <plugin>
282 <groupId>com.google.cloud.tools</groupId>
283 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100284 <version>3.3.2</version>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100285 </plugin>
286 </plugins>
287 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100288 </profile>
289 </profiles>
lukegleeson15b93e72021-07-07 15:25:30 +0100290</project>