Fix proto cyclic dependency.
[ccsdk/cds.git] / ms / controllerblueprints / modules / blueprint-proto / pom.xml
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
18 <project xmlns="http://maven.apache.org/POM/4.0.0"
19          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     <parent>
22         <groupId>org.onap.ccsdk.cds.controllerblueprints</groupId>
23         <artifactId>modules</artifactId>
24         <version>0.7.0-SNAPSHOT</version>
25     </parent>
26     <modelVersion>4.0.0</modelVersion>
27
28     <artifactId>blueprint-proto</artifactId>
29     <name>Controller Blueprints Proto</name>
30     <description>Controller Blueprints Proto</description>
31
32     <dependencies>
33         <dependency>
34             <groupId>com.github.marcoferrer.krotoplus</groupId>
35             <artifactId>kroto-plus-coroutines</artifactId>
36         </dependency>
37     </dependencies>
38
39     <build>
40         <extensions>
41             <extension>
42                 <groupId>kr.motd.maven</groupId>
43                 <artifactId>os-maven-plugin</artifactId>
44                 <version>1.6.2</version>
45             </extension>
46         </extensions>
47         <plugins>
48             <plugin>
49                 <groupId>org.xolstice.maven.plugins</groupId>
50                 <artifactId>protobuf-maven-plugin</artifactId>
51                 <version>0.6.1</version>
52                 <configuration>
53                     <protocArtifact>
54                         com.google.protobuf:protoc:3.6.1:exe:${os.detected.classifier}
55                     </protocArtifact>
56                     <protoSourceRoot>${project.basedir}/../../../../components/model-catalog/proto-definition/proto
57                     </protoSourceRoot>
58                 </configuration>
59                 <executions>
60                     <execution>
61                         <goals>
62                             <goal>compile</goal>
63                         </goals>
64                     </execution>
65                     <execution>
66                         <id>grpc-java</id>
67                         <goals>
68                             <goal>compile-custom</goal>
69                         </goals>
70                         <configuration>
71                             <pluginId>grpc-java</pluginId>
72                             <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}
73                             </pluginArtifact>
74                         </configuration>
75                     </execution>
76 <!--                    <execution>-->
77 <!--                        <id>grpc-coroutines</id>-->
78 <!--                        <goals>-->
79 <!--                            <goal>compile-custom</goal>-->
80 <!--                        </goals>-->
81 <!--                        <configuration>-->
82 <!--                            <pluginId>kroto-plus</pluginId>-->
83 <!--                            <pluginArtifact>-->
84 <!--                                com.github.marcoferrer.krotoplus:protoc-gen-kroto-plus:${kroto-plus.version}:jar:jvm8-->
85 <!--                            </pluginArtifact>-->
86 <!--                            <pluginParameter>ConfigPath=${project.basedir}/krotoPlusConfig.asciipb</pluginParameter>-->
87 <!--                        </configuration>-->
88 <!--                    </execution>-->
89                 </executions>
90             </plugin>
91             <plugin>
92                 <artifactId>kotlin-maven-plugin</artifactId>
93                 <groupId>org.jetbrains.kotlin</groupId>
94                 <version>${kotlin.maven.version}</version>
95                 <executions>
96                     <execution>
97                         <id>compile</id>
98                         <goals>
99                             <goal>compile</goal>
100                         </goals>
101                         <configuration>
102                             <sourceDirs>
103                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/java</sourceDir>
104                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/grpc-java</sourceDir>
105 <!--                                <sourceDir>${project.basedir}/target/generated-sources/protobuf/kroto-plus</sourceDir>-->
106                             </sourceDirs>
107                         </configuration>
108                     </execution>
109                 </executions>
110             </plugin>
111         </plugins>
112     </build>
113 </project>