Roll to next Guilin snapshot
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / blueprints / blueprint-proto / pom.xml-n
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~  Copyright © 2019 IBM.
4   ~
5   ~  Licensed under the Apache License, Version 2.0 (the "License");
6   ~  you may not use this file except in compliance with the License.
7   ~  You may obtain a copy of the License at
8   ~
9   ~      http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~  Unless required by applicable law or agreed to in writing, software
12   ~  distributed under the License is distributed on an "AS IS" BASIS,
13   ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~  See the License for the specific language governing permissions and
15   ~  limitations under the License.
16   -->
17 <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">
18     <modelVersion>4.0.0</modelVersion>
19
20     <parent>
21        <groupId>org.onap.ccsdk.cds.blueprintsprocessor</groupId>
22        <artifactId>blueprints</artifactId>
23        <version>1.0.0-SNAPSHOT</version>
24     </parent>
25
26     <artifactId>blueprint-proto</artifactId>
27
28     <name>Controller Blueprints Proto</name>
29     <description>Controller Blueprints Proto</description>
30
31     <properties>
32         <sonar.skip>true</sonar.skip>
33     </properties>
34
35     <dependencies>
36         <dependency>
37             <groupId>com.github.marcoferrer.krotoplus</groupId>
38             <artifactId>kroto-plus-coroutines</artifactId>
39         </dependency>
40     </dependencies>
41
42     <build>
43         <plugins>
44             <plugin>
45                 <groupId>org.xolstice.maven.plugins</groupId>
46                 <artifactId>protobuf-maven-plugin</artifactId>
47                 <version>0.6.1</version>
48                 <configuration>
49                     <protocArtifact>
50                         com.google.protobuf:protoc:3.10.0:exe:${os.detected.classifier}
51                     </protocArtifact>
52                     <protoSourceRoot>${project.basedir}/../../../../../components/model-catalog/proto-definition/proto
53                     </protoSourceRoot>
54                 </configuration>
55                 <executions>
56                     <execution>
57                         <goals>
58                             <goal>compile</goal>
59                         </goals>
60                     </execution>
61                     <execution>
62                         <id>grpc-java</id>
63                         <goals>
64                             <goal>compile-custom</goal>
65                         </goals>
66                         <configuration>
67                             <pluginId>grpc-java</pluginId>
68                             <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
69                             </pluginArtifact>
70                         </configuration>
71                     </execution>
72                     <!--
73                     <execution>
74                         <id>grpc-coroutines</id>
75                         <goals>
76                             <goal>compile-custom</goal>
77                         </goals>
78                         <configuration>
79                             <pluginId>kroto-plus</pluginId>
80                             <pluginArtifact>
81                                 com.github.marcoferrer.krotoplus:protoc-gen-kroto-plus:${kroto-plus.version}:jar:jvm8
82                             </pluginArtifact>
83                             <pluginParameter>ConfigPath=${project.basedir}/krotoPlusConfig.asciipb</pluginParameter>
84                         </configuration>
85                     </execution>
86                     -->
87                 </executions>
88             </plugin>
89             <plugin>
90                 <groupId>org.jetbrains.kotlin</groupId>
91                 <artifactId>kotlin-maven-plugin</artifactId>
92                 <version>${kotlin.maven.version}</version>
93                 <executions>
94                     <execution>
95                         <id>compile</id>
96                         <goals>
97                             <goal>compile</goal>
98                         </goals>
99                         <configuration>
100                             <sourceDirs>
101                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/java</sourceDir>
102                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/grpc-java</sourceDir>
103                                 <!--<sourceDir>${project.basedir}/target/generated-sources/protobuf/kroto-plus</sourceDir>-->
104                             </sourceDirs>
105                         </configuration>
106                     </execution>
107                 </executions>
108             </plugin>
109         </plugins>
110         <extensions>
111             <extension>
112                 <groupId>kr.motd.maven</groupId>
113                 <artifactId>os-maven-plugin</artifactId>
114                 <version>1.6.2</version>
115             </extension>
116         </extensions>
117     </build>
118 </project>