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