blob: a17e6bd5a0d71f2e999e5953e3ab835b60dd0fef [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.
lukegleeson15b93e72021-07-07 15:25:30 +01006 Modifications Copyright (C) 2021 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>
mpriyank0fd4d192023-03-10 13:48:20 +000031 <version>3.2.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 <jib-maven-plugin.version>2.8.0</jib-maven-plugin.version>
40 <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
ToineSiebelink73001f62021-09-17 15:07:38 +010041 <minimum-coverage>0.82</minimum-coverage>
ToineSiebelinka401e722021-06-30 08:38:51 +010042 <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image>
Renu Kumaribd35b4d2021-05-17 07:16:48 -040043 <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010044 </properties>
45
46 <dependencies>
47 <dependency>
48 <groupId>org.springframework.boot</groupId>
49 <artifactId>spring-boot-starter-web</artifactId>
50 <exclusions>
51 <exclusion>
52 <groupId>org.springframework.boot</groupId>
53 <artifactId>spring-boot-starter-tomcat</artifactId>
54 </exclusion>
55 </exclusions>
56 </dependency>
57 <dependency>
58 <groupId>org.springframework.boot</groupId>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020059 <artifactId>spring-boot-starter-jetty</artifactId>
60 </dependency>
61 <dependency>
62 <groupId>org.springframework.boot</groupId>
63 <artifactId>spring-boot-starter-security</artifactId>
64 </dependency>
65 <dependency>
66 <groupId>org.springframework.boot</groupId>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010067 <artifactId>spring-boot-starter-actuator</artifactId>
68 </dependency>
69 <dependency>
puthuparambil.adityab46d1372021-07-09 12:51:10 +010070 <groupId>io.micrometer</groupId>
71 <artifactId>micrometer-registry-prometheus</artifactId>
72 </dependency>
73 <dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010074 <groupId>org.springframework.cloud</groupId>
75 <artifactId>spring-cloud-starter-sleuth</artifactId>
76 </dependency>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020077 <!-- T E S T D E P E N D E N C I E S -->
78 <dependency>
79 <groupId>org.springframework.security</groupId>
80 <artifactId>spring-security-test</artifactId>
81 <scope>test</scope>
82 </dependency>
83 <dependency>
84 <groupId>org.codehaus.groovy</groupId>
85 <artifactId>groovy</artifactId>
86 <scope>test</scope>
87 </dependency>
88 <dependency>
89 <groupId>org.spockframework</groupId>
90 <artifactId>spock-core</artifactId>
91 <scope>test</scope>
92 </dependency>
93 <dependency>
94 <groupId>org.spockframework</groupId>
95 <artifactId>spock-spring</artifactId>
96 <scope>test</scope>
97 </dependency>
98 <dependency>
99 <groupId>cglib</groupId>
100 <artifactId>cglib-nodep</artifactId>
101 <scope>test</scope>
102 </dependency>
103 <dependency>
104 <groupId>org.springframework.boot</groupId>
105 <artifactId>spring-boot-starter-test</artifactId>
106 <scope>test</scope>
107 <exclusions>
108 <exclusion>
109 <groupId>org.junit.vintage</groupId>
110 <artifactId>junit-vintage-engine</artifactId>
111 </exclusion>
112 </exclusions>
113 </dependency>
DylanB95ESTdb1f3782021-06-22 16:57:16 +0100114 <dependency>
115 <groupId>com.tngtech.archunit</groupId>
116 <artifactId>archunit-junit5</artifactId>
117 </dependency>
Michal Jagiello6ce84d92022-12-13 07:40:19 +0000118 <dependency>
119 <groupId>com.fasterxml.jackson.dataformat</groupId>
120 <artifactId>jackson-dataformat-xml</artifactId>
121 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100122 </dependencies>
123
124 <build>
125 <pluginManagement>
126 <plugins>
127 <plugin>
128 <groupId>com.google.cloud.tools</groupId>
129 <artifactId>jib-maven-plugin</artifactId>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100130 <version>${jib-maven-plugin.version}</version>
131 <configuration>
132 <container>
133 <mainClass>${app}</mainClass>
134 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
135 </container>
136 <from>
137 <image>${base.image}</image>
138 </from>
139 <to>
Ruslan Kashapovaad22402021-02-23 10:08:00 +0200140 <tags>
141 <tag>latest</tag>
142 </tags>
ToineSiebelinka401e722021-06-30 08:38:51 +0100143 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100144 </to>
145 </configuration>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100146 <executions>
147 <execution>
148 <phase>package</phase>
149 <id>build</id>
150 <goals>
151 <goal>dockerBuild</goal>
152 </goals>
153 </execution>
154 <execution>
155 <phase>deploy</phase>
156 <id>buildAndPush</id>
157 <goals>
158 <goal>build</goal>
159 </goals>
160 </execution>
161 </executions>
162 </plugin>
163 </plugins>
164 </pluginManagement>
165 <plugins>
166 <plugin>
167 <groupId>org.springframework.boot</groupId>
168 <artifactId>spring-boot-maven-plugin</artifactId>
169 </plugin>
170 </plugins>
171 </build>
172 <profiles>
173 <profile>
174 <id>cps-docker</id>
175 <activation>
176 <activeByDefault>false</activeByDefault>
177 </activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100178
179 <properties>
180 <image.name>cps-service</image.name>
181 </properties>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100182 <dependencies>
183 <dependency>
184 <groupId>${project.groupId}</groupId>
185 <artifactId>cps-rest</artifactId>
186 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200187 <dependency>
188 <groupId>${project.groupId}</groupId>
189 <artifactId>cps-ri</artifactId>
190 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100191 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100192 <build>
193 <plugins>
194 <plugin>
195 <groupId>com.google.cloud.tools</groupId>
196 <artifactId>jib-maven-plugin</artifactId>
197 </plugin>
198 </plugins>
199 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100200 </profile>
201 <profile>
tragait34a94b92021-03-30 12:02:27 +0100202 <id>ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100203 <activation>
204 <activeByDefault>false</activeByDefault>
205 </activation>
206
207 <properties>
tragait34a94b92021-03-30 12:02:27 +0100208 <image.name>cps-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100209 </properties>
210
211 <dependencies>
212 <dependency>
213 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100214 <artifactId>cps-ncmp-rest</artifactId>
215 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100216 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200217 <dependency>
218 <groupId>${project.groupId}</groupId>
219 <artifactId>cps-ri</artifactId>
220 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100221 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100222 <build>
223 <plugins>
224 <plugin>
225 <groupId>com.google.cloud.tools</groupId>
226 <artifactId>jib-maven-plugin</artifactId>
227 </plugin>
228 </plugins>
229 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100230 </profile>
231 <profile>
tragait34a94b92021-03-30 12:02:27 +0100232 <id>cps-ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100233 <activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100234 <activeByDefault>true</activeByDefault>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100235 </activation>
236
237 <properties>
tragait34a94b92021-03-30 12:02:27 +0100238 <image.name>cps-and-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100239 </properties>
240
241 <dependencies>
242 <dependency>
243 <groupId>${project.groupId}</groupId>
244 <artifactId>cps-rest</artifactId>
245 </dependency>
246 <dependency>
247 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100248 <artifactId>cps-ncmp-rest</artifactId>
249 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100250 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200251 <dependency>
252 <groupId>${project.groupId}</groupId>
253 <artifactId>cps-ri</artifactId>
254 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100255 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100256 <build>
257 <plugins>
258 <plugin>
259 <groupId>com.google.cloud.tools</groupId>
260 <artifactId>jib-maven-plugin</artifactId>
261 </plugin>
262 </plugins>
263 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100264 </profile>
265 </profiles>
lukegleeson15b93e72021-07-07 15:25:30 +0100266</project>