Merge "Sending Data Updated Event to kafka"
[cps.git] / cps-application / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   Copyright (c) 2021 Pantheon.tech.
5   Modifications Copyright (C) 2021 Bell Canada.
6   Modification Copyright (C) 2021 Nordix Foundation
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11
12         http://www.apache.org/licenses/LICENSE-2.0
13
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20 -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0"
23          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
24          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
25     <modelVersion>4.0.0</modelVersion>
26
27     <parent>
28         <groupId>org.onap.cps</groupId>
29         <artifactId>cps-parent</artifactId>
30         <version>1.1.0-SNAPSHOT</version>
31         <relativePath>../cps-parent/pom.xml</relativePath>
32     </parent>
33
34     <artifactId>cps-application</artifactId>
35
36     <properties>
37         <app>org.onap.cps.Application</app>
38         <jib-maven-plugin.version>2.8.0</jib-maven-plugin.version>
39         <maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
40         <minimum-coverage>0.7</minimum-coverage>
41         <base.image>${docker.pull.registry}/onap/integration-java11:8.0.0</base.image>
42         <image.tag>${project.version}-${maven.build.timestamp}</image.tag>
43     </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>
58             <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>
66             <artifactId>spring-boot-starter-actuator</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.springframework.cloud</groupId>
70             <artifactId>spring-cloud-starter-sleuth</artifactId>
71         </dependency>
72         <!-- T E S T   D E P E N D E N C I E S -->
73         <dependency>
74             <groupId>org.springframework.security</groupId>
75             <artifactId>spring-security-test</artifactId>
76             <scope>test</scope>
77         </dependency>
78         <dependency>
79             <groupId>org.codehaus.groovy</groupId>
80             <artifactId>groovy</artifactId>
81             <scope>test</scope>
82         </dependency>
83         <dependency>
84             <groupId>org.spockframework</groupId>
85             <artifactId>spock-core</artifactId>
86             <scope>test</scope>
87         </dependency>
88         <dependency>
89             <groupId>org.spockframework</groupId>
90             <artifactId>spock-spring</artifactId>
91             <scope>test</scope>
92         </dependency>
93         <dependency>
94             <groupId>cglib</groupId>
95             <artifactId>cglib-nodep</artifactId>
96             <scope>test</scope>
97         </dependency>
98         <dependency>
99             <groupId>org.springframework.boot</groupId>
100             <artifactId>spring-boot-starter-test</artifactId>
101             <scope>test</scope>
102             <exclusions>
103                 <exclusion>
104                     <groupId>org.junit.vintage</groupId>
105                     <artifactId>junit-vintage-engine</artifactId>
106                 </exclusion>
107             </exclusions>
108         </dependency>
109         <dependency>
110             <groupId>com.tngtech.archunit</groupId>
111             <artifactId>archunit-junit5</artifactId>
112         </dependency>
113     </dependencies>
114
115     <build>
116         <pluginManagement>
117             <plugins>
118                 <plugin>
119                     <groupId>com.google.cloud.tools</groupId>
120                     <artifactId>jib-maven-plugin</artifactId>
121                     <version>${jib-maven-plugin.version}</version>
122                     <configuration>
123                         <container>
124                             <mainClass>${app}</mainClass>
125                             <creationTime>USE_CURRENT_TIMESTAMP</creationTime>
126                         </container>
127                         <from>
128                             <image>${base.image}</image>
129                         </from>
130                         <to>
131                             <tags>
132                                 <tag>latest</tag>
133                             </tags>
134                             <image>${docker.push.registry}/onap/${image.name}:${image.tag}</image>
135                         </to>
136                     </configuration>
137                     <executions>
138                         <execution>
139                             <phase>package</phase>
140                             <id>build</id>
141                             <goals>
142                                 <goal>dockerBuild</goal>
143                             </goals>
144                         </execution>
145                         <execution>
146                             <phase>deploy</phase>
147                             <id>buildAndPush</id>
148                             <goals>
149                                 <goal>build</goal>
150                             </goals>
151                         </execution>
152                     </executions>
153                 </plugin>
154             </plugins>
155         </pluginManagement>
156         <plugins>
157             <plugin>
158                 <groupId>org.springframework.boot</groupId>
159                 <artifactId>spring-boot-maven-plugin</artifactId>
160             </plugin>
161         </plugins>
162     </build>
163     <profiles>
164         <profile>
165             <id>cps-docker</id>
166             <activation>
167                 <activeByDefault>false</activeByDefault>
168             </activation>
169
170             <properties>
171                 <image.name>cps-service</image.name>
172             </properties>
173             <dependencies>
174                 <dependency>
175                     <groupId>${project.groupId}</groupId>
176                     <artifactId>cps-rest</artifactId>
177                 </dependency>
178                 <dependency>
179                     <groupId>${project.groupId}</groupId>
180                     <artifactId>cps-ri</artifactId>
181                 </dependency>
182             </dependencies>
183             <build>
184                 <plugins>
185                     <plugin>
186                         <groupId>com.google.cloud.tools</groupId>
187                         <artifactId>jib-maven-plugin</artifactId>
188                     </plugin>
189                 </plugins>
190             </build>
191         </profile>
192         <profile>
193             <id>ncmp-docker</id>
194             <activation>
195                 <activeByDefault>false</activeByDefault>
196             </activation>
197
198             <properties>
199                 <image.name>cps-ncmp</image.name>
200             </properties>
201
202             <dependencies>
203                 <dependency>
204                     <groupId>${project.groupId}</groupId>
205                     <artifactId>cps-ncmp-rest</artifactId>
206                     <version>${project.version}</version>
207                 </dependency>
208                 <dependency>
209                     <groupId>${project.groupId}</groupId>
210                     <artifactId>cps-ri</artifactId>
211                 </dependency>
212             </dependencies>
213             <build>
214                 <plugins>
215                     <plugin>
216                         <groupId>com.google.cloud.tools</groupId>
217                         <artifactId>jib-maven-plugin</artifactId>
218                     </plugin>
219                 </plugins>
220             </build>
221         </profile>
222         <profile>
223             <id>cps-ncmp-docker</id>
224             <activation>
225                 <activeByDefault>true</activeByDefault>
226             </activation>
227
228             <properties>
229                 <image.name>cps-and-ncmp</image.name>
230             </properties>
231
232             <dependencies>
233                 <dependency>
234                     <groupId>${project.groupId}</groupId>
235                     <artifactId>cps-rest</artifactId>
236                 </dependency>
237                 <dependency>
238                     <groupId>${project.groupId}</groupId>
239                     <artifactId>cps-ncmp-rest</artifactId>
240                     <version>${project.version}</version>
241                 </dependency>
242                 <dependency>
243                     <groupId>${project.groupId}</groupId>
244                     <artifactId>cps-ri</artifactId>
245                 </dependency>
246             </dependencies>
247             <build>
248                 <plugins>
249                     <plugin>
250                         <groupId>com.google.cloud.tools</groupId>
251                         <artifactId>jib-maven-plugin</artifactId>
252                     </plugin>
253                 </plugins>
254             </build>
255         </profile>
256     </profiles>
257 </project>