Release version 1.5.1 maven artifacts and roll version
[ccsdk/cds.git] / ms / blueprintsprocessor / modules / blueprints / 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 <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>modules-blueprints</artifactId>
23         <version>1.5.2-SNAPSHOT</version>
24     </parent>
25
26     <groupId>org.onap.ccsdk.cds.blueprintsprocessor.modules</groupId>
27     <artifactId>blueprint-proto</artifactId>
28
29     <name>MS Blueprints Processor Modules - Blueprints - Blueprints Proto</name>
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         <dependency>
41             <groupId>javax.annotation</groupId>
42             <artifactId>jsr250-api</artifactId>
43             <version>1.0</version>
44         </dependency>
45     </dependencies>
46
47     <build>
48         <plugins>
49             <plugin>
50                 <groupId>org.xolstice.maven.plugins</groupId>
51                 <artifactId>protobuf-maven-plugin</artifactId>
52                 <version>0.6.1</version>
53                 <configuration>
54                     <!--TODO: check latest version for protoc 3.13.0-->
55                     <protocArtifact>
56                         com.google.protobuf:protoc:3.10.0:exe:${os.detected.classifier}
57                     </protocArtifact>
58                     <protoSourceRoot>${project.basedir}/../../../../../components/model-catalog/proto-definition/proto
59                     </protoSourceRoot>
60                 </configuration>
61                 <executions>
62                     <execution>
63                         <goals>
64                             <goal>compile</goal>
65                         </goals>
66                     </execution>
67                     <execution>
68                         <id>grpc-java</id>
69                         <goals>
70                             <goal>compile-custom</goal>
71                         </goals>
72                         <configuration>
73                             <pluginId>grpc-java</pluginId>
74                             <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
75                         </configuration>
76                     </execution>
77                     <!--
78                     <execution>
79                         <id>grpc-coroutines</id>
80                         <goals>
81                             <goal>compile-custom</goal>
82                         </goals>
83                         <configuration>
84                             <pluginId>kroto-plus</pluginId>
85                             <pluginArtifact>
86                                 com.github.marcoferrer.krotoplus:protoc-gen-kroto-plus:${kroto-plus.version}:jar:jvm8
87                             </pluginArtifact>
88                             <pluginParameter>ConfigPath=${project.basedir}/krotoPlusConfig.asciipb</pluginParameter>
89                         </configuration>
90                     </execution>
91                     -->
92                 </executions>
93             </plugin>
94             <plugin>
95                 <groupId>org.jetbrains.kotlin</groupId>
96                 <artifactId>kotlin-maven-plugin</artifactId>
97                 <executions>
98                     <execution>
99                         <id>compile</id>
100                         <goals>
101                             <goal>compile</goal>
102                         </goals>
103                         <configuration>
104                             <sourceDirs>
105                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/java</sourceDir>
106                                 <sourceDir>${project.basedir}/target/generated-sources/protobuf/grpc-java</sourceDir>
107                                 <!--<sourceDir>${project.basedir}/target/generated-sources/protobuf/kroto-plus</sourceDir>-->
108                             </sourceDirs>
109                         </configuration>
110                     </execution>
111                 </executions>
112             </plugin>
113         </plugins>
114         <extensions>
115             <extension>
116                 <groupId>kr.motd.maven</groupId>
117                 <artifactId>os-maven-plugin</artifactId>
118                 <version>1.6.2</version>
119             </extension>
120         </extensions>
121     </build>
122 </project>