blob: 2e7b12dfb9b364c65a89eb0aa375b87afe680e84 [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>
danielhanrahan19f963b2023-06-15 13:52:34 +010031 <version>3.3.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>
ToineSiebelink73001f62021-09-17 15:07:38 +010040 <minimum-coverage>0.82</minimum-coverage>
ToineSiebelinka401e722021-06-30 08:38:51 +010041 <base.image>${docker.pull.registry}/onap/integration-java11:8.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>
puthuparambil.adityab46d1372021-07-09 12:51:10 +010069 <groupId>io.micrometer</groupId>
70 <artifactId>micrometer-registry-prometheus</artifactId>
71 </dependency>
72 <dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010073 <groupId>org.springframework.cloud</groupId>
74 <artifactId>spring-cloud-starter-sleuth</artifactId>
75 </dependency>
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +020076 <!-- T E S T D E P E N D E N C I E S -->
77 <dependency>
78 <groupId>org.springframework.security</groupId>
79 <artifactId>spring-security-test</artifactId>
80 <scope>test</scope>
81 </dependency>
82 <dependency>
83 <groupId>org.codehaus.groovy</groupId>
84 <artifactId>groovy</artifactId>
85 <scope>test</scope>
86 </dependency>
87 <dependency>
88 <groupId>org.spockframework</groupId>
89 <artifactId>spock-core</artifactId>
90 <scope>test</scope>
91 </dependency>
92 <dependency>
93 <groupId>org.spockframework</groupId>
94 <artifactId>spock-spring</artifactId>
95 <scope>test</scope>
96 </dependency>
97 <dependency>
98 <groupId>cglib</groupId>
99 <artifactId>cglib-nodep</artifactId>
100 <scope>test</scope>
101 </dependency>
102 <dependency>
103 <groupId>org.springframework.boot</groupId>
104 <artifactId>spring-boot-starter-test</artifactId>
105 <scope>test</scope>
106 <exclusions>
107 <exclusion>
108 <groupId>org.junit.vintage</groupId>
109 <artifactId>junit-vintage-engine</artifactId>
110 </exclusion>
111 </exclusions>
112 </dependency>
DylanB95ESTdb1f3782021-06-22 16:57:16 +0100113 <dependency>
114 <groupId>com.tngtech.archunit</groupId>
115 <artifactId>archunit-junit5</artifactId>
116 </dependency>
Michal Jagiello6ce84d92022-12-13 07:40:19 +0000117 <dependency>
118 <groupId>com.fasterxml.jackson.dataformat</groupId>
119 <artifactId>jackson-dataformat-xml</artifactId>
120 </dependency>
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>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100129 <configuration>
130 <container>
131 <mainClass>${app}</mainClass>
132 <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
133 </container>
134 <from>
135 <image>${base.image}</image>
136 </from>
137 <to>
Ruslan Kashapovaad22402021-02-23 10:08:00 +0200138 <tags>
139 <tag>latest</tag>
140 </tags>
ToineSiebelinka401e722021-06-30 08:38:51 +0100141 <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
Claudio D. Gasparini4ec225c2021-02-04 14:57:39 +0100142 </to>
143 </configuration>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100144 <executions>
145 <execution>
146 <phase>package</phase>
147 <id>build</id>
148 <goals>
149 <goal>dockerBuild</goal>
150 </goals>
151 </execution>
152 <execution>
153 <phase>deploy</phase>
154 <id>buildAndPush</id>
155 <goals>
156 <goal>build</goal>
157 </goals>
158 </execution>
159 </executions>
160 </plugin>
161 </plugins>
162 </pluginManagement>
163 <plugins>
164 <plugin>
165 <groupId>org.springframework.boot</groupId>
166 <artifactId>spring-boot-maven-plugin</artifactId>
167 </plugin>
168 </plugins>
169 </build>
170 <profiles>
171 <profile>
172 <id>cps-docker</id>
173 <activation>
174 <activeByDefault>false</activeByDefault>
175 </activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100176
177 <properties>
178 <image.name>cps-service</image.name>
179 </properties>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100180 <dependencies>
181 <dependency>
182 <groupId>${project.groupId}</groupId>
183 <artifactId>cps-rest</artifactId>
184 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200185 <dependency>
186 <groupId>${project.groupId}</groupId>
187 <artifactId>cps-ri</artifactId>
188 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100189 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100190 <build>
191 <plugins>
192 <plugin>
193 <groupId>com.google.cloud.tools</groupId>
194 <artifactId>jib-maven-plugin</artifactId>
195 </plugin>
196 </plugins>
197 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100198 </profile>
199 <profile>
tragait34a94b92021-03-30 12:02:27 +0100200 <id>ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100201 <activation>
202 <activeByDefault>false</activeByDefault>
203 </activation>
204
205 <properties>
tragait34a94b92021-03-30 12:02:27 +0100206 <image.name>cps-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100207 </properties>
208
209 <dependencies>
210 <dependency>
211 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100212 <artifactId>cps-ncmp-rest</artifactId>
213 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100214 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200215 <dependency>
216 <groupId>${project.groupId}</groupId>
217 <artifactId>cps-ri</artifactId>
218 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100219 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100220 <build>
221 <plugins>
222 <plugin>
223 <groupId>com.google.cloud.tools</groupId>
224 <artifactId>jib-maven-plugin</artifactId>
225 </plugin>
226 </plugins>
227 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100228 </profile>
229 <profile>
tragait34a94b92021-03-30 12:02:27 +0100230 <id>cps-ncmp-docker</id>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100231 <activation>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100232 <activeByDefault>true</activeByDefault>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100233 </activation>
234
235 <properties>
tragait34a94b92021-03-30 12:02:27 +0100236 <image.name>cps-and-ncmp</image.name>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100237 </properties>
238
239 <dependencies>
240 <dependency>
241 <groupId>${project.groupId}</groupId>
242 <artifactId>cps-rest</artifactId>
243 </dependency>
244 <dependency>
245 <groupId>${project.groupId}</groupId>
tragait34a94b92021-03-30 12:02:27 +0100246 <artifactId>cps-ncmp-rest</artifactId>
247 <version>${project.version}</version>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100248 </dependency>
Ruslan Kashapov8fe579d2021-03-04 17:13:00 +0200249 <dependency>
250 <groupId>${project.groupId}</groupId>
251 <artifactId>cps-ri</artifactId>
252 </dependency>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100253 </dependencies>
Claudio D. Gasparini6e603802021-02-20 18:56:47 +0100254 <build>
255 <plugins>
256 <plugin>
257 <groupId>com.google.cloud.tools</groupId>
258 <artifactId>jib-maven-plugin</artifactId>
259 </plugin>
260 </plugins>
261 </build>
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +0100262 </profile>
263 </profiles>
lukegleeson15b93e72021-07-07 15:25:30 +0100264</project>