blob: b3e1fe9679c16b7e243e39efc3abc8586a0037fd [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.
lukegleeson7e243c92023-04-20 15:32:12 +01006 Modifications Copyright (C) 2021-2023 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>
danielhanrahan345f40f2024-01-11 15:25:18 +000031 <version>3.4.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>
ToineSiebelink7fcffe52023-07-24 12:23:05 +010040 <minimum-coverage>0.86</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>
62 <artifactId>spring-boot-starter-security</artifactId>
63 </dependency>
64 <dependency>
65 <groupId>org.springframework.boot</groupId>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010066 <artifactId>spring-boot-starter-actuator</artifactId>
67 </dependency>
68 <dependency>
egernugfb09b7c2023-10-12 13:33:08 +010069 <groupId>org.springdoc</groupId>
70 <artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
71 </dependency>
72 <dependency>
egernug42daf632023-10-03 12:56:29 +010073 <groupId>org.eclipse.jetty</groupId>
74 <artifactId>jetty-server</artifactId>
75 </dependency>
76 <dependency>
77 <groupId>org.eclipse.jetty</groupId>
78 <artifactId>jetty-http</artifactId>
79 </dependency>
80 <dependency>
81 <groupId>jakarta.servlet</groupId>
82 <artifactId>jakarta.servlet-api</artifactId>
83 </dependency>
84 <dependency>
puthuparambil.adityab46d1372021-07-09 12:51:10 +010085 <groupId>io.micrometer</groupId>
86 <artifactId>micrometer-registry-prometheus</artifactId>
87 </dependency>
88 <dependency>
egernug477bd462023-09-21 17:51:21 +010089 <groupId>io.micrometer</groupId>
90 <artifactId>micrometer-tracing-bridge-brave</artifactId>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010091 </dependency>
egernug42daf632023-10-03 12:56:29 +010092 <dependency>
93 <groupId>com.fasterxml.jackson.dataformat</groupId>
94 <artifactId>jackson-dataformat-xml</artifactId>
95 </dependency>
96
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020097 <!-- T E S T D E P E N D E N C I E S -->
98 <dependency>
99 <groupId>org.springframework.security</groupId>
100 <artifactId>spring-security-test</artifactId>
101 <scope>test</scope>
102 </dependency>
103 <dependency>
104 <groupId>org.codehaus.groovy</groupId>
105 <artifactId>groovy</artifactId>
106 <scope>test</scope>
107 </dependency>
108 <dependency>
109 <groupId>org.spockframework</groupId>
110 <artifactId>spock-core</artifactId>
111 <scope>test</scope>
112 </dependency>
113 <dependency>
114 <groupId>org.spockframework</groupId>
115 <artifactId>spock-spring</artifactId>
116 <scope>test</scope>
117 </dependency>
118 <dependency>
119 <groupId>cglib</groupId>
120 <artifactId>cglib-nodep</artifactId>
121 <scope>test</scope>
122 </dependency>
123 <dependency>
egernug42daf632023-10-03 12:56:29 +0100124 <groupId>com.tngtech.archunit</groupId>
125 <artifactId>archunit-junit5</artifactId>
126 </dependency>
127 <dependency>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200128 <groupId>org.springframework.boot</groupId>
129 <artifactId>spring-boot-starter-test</artifactId>
130 <scope>test</scope>
131 <exclusions>
132 <exclusion>
133 <groupId>org.junit.vintage</groupId>
134 <artifactId>junit-vintage-engine</artifactId>
135 </exclusion>
136 </exclusions>
137 </dependency>
egernug42daf632023-10-03 12:56:29 +0100138
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100139 </dependencies>
140
141 <build>
142 <pluginManagement>
143 <plugins>
144 <plugin>
145 <groupId>com.google.cloud.tools</groupId>
146 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100147 <version>3.3.2</version>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100148 <configuration>
149 <container>
150 <mainClass>${app}</mainClass>
151 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
152 </container>
153 <from>
154 <image>${base.image}</image>
155 </from>
156 <to>
Ruslan Kashapovaad22402021-02-23 10:08:00 +0200157 <tags>
158 <tag>latest</tag>
159 </tags>
ToineSiebelinka401e722021-06-30 08:38:51 +0100160 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100161 </to>
162 </configuration>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100163 <executions>
164 <execution>
165 <phase>package</phase>
166 <id>build</id>
167 <goals>
168 <goal>dockerBuild</goal>
169 </goals>
170 </execution>
171 <execution>
172 <phase>deploy</phase>
173 <id>buildAndPush</id>
174 <goals>
175 <goal>build</goal>
176 </goals>
177 </execution>
178 </executions>
179 </plugin>
180 </plugins>
181 </pluginManagement>
182 <plugins>
183 <plugin>
184 <groupId>org.springframework.boot</groupId>
185 <artifactId>spring-boot-maven-plugin</artifactId>
186 </plugin>
187 </plugins>
188 </build>
189 <profiles>
190 <profile>
191 <id>cps-docker</id>
192 <activation>
193 <activeByDefault>false</activeByDefault>
194 </activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100195
196 <properties>
197 <image.name>cps-service</image.name>
198 </properties>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100199 <dependencies>
200 <dependency>
201 <groupId>${project.groupId}</groupId>
202 <artifactId>cps-rest</artifactId>
203 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200204 <dependency>
205 <groupId>${project.groupId}</groupId>
206 <artifactId>cps-ri</artifactId>
207 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100208 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100209 <build>
210 <plugins>
211 <plugin>
212 <groupId>com.google.cloud.tools</groupId>
213 <artifactId>jib-maven-plugin</artifactId>
214 </plugin>
215 </plugins>
216 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100217 </profile>
218 <profile>
tragait34a94b92021-03-30 12:02:27 +0100219 <id>ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100220 <activation>
221 <activeByDefault>false</activeByDefault>
222 </activation>
223
224 <properties>
tragait34a94b92021-03-30 12:02:27 +0100225 <image.name>cps-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100226 </properties>
227
228 <dependencies>
229 <dependency>
230 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100231 <artifactId>cps-ncmp-rest</artifactId>
232 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100233 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200234 <dependency>
235 <groupId>${project.groupId}</groupId>
236 <artifactId>cps-ri</artifactId>
237 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100238 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100239 <build>
240 <plugins>
241 <plugin>
242 <groupId>com.google.cloud.tools</groupId>
243 <artifactId>jib-maven-plugin</artifactId>
244 </plugin>
245 </plugins>
246 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100247 </profile>
248 <profile>
tragait34a94b92021-03-30 12:02:27 +0100249 <id>cps-ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100250 <activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100251 <activeByDefault>true</activeByDefault>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100252 </activation>
253
254 <properties>
tragait34a94b92021-03-30 12:02:27 +0100255 <image.name>cps-and-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100256 </properties>
257
258 <dependencies>
259 <dependency>
260 <groupId>${project.groupId}</groupId>
261 <artifactId>cps-rest</artifactId>
262 </dependency>
263 <dependency>
264 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100265 <artifactId>cps-ncmp-rest</artifactId>
266 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100267 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200268 <dependency>
269 <groupId>${project.groupId}</groupId>
270 <artifactId>cps-ri</artifactId>
271 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100272 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100273 <build>
274 <plugins>
275 <plugin>
276 <groupId>com.google.cloud.tools</groupId>
277 <artifactId>jib-maven-plugin</artifactId>
egernug2b8268f2023-07-03 10:09:09 +0100278 <version>3.3.2</version>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100279 </plugin>
280 </plugins>
281 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100282 </profile>
283 </profiles>
lukegleeson15b93e72021-07-07 15:25:30 +0100284</project>