f2f4ff12b9d437e271d71e9ac129b794c772cfb1
[ccsdk/cds.git] / ms / controllerblueprints / 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 - 2019 IBM, Bell Canada
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>controllerblueprints</artifactId>
24         <version>0.5.2-SNAPSHOT</version>
25     </parent>
26     <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
27     <artifactId>parent</artifactId>
28     <name>Controller Blueprints 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         <powermock.version>1.7.4</powermock.version>
40         <mockk.version>1.9</mockk.version>
41         <jinja.version>2.5.1</jinja.version>
42         <velocity.version>1.7</velocity.version>
43     </properties>
44     <dependencyManagement>
45         <dependencies>
46             <!-- Spring boot -->
47             <dependency>
48                 <groupId>org.springframework.boot</groupId>
49                 <artifactId>spring-boot-dependencies</artifactId>
50                 <version>${spring.boot.version}</version>
51                 <type>pom</type>
52                 <scope>import</scope>
53             </dependency>
54
55             <dependency>
56                 <groupId>org.springframework.boot</groupId>
57                 <artifactId>spring-boot-starter-logging</artifactId>
58                 <version>${spring.boot.version}</version>
59                 <exclusions>
60                     <exclusion>
61                         <groupId>org.slf4j</groupId>
62                         <artifactId>slf4j-log4j12</artifactId>
63                     </exclusion>
64                 </exclusions>
65             </dependency>
66
67             <!--Swagger Dependencies -->
68             <dependency>
69                 <groupId>io.springfox</groupId>
70                 <artifactId>springfox-swagger2</artifactId>
71                 <version>${springfox.swagger2.version}</version>
72                 <exclusions>
73                     <exclusion>
74                         <groupId>org.slf4j</groupId>
75                         <artifactId>slf4j-api</artifactId>
76                     </exclusion>
77                 </exclusions>
78             </dependency>
79             <dependency>
80                 <groupId>io.springfox</groupId>
81                 <artifactId>springfox-swagger-ui</artifactId>
82                 <version>${springfox.swagger2.version}</version>
83             </dependency>
84
85             <dependency>
86                 <groupId>org.apache.commons</groupId>
87                 <artifactId>commons-lang3</artifactId>
88                 <version>3.2.1</version>
89             </dependency>
90             <dependency>
91                 <groupId>commons-collections</groupId>
92                 <artifactId>commons-collections</artifactId>
93                 <version>3.2.2</version>
94             </dependency>
95             <dependency>
96                 <groupId>commons-io</groupId>
97                 <artifactId>commons-io</artifactId>
98                 <version>2.6</version>
99             </dependency>
100             <dependency>
101                 <groupId>org.apache.commons</groupId>
102                 <artifactId>commons-compress</artifactId>
103                 <version>1.15</version>
104             </dependency>
105             <dependency>
106                 <groupId>org.apache.velocity</groupId>
107                 <artifactId>velocity</artifactId>
108                 <version>${velocity.version}</version>
109             </dependency>
110             <dependency>
111                 <groupId>com.hubspot.jinjava</groupId>
112                 <artifactId>jinjava</artifactId>
113                 <version>${jinja.version}</version>
114             </dependency>
115             <dependency>
116                 <groupId>com.google.guava</groupId>
117                 <artifactId>guava</artifactId>
118                 <version>${guava.version}</version>
119             </dependency>
120
121             <!-- Kotlin Dependencies -->
122             <dependency>
123                 <groupId>org.jetbrains.kotlin</groupId>
124                 <artifactId>kotlin-stdlib</artifactId>
125                 <version>${kotlin.version}</version>
126             </dependency>
127             <dependency>
128                 <groupId>org.jetbrains.kotlin</groupId>
129                 <artifactId>kotlin-stdlib-common</artifactId>
130                 <version>${kotlin.version}</version>
131             </dependency>
132             <!--Use kotlin-compiler-embeddable instead koltin-compiler wrap-->
133             <!--guava dependency inside kotlin-compiler creating classpath issues at runtime-->
134             <dependency>
135                 <groupId>org.jetbrains.kotlin</groupId>
136                 <artifactId>kotlin-scripting-jvm-host</artifactId>
137                 <version>${kotlin.version}</version>
138                 <exclusions>
139                     <exclusion>
140                         <groupId>org.jetbrains.kotlin</groupId>
141                         <artifactId>kotlin-compile</artifactId>
142                     </exclusion>
143                 </exclusions>
144             </dependency>
145             <dependency>
146                 <groupId>org.jetbrains.kotlin</groupId>
147                 <artifactId>kotlin-compiler-embeddable</artifactId>
148                 <version>${kotlin.version}</version>
149             </dependency>
150             <dependency>
151                 <groupId>org.jetbrains.kotlin</groupId>
152                 <artifactId>kotlin-script-util</artifactId>
153                 <version>${kotlin.version}</version>
154             </dependency>
155             <dependency>
156                 <groupId>org.jetbrains.kotlin</groupId>
157                 <artifactId>kotlin-script-runtime</artifactId>
158                 <version>${kotlin.version}</version>
159             </dependency>
160             <dependency>
161                 <groupId>org.jetbrains.kotlinx</groupId>
162                 <artifactId>kotlinx-coroutines-core</artifactId>
163                 <version>${kotlin.couroutines.version}</version>
164             </dependency>
165             <dependency>
166                 <groupId>org.jetbrains.kotlinx</groupId>
167                 <artifactId>kotlinx-coroutines-reactor</artifactId>
168                 <version>${kotlin.couroutines.version}</version>
169             </dependency>
170             <dependency>
171                 <groupId>org.jetbrains.kotlin</groupId>
172                 <artifactId>kotlin-reflect</artifactId>
173                 <version>${kotlin.version}</version>
174             </dependency>
175             <dependency>
176                 <groupId>org.jetbrains.kotlin</groupId>
177                 <artifactId>kotlin-stdlib-jdk8</artifactId>
178                 <version>${kotlin.version}</version>
179             </dependency>
180             <dependency>
181                 <groupId>org.jetbrains.kotlin</groupId>
182                 <artifactId>kotlin-stdlib-jdk7</artifactId>
183                 <version>${kotlin.version}</version>
184             </dependency>
185
186             <!-- GRPC Dependencies -->
187             <dependency>
188                 <groupId>io.grpc</groupId>
189                 <artifactId>grpc-core</artifactId>
190                 <version>${grpc.version}</version>
191             </dependency>
192             <dependency>
193                 <groupId>io.grpc</groupId>
194                 <artifactId>grpc-netty</artifactId>
195                 <version>${grpc.version}</version>
196             </dependency>
197             <dependency>
198                 <groupId>io.grpc</groupId>
199                 <artifactId>grpc-protobuf</artifactId>
200                 <version>${grpc.version}</version>
201             </dependency>
202             <dependency>
203                 <groupId>io.grpc</groupId>
204                 <artifactId>grpc-stub</artifactId>
205                 <version>${grpc.version}</version>
206             </dependency>
207             <dependency>
208                 <groupId>com.google.protobuf</groupId>
209                 <artifactId>protobuf-java-util</artifactId>
210                 <version>${protobuff.java.utils.version}</version>
211             </dependency>
212
213             <!-- Database -->
214             <dependency>
215                 <groupId>com.h2database</groupId>
216                 <artifactId>h2</artifactId>
217                 <version>${h2database.version}</version>
218             </dependency>
219
220
221             <!-- Application Components -->
222             <dependency>
223                 <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
224                 <artifactId>blueprint-core</artifactId>
225                 <version>${project.version}</version>
226             </dependency>
227             <dependency>
228                 <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
229                 <artifactId>resource-dict</artifactId>
230                 <version>${project.version}</version>
231             </dependency>
232             <dependency>
233                 <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
234                 <artifactId>db-resources</artifactId>
235                 <version>${project.version}</version>
236             </dependency>
237             <dependency>
238                 <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
239                 <artifactId>blueprint-validation</artifactId>
240                 <version>${project.version}</version>
241             </dependency>
242             <dependency>
243                 <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
244                 <artifactId>service</artifactId>
245                 <version>${project.version}</version>
246             </dependency>
247             <dependency>
248                 <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
249                 <artifactId>application</artifactId>
250                 <version>${project.version}</version>
251             </dependency>
252
253             <!-- Testing Dependencies -->
254             <dependency>
255                 <groupId>io.mockk</groupId>
256                 <artifactId>mockk</artifactId>
257                 <version>${mockk.version}</version>
258                 <scope>test</scope>
259             </dependency>
260             <dependency>
261                 <groupId>org.powermock</groupId>
262                 <artifactId>powermock-api-mockito2</artifactId>
263                 <version>${powermock.version}</version>
264                 <scope>test</scope>
265             </dependency>
266             <dependency>
267                 <groupId>org.jetbrains.kotlin</groupId>
268                 <artifactId>kotlin-test-junit</artifactId>
269                 <version>${kotlin.version}</version>
270                 <scope>test</scope>
271             </dependency>
272             <dependency>
273                 <groupId>org.jetbrains.kotlinx</groupId>
274                 <artifactId>kotlinx-coroutines-test</artifactId>
275                 <version>${kotlin.couroutines.version}</version>
276                 <scope>test</scope>
277             </dependency>
278             <dependency>
279                 <groupId>io.grpc</groupId>
280                 <artifactId>grpc-testing</artifactId>
281                 <version>${grpc.version}</version>
282                 <scope>test</scope>
283             </dependency>
284         </dependencies>
285     </dependencyManagement>
286
287     <dependencies>
288         <dependency>
289             <groupId>org.apache.commons</groupId>
290             <artifactId>commons-lang3</artifactId>
291         </dependency>
292         <dependency>
293             <groupId>commons-collections</groupId>
294             <artifactId>commons-collections</artifactId>
295         </dependency>
296         <dependency>
297             <groupId>commons-io</groupId>
298             <artifactId>commons-io</artifactId>
299         </dependency>
300         <dependency>
301             <groupId>org.apache.commons</groupId>
302             <artifactId>commons-compress</artifactId>
303         </dependency>
304         <dependency>
305             <groupId>com.jayway.jsonpath</groupId>
306             <artifactId>json-path</artifactId>
307             <exclusions>
308                 <exclusion>
309                     <groupId>org.slf4j</groupId>
310                     <artifactId>slf4j-api</artifactId>
311                 </exclusion>
312             </exclusions>
313         </dependency>
314         <dependency>
315             <groupId>com.google.guava</groupId>
316             <artifactId>guava</artifactId>
317         </dependency>
318         <dependency>
319             <groupId>io.springfox</groupId>
320             <artifactId>springfox-swagger2</artifactId>
321             <exclusions>
322                 <exclusion>
323                     <groupId>org.slf4j</groupId>
324                     <artifactId>slf4j-api</artifactId>
325                 </exclusion>
326             </exclusions>
327         </dependency>
328         <dependency>
329             <groupId>io.springfox</groupId>
330             <artifactId>springfox-swagger-ui</artifactId>
331         </dependency>
332         <dependency>
333             <groupId>org.jetbrains.kotlin</groupId>
334             <artifactId>kotlin-stdlib</artifactId>
335         </dependency>
336         <dependency>
337             <groupId>org.jetbrains.kotlin</groupId>
338             <artifactId>kotlin-script-util</artifactId>
339         </dependency>
340         <dependency>
341             <groupId>org.jetbrains.kotlin</groupId>
342             <artifactId>kotlin-stdlib-jdk8</artifactId>
343         </dependency>
344         <dependency>
345             <groupId>org.jetbrains.kotlinx</groupId>
346             <artifactId>kotlinx-coroutines-core</artifactId>
347         </dependency>
348         <dependency>
349             <groupId>org.jetbrains.kotlinx</groupId>
350             <artifactId>kotlinx-coroutines-reactor</artifactId>
351         </dependency>
352         <dependency>
353             <groupId>com.fasterxml.jackson.module</groupId>
354             <artifactId>jackson-module-kotlin</artifactId>
355         </dependency>
356         <!-- GRPC Dependencies -->
357         <dependency>
358             <groupId>io.grpc</groupId>
359             <artifactId>grpc-netty</artifactId>
360         </dependency>
361         <dependency>
362             <groupId>io.grpc</groupId>
363             <artifactId>grpc-protobuf</artifactId>
364         </dependency>
365         <dependency>
366             <groupId>io.grpc</groupId>
367             <artifactId>grpc-stub</artifactId>
368         </dependency>
369         <dependency>
370             <groupId>com.google.protobuf</groupId>
371             <artifactId>protobuf-java-util</artifactId>
372         </dependency>
373     </dependencies>
374
375     <build>
376         <plugins>
377             <plugin>
378                 <groupId>org.apache.maven.plugins</groupId>
379                 <artifactId>maven-source-plugin</artifactId>
380                 <version>3.0.1</version>
381                 <executions>
382                     <execution>
383                         <id>attach-sources</id>
384                         <goals>
385                             <goal>jar</goal>
386                         </goals>
387                     </execution>
388                 </executions>
389             </plugin>
390
391             <plugin>
392                 <artifactId>kotlin-maven-plugin</artifactId>
393                 <groupId>org.jetbrains.kotlin</groupId>
394                 <version>${kotlin.maven.version}</version>
395                 <executions>
396                     <execution>
397                         <id>compile</id>
398                         <goals>
399                             <goal>compile</goal>
400                         </goals>
401                         <configuration>
402                             <sourceDirs>
403                                 <sourceDir>${project.basedir}/src/main/kotlin</sourceDir>
404                                 <sourceDir>${project.basedir}/src/main/java</sourceDir>
405                             </sourceDirs>
406                         </configuration>
407                     </execution>
408                     <execution>
409                         <id>test-compile</id>
410                         <goals>
411                             <goal>test-compile</goal>
412                         </goals>
413                         <configuration>
414                             <sourceDirs>
415                                 <sourceDir>${project.basedir}/src/test/kotlin</sourceDir>
416                                 <sourceDir>${project.basedir}/src/test/java</sourceDir>
417                             </sourceDirs>
418                         </configuration>
419                     </execution>
420                 </executions>
421             </plugin>
422             <plugin>
423                 <groupId>org.apache.maven.plugins</groupId>
424                 <artifactId>maven-compiler-plugin</artifactId>
425                 <version>3.5.1</version>
426                 <configuration>
427                     <source>${maven.compiler.source}</source>
428                     <target>${maven.compiler.target}</target>
429                 </configuration>
430                 <executions>
431                     <!-- Replacing default-compile as it is treated specially by maven -->
432                     <execution>
433                         <id>default-compile</id>
434                         <phase>none</phase>
435                     </execution>
436                     <!-- Replacing default-testCompile as it is treated specially by maven -->
437                     <execution>
438                         <id>default-testCompile</id>
439                         <phase>none</phase>
440                     </execution>
441                     <execution>
442                         <id>java-compile</id>
443                         <phase>compile</phase>
444                         <goals>
445                             <goal>compile</goal>
446                         </goals>
447                     </execution>
448                     <execution>
449                         <id>java-test-compile</id>
450                         <phase>test-compile</phase>
451                         <goals>
452                             <goal>testCompile</goal>
453                         </goals>
454                     </execution>
455                 </executions>
456             </plugin>
457         </plugins>
458     </build>
459 </project>