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