Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 1 | <?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 Milkey | 64677e9 | 2017-08-01 10:48:08 -0700 | [diff] [blame] | 24 | <version>1.11.0-SNAPSHOT</version> |
Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 25 | <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> |
Yuta HIGUCHI | 9049252 | 2017-04-21 09:42:48 -0700 | [diff] [blame] | 33 | <grpc.version>1.2.0</grpc.version> |
| 34 | <grpc.package.version>1.2.0</grpc.package.version> |
| 35 | <grpc.netty.version>4.1.8.Final</grpc.netty.version> |
| 36 | <grpc.netty.package.version>4.1.8</grpc.netty.package.version> |
Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 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> |
Yuta HIGUCHI | 9049252 | 2017-04-21 09:42:48 -0700 | [diff] [blame] | 87 | <artifactId>netty-resolver</artifactId> |
| 88 | <version>${grpc.netty.version}</version> |
| 89 | </dependency> |
| 90 | |
| 91 | <dependency> |
| 92 | <groupId>io.netty</groupId> |
Yuta HIGUCHI | a0557a2 | 2017-01-11 16:22:53 -0800 | [diff] [blame] | 93 | <artifactId>netty-handler</artifactId> |
| 94 | <version>${grpc.netty.version}</version> |
| 95 | </dependency> |
| 96 | |
| 97 | <dependency> |
| 98 | <groupId>io.netty</groupId> |
| 99 | <artifactId>netty-buffer</artifactId> |
| 100 | <version>${grpc.netty.version}</version> |
| 101 | </dependency> |
| 102 | |
| 103 | <dependency> |
| 104 | <groupId>io.netty</groupId> |
| 105 | <artifactId>netty-common</artifactId> |
| 106 | <version>${grpc.netty.version}</version> |
| 107 | </dependency> |
| 108 | |
| 109 | </dependencies> |
| 110 | </dependencyManagement> |
| 111 | |
| 112 | <dependencies> |
| 113 | |
| 114 | <dependency> |
| 115 | <groupId>io.grpc</groupId> |
| 116 | <artifactId>grpc-core</artifactId> |
| 117 | </dependency> |
| 118 | |
| 119 | <dependency> |
| 120 | <groupId>io.grpc</groupId> |
| 121 | <artifactId>grpc-protobuf</artifactId> |
| 122 | </dependency> |
| 123 | |
| 124 | <dependency> |
| 125 | <groupId>io.grpc</groupId> |
| 126 | <artifactId>grpc-stub</artifactId> |
| 127 | </dependency> |
| 128 | |
| 129 | <dependency> |
| 130 | <groupId>io.grpc</groupId> |
| 131 | <artifactId>grpc-netty</artifactId> |
| 132 | </dependency> |
| 133 | |
| 134 | <dependency> |
| 135 | <groupId>io.grpc</groupId> |
| 136 | <artifactId>grpc-auth</artifactId> |
| 137 | </dependency> |
| 138 | |
| 139 | </dependencies> |
| 140 | |
| 141 | <build> |
| 142 | <plugins> |
| 143 | |
| 144 | <plugin> |
| 145 | <groupId>org.apache.felix</groupId> |
| 146 | <artifactId>maven-bundle-plugin</artifactId> |
| 147 | <extensions>true</extensions> |
| 148 | </plugin> |
| 149 | |
| 150 | </plugins> |
| 151 | |
| 152 | <pluginManagement> |
| 153 | <plugins> |
| 154 | <plugin> |
| 155 | <groupId>org.xolstice.maven.plugins</groupId> |
| 156 | <artifactId>protobuf-maven-plugin</artifactId> |
| 157 | <version>0.5.0</version> |
| 158 | <configuration> |
| 159 | <pluginId>grpc-java</pluginId> |
| 160 | <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> |
| 161 | </configuration> |
| 162 | <executions> |
| 163 | <execution> |
| 164 | <goals> |
| 165 | <goal>compile</goal> |
| 166 | <goal>compile-custom</goal> |
| 167 | </goals> |
| 168 | </execution> |
| 169 | </executions> |
| 170 | </plugin> |
| 171 | <plugin> |
| 172 | <groupId>org.codehaus.mojo</groupId> |
| 173 | <artifactId>build-helper-maven-plugin</artifactId> |
| 174 | <executions> |
| 175 | <execution> |
| 176 | <id>add-source</id> |
| 177 | <phase>generate-sources</phase> |
| 178 | <goals> |
| 179 | <goal>add-source</goal> |
| 180 | </goals> |
| 181 | <configuration> |
| 182 | <sources combine.children="append"> |
| 183 | <source>${project.build.directory}/generated-sources/protobuf/grpc-java</source> |
| 184 | </sources> |
| 185 | </configuration> |
| 186 | </execution> |
| 187 | </executions> |
| 188 | </plugin> |
| 189 | </plugins> |
| 190 | </pluginManagement> |
| 191 | </build> |
| 192 | |
| 193 | |
| 194 | </project> |