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