vertx-grpc
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.vertx</groupId> <artifactId>vertx-grpc</artifactId> <version>5.0.0.CR8</version> </dependency>
<?xml version="1.0"?> <!-- ~ Copyright (c) 2011-2014 The original author or authors ~ ~ All rights reserved. This program and the accompanying materials ~ are made available under the terms of the Eclipse Public License v1.0 ~ and Apache License v2.0 which accompanies this distribution. ~ ~ The Eclipse Public License is available at ~ http://www.eclipse.org/legal/epl-v10.html ~ ~ The Apache License v2.0 is available at ~ http://www.opensource.org/licenses/apache2.0.php ~ ~ You may elect to redistribute this code under either of these licenses. --> <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"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>io.vertx</groupId> <artifactId>vertx-grpc-parent</artifactId> <version>5.0.0.CR8</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>vertx-grpc</artifactId> <name>Vert.x gRPC</name> <properties> <grpc.version>1.65.0</grpc.version> <protoc.version>3.21.12</protoc.version> <doc.skip>false</doc.skip> </properties> <dependencies> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-core</artifactId> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-netty</artifactId> <version>${grpc.version}</version> <exclusions> <exclusion> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </exclusion> <exclusion> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_annotations</artifactId> </exclusion> <exclusion> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-annotations</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>*</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-protobuf</artifactId> <version>${grpc.version}</version> <exclusions> <exclusion> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </exclusion> <exclusion> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_annotations</artifactId> </exclusion> <exclusion> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-annotations</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>io.grpc</groupId> <artifactId>grpc-stub</artifactId> <version>${grpc.version}</version> <exclusions> <exclusion> <groupId>com.google.errorprone</groupId> <artifactId>error_prone_annotations</artifactId> </exclusion> <exclusion> <groupId>org.codehaus.mojo</groupId> <artifactId>animal-sniffer-annotations</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> <version>1.3.2</version> </dependency> <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> </dependency> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-unit</artifactId> <scope>test</scope> </dependency> <!-- Required for forcing build order --> <dependency> <groupId>io.vertx</groupId> <artifactId>vertx-grpc-protoc-plugin</artifactId> <version>${project.version}</version> <optional>true</optional> </dependency> </dependencies> <build> <extensions> <extension> <groupId>kr.motd.maven</groupId> <artifactId>os-maven-plugin</artifactId> <version>1.7.0</version> </extension> </extensions> <pluginManagement> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <executions> <execution> <id>default-compile</id> <configuration> <annotationProcessorPaths> <annotationProcessorPath> <groupId>io.vertx</groupId> <artifactId>vertx-codegen</artifactId> <classifier>processor</classifier> </annotationProcessorPath> <annotationProcessorPath> <groupId>io.vertx</groupId> <artifactId>vertx-docgen-processor</artifactId> <classifier>processor</classifier> </annotationProcessorPath> </annotationProcessorPaths> </configuration> </execution> </executions> </plugin> <plugin> <groupId>io.vertx</groupId> <artifactId>vertx-grpc-protoc-plugin</artifactId> <version>${project.version}</version> </plugin> </plugins> </pluginManagement> <plugins> <plugin> <groupId>org.xolstice.maven.plugins</groupId> <artifactId>protobuf-maven-plugin</artifactId> <version>0.6.1</version> <configuration> <!-- The version of protoc must match protobuf-java. If you don't depend on protobuf-java directly, you will be transitively depending on the protobuf-java version that grpc depends on. --> <protocArtifact>com.google.protobuf:protoc:${protoc.version}:exe:${os.detected.classifier}</protocArtifact> <pluginId>grpc-java</pluginId> <pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact> <protocPlugins> <protocPlugin> <id>vertx-grpc-protoc-plugin</id> <groupId>io.vertx</groupId> <artifactId>vertx-grpc-protoc-plugin</artifactId> <version>${project.version}</version> <mainClass>io.vertx.grpc.protoc.plugin.VertxGrpcGenerator</mainClass> </protocPlugin> </protocPlugins> </configuration> <executions> <execution> <id>compile</id> <goals> <goal>compile</goal> <goal>compile-custom</goal> </goals> <configuration> <outputDirectory>${project.basedir}/src/main/java</outputDirectory> <clearOutputDirectory>false</clearOutputDirectory> </configuration> </execution> <execution> <id>test-compile</id> <goals> <goal>test-compile</goal> <goal>test-compile-custom</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> <id>package-docs</id> <goals> <goal>single</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>linux-x86_64</id> <activation> <os> <family>linux</family> <arch>x86_64</arch> </os> </activation> <dependencies> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-epoll</artifactId> <classifier>linux-x86_64</classifier> <scope>test</scope> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-io_uring</artifactId> <classifier>linux-x86_64</classifier> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>linux-amd64</id> <activation> <os> <family>linux</family> <arch>amd64</arch> </os> </activation> <dependencies> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-epoll</artifactId> <classifier>linux-x86_64</classifier> <scope>test</scope> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-io_uring</artifactId> <classifier>linux-x86_64</classifier> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>linux-aarch64</id> <activation> <os> <family>linux</family> <arch>aarch64</arch> </os> </activation> <dependencies> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-epoll</artifactId> <classifier>linux-aarch_64</classifier> <scope>test</scope> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-io_uring</artifactId> <classifier>linux-aarch_64</classifier> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>osx-x86_64</id> <activation> <os> <family>mac</family> <arch>x86_64</arch> </os> </activation> <dependencies> <dependency> <groupId>io.netty</groupId> <artifactId>netty-resolver-dns-native-macos</artifactId> <classifier>osx-x86_64</classifier> <scope>test</scope> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-kqueue</artifactId> <classifier>osx-x86_64</classifier> <scope>test</scope> </dependency> </dependencies> </profile> <profile> <id>osx-aarch64</id> <activation> <os> <family>mac</family> <arch>aarch64</arch> </os> </activation> <dependencies> <dependency> <groupId>io.netty</groupId> <artifactId>netty-resolver-dns-native-macos</artifactId> <classifier>osx-aarch_64</classifier> <scope>test</scope> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-transport-native-kqueue</artifactId> <classifier>osx-aarch_64</classifier> <scope>test</scope> </dependency> </dependencies> </profile> </profiles> </project>