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