Merge "Velocity template engine implement a separate instance"
[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.0-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         <spring.boot.version>2.1.3.RELEASE</spring.boot.version>
33         <spring.version>5.1.5.RELEASE</spring.version>
34         <kotlin.version>1.3.21</kotlin.version>
35         <kotlin.maven.version>1.3.21</kotlin.maven.version>
36         <kotlin.couroutines.version>1.1.1</kotlin.couroutines.version>
37         <grpc.version>1.18.0</grpc.version>
38         <protobuff.java.utils.version>3.6.1</protobuff.java.utils.version>
39         <eelf.version>1.0.0</eelf.version>
40         <guava.version>27.0.1-jre</guava.version>
41         <springfox.swagger2.version>2.9.2</springfox.swagger2.version>
42         <h2database.version>1.4.197</h2database.version>
43         <onap.logger.slf4j>1.2.2</onap.logger.slf4j>
44         <mockk.version>1.9</mockk.version>
45         <velocity.version>1.7</velocity.version>
46         <jinja.version>2.5.1</jinja.version>
47     </properties>
48     <dependencyManagement>
49         <dependencies>
50             <!-- Spring boot -->
51             <dependency>
52                 <groupId>org.springframework.boot</groupId>
53                 <artifactId>spring-boot-dependencies</artifactId>
54                 <version>${spring.boot.version}</version>
55                 <type>pom</type>
56                 <scope>import</scope>
57             </dependency>
58
59             <!--Swagger Dependencies -->
60             <dependency>
61                 <groupId>io.springfox</groupId>
62                 <artifactId>springfox-swagger2</artifactId>
63                 <version>${springfox.swagger2.version}</version>
64                 <exclusions>
65                     <exclusion>
66                         <groupId>org.slf4j</groupId>
67                         <artifactId>slf4j-api</artifactId>
68                     </exclusion>
69                 </exclusions>
70             </dependency>
71             <dependency>
72                 <groupId>io.springfox</groupId>
73                 <artifactId>springfox-swagger-ui</artifactId>
74                 <version>${springfox.swagger2.version}</version>
75             </dependency>
76
77             <!-- Common Utils Dependencies -->
78             <dependency>
79                 <groupId>org.apache.commons</groupId>
80                 <artifactId>commons-lang3</artifactId>
81                 <version>3.2.1</version>
82             </dependency>
83             <dependency>
84                 <groupId>commons-collections</groupId>
85                 <artifactId>commons-collections</artifactId>
86                 <version>3.2.2</version>
87             </dependency>
88             <dependency>
89                 <groupId>commons-io</groupId>
90                 <artifactId>commons-io</artifactId>
91                 <version>2.6</version>
92             </dependency>
93             <dependency>
94                 <groupId>org.apache.commons</groupId>
95                 <artifactId>commons-compress</artifactId>
96                 <version>1.15</version>
97             </dependency>
98             <dependency>
99                 <groupId>org.apache.velocity</groupId>
100                 <artifactId>velocity</artifactId>
101                 <version>${velocity.version}</version>
102             </dependency>
103             <dependency>
104                 <groupId>com.google.guava</groupId>
105                 <artifactId>guava</artifactId>
106                 <version>${guava.version}</version>
107             </dependency>
108             <dependency>
109                 <groupId>com.hubspot.jinjava</groupId>
110                 <artifactId>jinjava</artifactId>
111                 <version>${jinja.version}</version>
112             </dependency>
113
114             <!-- Kotlin Dependencies -->
115             <dependency>
116                 <groupId>org.jetbrains.kotlin</groupId>
117                 <artifactId>kotlin-stdlib</artifactId>
118                 <version>${kotlin.version}</version>
119             </dependency>
120             <dependency>
121                 <groupId>org.jetbrains.kotlin</groupId>
122                 <artifactId>kotlin-stdlib-common</artifactId>
123                 <version>${kotlin.version}</version>
124             </dependency>
125             <dependency>
126                 <groupId>org.jetbrains.kotlin</groupId>
127                 <artifactId>kotlin-scripting-jvm-host</artifactId>
128                 <version>${kotlin.version}</version>
129             </dependency>
130             <dependency>
131                 <groupId>org.jetbrains.kotlin</groupId>
132                 <artifactId>kotlin-compiler-embeddable</artifactId>
133                 <version>${kotlin.version}</version>
134             </dependency>
135             <dependency>
136                 <groupId>org.jetbrains.kotlin</groupId>
137                 <artifactId>kotlin-script-util</artifactId>
138                 <version>${kotlin.version}</version>
139             </dependency>
140             <dependency>
141                 <groupId>org.jetbrains.kotlin</groupId>
142                 <artifactId>kotlin-script-runtime</artifactId>
143                 <version>${kotlin.version}</version>
144             </dependency>
145             <dependency>
146                 <groupId>org.jetbrains.kotlinx</groupId>
147                 <artifactId>kotlinx-coroutines-core</artifactId>
148                 <version>${kotlin.couroutines.version}</version>
149             </dependency>
150             <dependency>
151                 <groupId>org.jetbrains.kotlinx</groupId>
152                 <artifactId>kotlinx-coroutines-reactor</artifactId>
153                 <version>${kotlin.couroutines.version}</version>
154             </dependency>
155             <dependency>
156                 <groupId>org.jetbrains.kotlin</groupId>
157                 <artifactId>kotlin-reflect</artifactId>
158                 <version>${kotlin.version}</version>
159             </dependency>
160             <dependency>
161                 <groupId>org.jetbrains.kotlin</groupId>
162                 <artifactId>kotlin-stdlib-jdk8</artifactId>
163                 <version>${kotlin.version}</version>
164             </dependency>
165             <dependency>
166                 <groupId>org.jetbrains.kotlin</groupId>
167                 <artifactId>kotlin-stdlib-jdk7</artifactId>
168                 <version>${kotlin.version}</version>
169             </dependency>
170
171             <!-- GRPC Dependencies -->
172             <dependency>
173                 <groupId>io.grpc</groupId>
174                 <artifactId>grpc-core</artifactId>
175                 <version>${grpc.version}</version>
176             </dependency>
177             <dependency>
178                 <groupId>io.grpc</groupId>
179                 <artifactId>grpc-netty</artifactId>
180                 <version>${grpc.version}</version>
181             </dependency>
182             <dependency>
183                 <groupId>io.grpc</groupId>
184                 <artifactId>grpc-protobuf</artifactId>
185                 <version>${grpc.version}</version>
186             </dependency>
187             <dependency>
188                 <groupId>io.grpc</groupId>
189                 <artifactId>grpc-stub</artifactId>
190                 <version>${grpc.version}</version>
191             </dependency>
192             <dependency>
193                 <groupId>com.google.protobuf</groupId>
194                 <artifactId>protobuf-java-util</artifactId>
195                 <version>${protobuff.java.utils.version}</version>
196             </dependency>
197
198
199             <!-- Database -->
200             <dependency>
201                 <groupId>com.h2database</groupId>
202                 <artifactId>h2</artifactId>
203                 <version>${h2database.version}</version>
204             </dependency>
205
206
207             <!-- Testing Dependencies -->
208             <dependency>
209                 <groupId>io.mockk</groupId>
210                 <artifactId>mockk</artifactId>
211                 <version>${mockk.version}</version>
212                 <scope>test</scope>
213             </dependency>
214             <dependency>
215                 <groupId>org.jetbrains.kotlin</groupId>
216                 <artifactId>kotlin-test-junit</artifactId>
217                 <version>${kotlin.version}</version>
218                 <scope>test</scope>
219             </dependency>
220             <dependency>
221                 <groupId>org.jetbrains.kotlinx</groupId>
222                 <artifactId>kotlinx-coroutines-test</artifactId>
223                 <version>${kotlin.couroutines.version}</version>
224                 <scope>test</scope>
225             </dependency>
226             <dependency>
227                 <groupId>io.grpc</groupId>
228                 <artifactId>grpc-testing</artifactId>
229                 <version>${grpc.version}</version>
230                 <scope>test</scope>
231             </dependency>
232         </dependencies>
233     </dependencyManagement>
234
235     <dependencies>
236         <dependency>
237             <groupId>org.apache.commons</groupId>
238             <artifactId>commons-lang3</artifactId>
239         </dependency>
240         <dependency>
241             <groupId>commons-collections</groupId>
242             <artifactId>commons-collections</artifactId>
243         </dependency>
244         <dependency>
245             <groupId>commons-io</groupId>
246             <artifactId>commons-io</artifactId>
247         </dependency>
248         <dependency>
249             <groupId>org.apache.commons</groupId>
250             <artifactId>commons-compress</artifactId>
251         </dependency>
252         <dependency>
253             <groupId>com.jayway.jsonpath</groupId>
254             <artifactId>json-path</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>com.google.guava</groupId>
264             <artifactId>guava</artifactId>
265         </dependency>
266         <dependency>
267             <groupId>io.springfox</groupId>
268             <artifactId>springfox-swagger2</artifactId>
269             <exclusions>
270                 <exclusion>
271                     <groupId>org.slf4j</groupId>
272                     <artifactId>slf4j-api</artifactId>
273                 </exclusion>
274             </exclusions>
275         </dependency>
276         <dependency>
277             <groupId>io.springfox</groupId>
278             <artifactId>springfox-swagger-ui</artifactId>
279         </dependency>
280         <dependency>
281             <groupId>org.jetbrains.kotlin</groupId>
282             <artifactId>kotlin-stdlib</artifactId>
283         </dependency>
284         <dependency>
285             <groupId>org.jetbrains.kotlin</groupId>
286             <artifactId>kotlin-script-util</artifactId>
287         </dependency>
288         <dependency>
289             <groupId>org.jetbrains.kotlin</groupId>
290             <artifactId>kotlin-stdlib-jdk8</artifactId>
291         </dependency>
292         <dependency>
293             <groupId>org.jetbrains.kotlinx</groupId>
294             <artifactId>kotlinx-coroutines-core</artifactId>
295         </dependency>
296         <dependency>
297             <groupId>org.jetbrains.kotlinx</groupId>
298             <artifactId>kotlinx-coroutines-reactor</artifactId>
299         </dependency>
300         <dependency>
301             <groupId>com.fasterxml.jackson.module</groupId>
302             <artifactId>jackson-module-kotlin</artifactId>
303         </dependency>
304         <!-- GRPC Dependencies -->
305         <dependency>
306             <groupId>io.grpc</groupId>
307             <artifactId>grpc-netty</artifactId>
308         </dependency>
309         <dependency>
310             <groupId>io.grpc</groupId>
311             <artifactId>grpc-protobuf</artifactId>
312         </dependency>
313         <dependency>
314             <groupId>io.grpc</groupId>
315             <artifactId>grpc-stub</artifactId>
316         </dependency>
317         <dependency>
318             <groupId>com.google.protobuf</groupId>
319             <artifactId>protobuf-java-util</artifactId>
320         </dependency>
321
322     </dependencies>
323
324     <build>
325         <plugins>
326             <plugin>
327                 <groupId>org.apache.maven.plugins</groupId>
328                 <artifactId>maven-source-plugin</artifactId>
329                 <version>3.0.1</version>
330                 <executions>
331                     <execution>
332                         <id>attach-sources</id>
333                         <goals>
334                             <goal>jar</goal>
335                         </goals>
336                     </execution>
337                 </executions>
338             </plugin>
339
340             <plugin>
341                 <artifactId>kotlin-maven-plugin</artifactId>
342                 <groupId>org.jetbrains.kotlin</groupId>
343                 <version>${kotlin.maven.version}</version>
344                 <executions>
345                     <execution>
346                         <id>compile</id>
347                         <goals>
348                             <goal>compile</goal>
349                         </goals>
350                         <configuration>
351                             <sourceDirs>
352                                 <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
353                                 <sourceDir>${project.basedir}/src/main/java</sourceDir>
354                             </sourceDirs>
355                         </configuration>
356                     </execution>
357                     <execution>
358                         <id>test-compile</id>
359                         <goals>
360                             <goal>test-compile</goal>
361                         </goals>
362                         <configuration>
363                             <sourceDirs>
364                                 <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
365                                 <sourceDir>${project.basedir}/src/test/java</sourceDir>
366                             </sourceDirs>
367                         </configuration>
368                     </execution>
369                 </executions>
370             </plugin>
371             <plugin>
372                 <groupId>org.apache.maven.plugins</groupId>
373                 <artifactId>maven-compiler-plugin</artifactId>
374                 <version>3.5.1</version>
375                 <configuration>
376                     <source>${maven.compiler.source}</source>
377                     <target>${maven.compiler.target}</target>
378                 </configuration>
379                 <executions>
380                     <!-- Replacing default-compile as it is treated specially by maven -->
381                     <execution>
382                         <id>default-compile</id>
383                         <phase>none</phase>
384                     </execution>
385                     <!-- Replacing default-testCompile as it is treated specially by maven -->
386                     <execution>
387                         <id>default-testCompile</id>
388                         <phase>none</phase>
389                     </execution>
390                     <execution>
391                         <id>java-compile</id>
392                         <phase>compile</phase>
393                         <goals>
394                             <goal>compile</goal>
395                         </goals>
396                     </execution>
397                     <execution>
398                         <id>java-test-compile</id>
399                         <phase>test-compile</phase>
400                         <goals>
401                             <goal>testCompile</goal>
402                         </goals>
403                     </execution>
404                 </executions>
405             </plugin>
406         </plugins>
407     </build>
408 </project>