blob: 55bf19d61153cd0bb4d1573f4e3685b4100190e4 [file] [log] [blame]
Yuta HIGUCHIa0557a22017-01-11 16:22:53 -08001<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 ~ Copyright 2016-present Open Networking Laboratory
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 <artifactId>onos-incubator-protobuf-dependencies</artifactId>
23 <groupId>org.onosproject</groupId>
Ray Milkeyde84cdd2017-02-13 10:54:12 -080024 <version>1.9.0-SNAPSHOT</version>
Yuta HIGUCHIa0557a22017-01-11 16:22:53 -080025 <relativePath>../protobuf-dependencies/pom.xml</relativePath>
26 </parent>
27 <modelVersion>4.0.0</modelVersion>
28
29 <artifactId>onos-incubator-grpc-dependencies</artifactId>
30 <packaging>pom</packaging>
31
32 <properties>
33 <grpc.version>1.0.0</grpc.version>
34 <grpc.package.version>1.0.0</grpc.package.version>
35 <grpc.netty.version>4.1.3.Final</grpc.netty.version>
36 <grpc.netty.package.version>4.1.3</grpc.netty.package.version>
37 <google.auth.version>0.4.0</google.auth.version>
38 </properties>
39
40 <!-- gRPC requires more recent version of netty -->
41 <dependencyManagement>
42 <dependencies>
43 <dependency>
44 <groupId>io.grpc</groupId>
45 <artifactId>grpc-core</artifactId>
46 <version>${grpc.version}</version>
47 </dependency>
48
49 <dependency>
50 <groupId>io.grpc</groupId>
51 <artifactId>grpc-protobuf</artifactId>
52 <version>${grpc.version}</version>
53 </dependency>
54
55 <dependency>
56 <groupId>io.grpc</groupId>
57 <artifactId>grpc-stub</artifactId>
58 <version>${grpc.version}</version>
59 </dependency>
60
61 <dependency>
62 <groupId>io.grpc</groupId>
63 <artifactId>grpc-netty</artifactId>
64 <version>${grpc.version}</version>
65 </dependency>
66
67 <dependency>
68 <groupId>io.grpc</groupId>
69 <artifactId>grpc-auth</artifactId>
70 <version>${grpc.version}</version>
71 </dependency>
72
73 <dependency>
74 <groupId>io.netty</groupId>
75 <artifactId>netty-codec</artifactId>
76 <version>${grpc.netty.version}</version>
77 </dependency>
78
79 <dependency>
80 <groupId>io.netty</groupId>
81 <artifactId>netty-transport</artifactId>
82 <version>${grpc.netty.version}</version>
83 </dependency>
84
85 <dependency>
86 <groupId>io.netty</groupId>
87 <artifactId>netty-handler</artifactId>
88 <version>${grpc.netty.version}</version>
89 </dependency>
90
91 <dependency>
92 <groupId>io.netty</groupId>
93 <artifactId>netty-buffer</artifactId>
94 <version>${grpc.netty.version}</version>
95 </dependency>
96
97 <dependency>
98 <groupId>io.netty</groupId>
99 <artifactId>netty-common</artifactId>
100 <version>${grpc.netty.version}</version>
101 </dependency>
102
103 </dependencies>
104 </dependencyManagement>
105
106 <dependencies>
107
108 <dependency>
109 <groupId>io.grpc</groupId>
110 <artifactId>grpc-core</artifactId>
111 </dependency>
112
113 <dependency>
114 <groupId>io.grpc</groupId>
115 <artifactId>grpc-protobuf</artifactId>
116 </dependency>
117
118 <dependency>
119 <groupId>io.grpc</groupId>
120 <artifactId>grpc-stub</artifactId>
121 </dependency>
122
123 <dependency>
124 <groupId>io.grpc</groupId>
125 <artifactId>grpc-netty</artifactId>
126 </dependency>
127
128 <dependency>
129 <groupId>io.grpc</groupId>
130 <artifactId>grpc-auth</artifactId>
131 </dependency>
132
133 </dependencies>
134
135 <build>
136 <plugins>
137
138 <plugin>
139 <groupId>org.apache.felix</groupId>
140 <artifactId>maven-bundle-plugin</artifactId>
141 <extensions>true</extensions>
142 </plugin>
143
144 </plugins>
145
146 <pluginManagement>
147 <plugins>
148 <plugin>
149 <groupId>org.xolstice.maven.plugins</groupId>
150 <artifactId>protobuf-maven-plugin</artifactId>
151 <version>0.5.0</version>
152 <configuration>
153 <pluginId>grpc-java</pluginId>
154 <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
155 </configuration>
156 <executions>
157 <execution>
158 <goals>
159 <goal>compile</goal>
160 <goal>compile-custom</goal>
161 </goals>
162 </execution>
163 </executions>
164 </plugin>
165 <plugin>
166 <groupId>org.codehaus.mojo</groupId>
167 <artifactId>build-helper-maven-plugin</artifactId>
168 <executions>
169 <execution>
170 <id>add-source</id>
171 <phase>generate-sources</phase>
172 <goals>
173 <goal>add-source</goal>
174 </goals>
175 <configuration>
176 <sources combine.children="append">
177 <source>${project.build.directory}/generated-sources/protobuf/grpc-java</source>
178 </sources>
179 </configuration>
180 </execution>
181 </executions>
182 </plugin>
183 </plugins>
184 </pluginManagement>
185 </build>
186
187
188</project>