5f7796aec327edc92ab52b9db4cc467d475e5d89
[cps.git] / cps-ri / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>\r
2 <!--\r
3   ============LICENSE_START=======================================================\r
4   Copyright (C) 2020-2021 Pantheon.tech\r
5   Modifications Copyright (C) 2020-2021 Bell Canada\r
6   Modifications Copyright (C) 2020-2022 Nordix Foundation\r
7   ================================================================================\r
8   Licensed under the Apache License, Version 2.0 (the "License");\r
9   you may not use this file except in compliance with the License.\r
10   You may obtain a copy of the License at\r
11 \r
12         http://www.apache.org/licenses/LICENSE-2.0\r
13 \r
14   Unless required by applicable law or agreed to in writing, software\r
15   distributed under the License is distributed on an "AS IS" BASIS,\r
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
17   See the License for the specific language governing permissions and\r
18   limitations under the License.\r
19   ============LICENSE_END=========================================================\r
20 -->\r
21 \r
22 <project xmlns="http://maven.apache.org/POM/4.0.0"\r
23     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
24     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">\r
25     <modelVersion>4.0.0</modelVersion>\r
26     <parent>\r
27         <groupId>org.onap.cps</groupId>\r
28         <artifactId>cps-parent</artifactId>\r
29         <version>3.2.2-SNAPSHOT</version>\r
30         <relativePath>../cps-parent/pom.xml</relativePath>\r
31     </parent>\r
32 \r
33     <artifactId>cps-ri</artifactId>\r
34 \r
35     <dependencies>\r
36         <dependency>\r
37             <groupId>${project.groupId}</groupId>\r
38             <artifactId>cps-service</artifactId>\r
39         </dependency>\r
40         <dependency>\r
41             <groupId>${project.groupId}</groupId>\r
42             <artifactId>cps-path-parser</artifactId>\r
43             <version>${project.version}</version>\r
44         </dependency>\r
45         <dependency>\r
46             <groupId>org.springframework.boot</groupId>\r
47             <artifactId>spring-boot-starter-data-jpa</artifactId>\r
48         </dependency>\r
49         <dependency>\r
50             <groupId>org.springframework.boot</groupId>\r
51             <artifactId>spring-boot-starter-validation</artifactId>\r
52         </dependency>\r
53         <dependency>\r
54             <groupId>org.springframework.retry</groupId>\r
55             <artifactId>spring-retry</artifactId>\r
56         </dependency>\r
57         <dependency>\r
58             <groupId>org.springframework</groupId>\r
59             <artifactId>spring-aspects</artifactId>\r
60         </dependency>\r
61         <dependency>\r
62             <groupId>org.postgresql</groupId>\r
63             <artifactId>postgresql</artifactId>\r
64             <version>${postgres.version}</version>\r
65         </dependency>\r
66         <!-- Add Hibernate support for Postgres datatype JSONB -->\r
67         <dependency>\r
68             <groupId>com.vladmihalcea</groupId>\r
69             <artifactId>hibernate-types-52</artifactId>\r
70         </dependency>\r
71         <dependency>\r
72             <groupId>org.projectlombok</groupId>\r
73             <artifactId>lombok</artifactId>\r
74         </dependency>\r
75         <dependency>\r
76             <groupId>org.liquibase</groupId>\r
77             <artifactId>liquibase-core</artifactId>\r
78             <version>4.14.0</version>\r
79         </dependency>\r
80         <dependency>\r
81             <groupId>commons-codec</groupId>\r
82             <artifactId>commons-codec</artifactId>\r
83         </dependency>\r
84         <dependency>\r
85             <groupId>org.apache.commons</groupId>\r
86             <artifactId>commons-lang3</artifactId>\r
87         </dependency>\r
88         <dependency>\r
89             <groupId>com.fasterxml.jackson.core</groupId>\r
90             <artifactId>jackson-databind</artifactId>\r
91         </dependency>\r
92         <!-- T E S T   D E P E N D E N C I E S -->\r
93         <dependency>\r
94             <groupId>org.codehaus.groovy</groupId>\r
95             <artifactId>groovy</artifactId>\r
96             <scope>test</scope>\r
97         </dependency>\r
98         <dependency>\r
99             <groupId>org.spockframework</groupId>\r
100             <artifactId>spock-core</artifactId>\r
101             <scope>test</scope>\r
102         </dependency>\r
103         <dependency>\r
104             <groupId>org.spockframework</groupId>\r
105             <artifactId>spock-spring</artifactId>\r
106             <scope>test</scope>\r
107         </dependency>\r
108         <dependency>\r
109             <groupId>cglib</groupId>\r
110             <artifactId>cglib-nodep</artifactId>\r
111             <scope>test</scope>\r
112         </dependency>\r
113         <dependency>\r
114             <groupId>org.springframework.boot</groupId>\r
115             <artifactId>spring-boot-starter-test</artifactId>\r
116             <scope>test</scope>\r
117             <exclusions>\r
118                 <exclusion>\r
119                     <groupId>org.junit.vintage</groupId>\r
120                     <artifactId>junit-vintage-engine</artifactId>\r
121                 </exclusion>\r
122             </exclusions>\r
123         </dependency>\r
124         <dependency>\r
125             <groupId>org.testcontainers</groupId>\r
126             <artifactId>postgresql</artifactId>\r
127             <scope>test</scope>\r
128         </dependency>\r
129         <dependency>\r
130             <groupId>org.testcontainers</groupId>\r
131             <artifactId>spock</artifactId>\r
132             <scope>test</scope>\r
133         </dependency>\r
134     </dependencies>\r
135 \r
136     <profiles>\r
137         <profile>\r
138             <id>default</id>\r
139             <activation>\r
140                 <activeByDefault>true</activeByDefault>\r
141             </activation>\r
142             <build>\r
143                 <plugins>\r
144                     <plugin>\r
145                         <groupId>org.apache.maven.plugins</groupId>\r
146                         <artifactId>maven-surefire-plugin</artifactId>\r
147                         <configuration>\r
148                             <excludes>\r
149                                 <exclude>%regex[.*PerfTest.*]</exclude>\r
150                             </excludes>\r
151                         </configuration>\r
152                     </plugin>\r
153                 </plugins>\r
154             </build>\r
155         </profile>\r
156         <profile>\r
157             <id>include-performance</id>\r
158         </profile>\r
159     </profiles>\r
160 \r
161     <build>\r
162         <plugins>\r
163             <plugin>\r
164                 <groupId>org.apache.maven.plugins</groupId>\r
165                 <artifactId>maven-surefire-plugin</artifactId>\r
166                 <configuration>\r
167                     <environmentVariables>\r
168                         <TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX>${docker.pull.registry}/library/</TESTCONTAINERS_HUB_IMAGE_NAME_PREFIX>\r
169                     </environmentVariables>\r
170                 </configuration>\r
171             </plugin>\r
172         </plugins>\r
173     </build>\r
174 </project>\r