Add declarative acceptance tests
[ccsdk/cds.git] / components / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright © 2017-2018 AT&T Intellectual Property.
4   ~
5   ~ Modifications Copyright © 2018 IBM.
6   ~
7   ~ Licensed under the Apache License, Version 2.0 (the "License");
8   ~ you may not use this file except in compliance with the License.
9   ~ You may obtain a copy of the License at
10   ~
11   ~     http://www.apache.org/licenses/LICENSE-2.0
12   ~
13   ~ Unless required by applicable law or agreed to in writing, software
14   ~ distributed under the License is distributed on an "AS IS" BASIS,
15   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   ~ See the License for the specific language governing permissions and
17   ~ limitations under the License.
18   -->
19 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20     <modelVersion>4.0.0</modelVersion>
21     <parent>
22         <groupId>org.onap.ccsdk.cds</groupId>
23         <artifactId>components</artifactId>
24         <version>0.5.2-SNAPSHOT</version>
25     </parent>
26     <groupId>org.onap.ccsdk.cds.components</groupId>
27     <artifactId>parent</artifactId>
28     <name>Components Parent</name>
29     <packaging>pom</packaging>
30     <properties>
31         <kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
32         <grpc.version>1.18.0</grpc.version>
33         <protobuff.java.utils.version>3.6.1</protobuff.java.utils.version>
34         <eelf.version>1.0.0</eelf.version>
35         <guava.version>27.0.1-jre</guava.version>
36         <springfox.swagger2.version>2.9.2</springfox.swagger2.version>
37         <h2database.version>1.4.197</h2database.version>
38         <onap.logger.slf4j>1.2.2</onap.logger.slf4j>
39         <mockk.version>1.9</mockk.version>
40         <velocity.version>1.7</velocity.version>
41         <jinja.version>2.5.1</jinja.version>
42     </properties>
43     <dependencyManagement>
44         <dependencies>
45             <!-- Spring boot -->
46             <dependency>
47                 <groupId>org.springframework.boot</groupId>
48                 <artifactId>spring-boot-dependencies</artifactId>
49                 <version>${spring.boot.version}</version>
50                 <type>pom</type>
51                 <scope>import</scope>
52             </dependency>
53
54             <!--Swagger Dependencies -->
55             <dependency>
56                 <groupId>io.springfox</groupId>
57                 <artifactId>springfox-swagger2</artifactId>
58                 <version>${springfox.swagger2.version}</version>
59                 <exclusions>
60                     <exclusion>
61                         <groupId>org.slf4j</groupId>
62                         <artifactId>slf4j-api</artifactId>
63                     </exclusion>
64                 </exclusions>
65             </dependency>
66             <dependency>
67                 <groupId>io.springfox</groupId>
68                 <artifactId>springfox-swagger-ui</artifactId>
69                 <version>${springfox.swagger2.version}</version>
70             </dependency>
71
72             <!-- Common Utils Dependencies -->
73             <dependency>
74                 <groupId>org.apache.commons</groupId>
75                 <artifactId>commons-lang3</artifactId>
76                 <version>3.2.1</version>
77             </dependency>
78             <dependency>
79                 <groupId>commons-collections</groupId>
80                 <artifactId>commons-collections</artifactId>
81                 <version>3.2.2</version>
82             </dependency>
83             <dependency>
84                 <groupId>commons-io</groupId>
85                 <artifactId>commons-io</artifactId>
86                 <version>2.6</version>
87             </dependency>
88             <dependency>
89                 <groupId>org.apache.velocity</groupId>
90                 <artifactId>velocity</artifactId>
91                 <version>${velocity.version}</version>
92             </dependency>
93             <dependency>
94                 <groupId>com.google.guava</groupId>
95                 <artifactId>guava</artifactId>
96                 <version>${guava.version}</version>
97             </dependency>
98             <dependency>
99                 <groupId>com.hubspot.jinjava</groupId>
100                 <artifactId>jinjava</artifactId>
101                 <version>${jinja.version}</version>
102             </dependency>
103
104             <!-- Kotlin Dependencies -->
105             <dependency>
106                 <groupId>org.jetbrains.kotlin</groupId>
107                 <artifactId>kotlin-stdlib</artifactId>
108                 <version>${kotlin.version}</version>
109             </dependency>
110             <dependency>
111                 <groupId>org.jetbrains.kotlin</groupId>
112                 <artifactId>kotlin-stdlib-common</artifactId>
113                 <version>${kotlin.version}</version>
114             </dependency>
115             <dependency>
116                 <groupId>org.jetbrains.kotlin</groupId>
117                 <artifactId>kotlin-scripting-jvm-host</artifactId>
118                 <version>${kotlin.version}</version>
119             </dependency>
120             <dependency>
121                 <groupId>org.jetbrains.kotlin</groupId>
122                 <artifactId>kotlin-compiler-embeddable</artifactId>
123                 <version>${kotlin.version}</version>
124             </dependency>
125             <dependency>
126                 <groupId>org.jetbrains.kotlin</groupId>
127                 <artifactId>kotlin-script-util</artifactId>
128                 <version>${kotlin.version}</version>
129             </dependency>
130             <dependency>
131                 <groupId>org.jetbrains.kotlin</groupId>
132                 <artifactId>kotlin-script-runtime</artifactId>
133                 <version>${kotlin.version}</version>
134             </dependency>
135             <dependency>
136                 <groupId>org.jetbrains.kotlinx</groupId>
137                 <artifactId>kotlinx-coroutines-core</artifactId>
138                 <version>${kotlin.couroutines.version}</version>
139             </dependency>
140             <dependency>
141                 <groupId>org.jetbrains.kotlinx</groupId>
142                 <artifactId>kotlinx-coroutines-reactor</artifactId>
143                 <version>${kotlin.couroutines.version}</version>
144             </dependency>
145             <dependency>
146                 <groupId>org.jetbrains.kotlin</groupId>
147                 <artifactId>kotlin-reflect</artifactId>
148                 <version>${kotlin.version}</version>
149             </dependency>
150             <dependency>
151                 <groupId>org.jetbrains.kotlin</groupId>
152                 <artifactId>kotlin-stdlib-jdk8</artifactId>
153                 <version>${kotlin.version}</version>
154             </dependency>
155             <dependency>
156                 <groupId>org.jetbrains.kotlin</groupId>
157                 <artifactId>kotlin-stdlib-jdk7</artifactId>
158                 <version>${kotlin.version}</version>
159             </dependency>
160
161             <!-- GRPC Dependencies -->
162             <dependency>
163                 <groupId>io.grpc</groupId>
164                 <artifactId>grpc-core</artifactId>
165                 <version>${grpc.version}</version>
166             </dependency>
167             <dependency>
168                 <groupId>io.grpc</groupId>
169                 <artifactId>grpc-netty</artifactId>
170                 <version>${grpc.version}</version>
171             </dependency>
172             <dependency>
173                 <groupId>io.grpc</groupId>
174                 <artifactId>grpc-protobuf</artifactId>
175                 <version>${grpc.version}</version>
176             </dependency>
177             <dependency>
178                 <groupId>io.grpc</groupId>
179                 <artifactId>grpc-stub</artifactId>
180                 <version>${grpc.version}</version>
181             </dependency>
182             <dependency>
183                 <groupId>com.google.protobuf</groupId>
184                 <artifactId>protobuf-java-util</artifactId>
185                 <version>${protobuff.java.utils.version}</version>
186             </dependency>
187
188
189             <!-- Database -->
190             <dependency>
191                 <groupId>com.h2database</groupId>
192                 <artifactId>h2</artifactId>
193                 <version>${h2database.version}</version>
194             </dependency>
195
196
197             <!-- Testing Dependencies -->
198             <dependency>
199                 <groupId>io.mockk</groupId>
200                 <artifactId>mockk</artifactId>
201                 <version>${mockk.version}</version>
202                 <scope>test</scope>
203             </dependency>
204             <dependency>
205                 <groupId>org.jetbrains.kotlin</groupId>
206                 <artifactId>kotlin-test-junit</artifactId>
207                 <version>${kotlin.version}</version>
208                 <scope>test</scope>
209             </dependency>
210             <dependency>
211                 <groupId>org.jetbrains.kotlinx</groupId>
212                 <artifactId>kotlinx-coroutines-test</artifactId>
213                 <version>${kotlin.couroutines.version}</version>
214                 <scope>test</scope>
215             </dependency>
216             <dependency>
217                 <groupId>io.grpc</groupId>
218                 <artifactId>grpc-testing</artifactId>
219                 <version>${grpc.version}</version>
220                 <scope>test</scope>
221             </dependency>
222         </dependencies>
223     </dependencyManagement>
224
225     <dependencies>
226         <dependency>
227             <groupId>org.apache.commons</groupId>
228             <artifactId>commons-lang3</artifactId>
229         </dependency>
230         <dependency>
231             <groupId>commons-collections</groupId>
232             <artifactId>commons-collections</artifactId>
233         </dependency>
234         <dependency>
235             <groupId>commons-io</groupId>
236             <artifactId>commons-io</artifactId>
237         </dependency>
238         <dependency>
239             <groupId>com.jayway.jsonpath</groupId>
240             <artifactId>json-path</artifactId>
241             <exclusions>
242                 <exclusion>
243                     <groupId>org.slf4j</groupId>
244                     <artifactId>slf4j-api</artifactId>
245                 </exclusion>
246             </exclusions>
247         </dependency>
248         <dependency>
249             <groupId>com.google.guava</groupId>
250             <artifactId>guava</artifactId>
251         </dependency>
252         <dependency>
253             <groupId>io.springfox</groupId>
254             <artifactId>springfox-swagger2</artifactId>
255             <exclusions>
256                 <exclusion>
257                     <groupId>org.slf4j</groupId>
258                     <artifactId>slf4j-api</artifactId>
259                 </exclusion>
260             </exclusions>
261         </dependency>
262         <dependency>
263             <groupId>io.springfox</groupId>
264             <artifactId>springfox-swagger-ui</artifactId>
265         </dependency>
266         <dependency>
267             <groupId>org.jetbrains.kotlin</groupId>
268             <artifactId>kotlin-stdlib</artifactId>
269         </dependency>
270         <dependency>
271             <groupId>org.jetbrains.kotlin</groupId>
272             <artifactId>kotlin-script-util</artifactId>
273         </dependency>
274         <dependency>
275             <groupId>org.jetbrains.kotlin</groupId>
276             <artifactId>kotlin-stdlib-jdk8</artifactId>
277         </dependency>
278         <dependency>
279             <groupId>org.jetbrains.kotlinx</groupId>
280             <artifactId>kotlinx-coroutines-core</artifactId>
281         </dependency>
282         <dependency>
283             <groupId>org.jetbrains.kotlinx</groupId>
284             <artifactId>kotlinx-coroutines-reactor</artifactId>
285         </dependency>
286         <dependency>
287             <groupId>com.fasterxml.jackson.module</groupId>
288             <artifactId>jackson-module-kotlin</artifactId>
289         </dependency>
290         <!-- GRPC Dependencies -->
291         <dependency>
292             <groupId>io.grpc</groupId>
293             <artifactId>grpc-netty</artifactId>
294         </dependency>
295         <dependency>
296             <groupId>io.grpc</groupId>
297             <artifactId>grpc-protobuf</artifactId>
298         </dependency>
299         <dependency>
300             <groupId>io.grpc</groupId>
301             <artifactId>grpc-stub</artifactId>
302         </dependency>
303         <dependency>
304             <groupId>com.google.protobuf</groupId>
305             <artifactId>protobuf-java-util</artifactId>
306         </dependency>
307
308     </dependencies>
309
310     <build>
311         <plugins>
312             <plugin>
313                 <groupId>org.apache.maven.plugins</groupId>
314                 <artifactId>maven-source-plugin</artifactId>
315                 <version>3.0.1</version>
316                 <executions>
317                     <execution>
318                         <id>attach-sources</id>
319                         <goals>
320                             <goal>jar</goal>
321                         </goals>
322                     </execution>
323                 </executions>
324             </plugin>
325
326             <plugin>
327                 <artifactId>kotlin-maven-plugin</artifactId>
328                 <groupId>org.jetbrains.kotlin</groupId>
329                 <version>${kotlin.maven.version}</version>
330                 <executions>
331                     <execution>
332                         <id>compile</id>
333                         <goals>
334                             <goal>compile</goal>
335                         </goals>
336                         <configuration>
337                             <sourceDirs>
338                                 <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
339                                 <sourceDir>${project.basedir}/src/main/java</sourceDir>
340                             </sourceDirs>
341                         </configuration>
342                     </execution>
343                     <execution>
344                         <id>test-compile</id>
345                         <goals>
346                             <goal>test-compile</goal>
347                         </goals>
348                         <configuration>
349                             <sourceDirs>
350                                 <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
351                                 <sourceDir>${project.basedir}/src/test/java</sourceDir>
352                             </sourceDirs>
353                         </configuration>
354                     </execution>
355                 </executions>
356             </plugin>
357             <plugin>
358                 <groupId>org.apache.maven.plugins</groupId>
359                 <artifactId>maven-compiler-plugin</artifactId>
360                 <version>3.5.1</version>
361                 <configuration>
362                     <source>${maven.compiler.source}</source>
363                     <target>${maven.compiler.target}</target>
364                 </configuration>
365                 <executions>
366                     <!-- Replacing default-compile as it is treated specially by maven -->
367                     <execution>
368                         <id>default-compile</id>
369                         <phase>none</phase>
370                     </execution>
371                     <!-- Replacing default-testCompile as it is treated specially by maven -->
372                     <execution>
373                         <id>default-testCompile</id>
374                         <phase>none</phase>
375                     </execution>
376                     <execution>
377                         <id>java-compile</id>
378                         <phase>compile</phase>
379                         <goals>
380                             <goal>compile</goal>
381                         </goals>
382                     </execution>
383                     <execution>
384                         <id>java-test-compile</id>
385                         <phase>test-compile</phase>
386                         <goals>
387                             <goal>testCompile</goal>
388                         </goals>
389                     </execution>
390                 </executions>
391             </plugin>
392         </plugins>
393     </build>
394 </project>