blob: a2ce417b5ea7617ffc7364fc8c21ef9e58b1c44c [file]
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<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>org.apache.spark</groupId>
<artifactId>spark-parent_2.13</artifactId>
<version>5.0.0-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>spark-udf-worker-grpc_2.13</artifactId>
<packaging>jar</packaging>
<name>Spark Project UDF Worker gRPC</name>
<url>https://spark.apache.org/</url>
<properties>
<sbt.project.name>udf-worker-grpc</sbt.project.name>
</properties>
<!--
Home for the gRPC-based UDF worker transport. The gRPC service stubs are
generated here (from the proto module's service definitions) and the gRPC
runtime is confined to this module, so spark-udf-worker-proto / -core and
their consumers (core, catalyst, sql/core) stay free of any gRPC
transitive dependency. (protobuf-java remains a transitive dependency of
those modules via the proto messages, as it was before; only gRPC is
removed from their classpath.)
Note: gRPC is kept off every shared classpath by the dependency graph
alone, since nothing on the runtime/assembly classpath depends on this
module yet. The gRPC runtime here is NOT shaded. Once the gRPC transport
is wired up and a runtime module depends on this one, the io.grpc and
protobuf classes should be relocated (mirroring the
org.sparkproject.spark_udf_worker.protobuf relocation in the proto module)
to avoid version clashes with Spark Connect's gRPC. That shading is
deferred to a follow-up.
-->
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-tags_${scala.binary.version}</artifactId>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-udf-worker-proto_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
</dependency>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-api</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-inprocess</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory>
<testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory>
<plugins>
<plugin>
<groupId>eu.maveniverse.maven.plugins</groupId>
<artifactId>nisse-plugin3</artifactId>
<version>0.7.0</version>
<executions>
<execution>
<id>set-os-detector-properties</id>
<goals>
<goal>inject-properties</goal>
</goals>
<phase>validate</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<!--
Generate only the gRPC service stubs (compile-custom). The protobuf
message classes are generated by and consumed from
spark-udf-worker-proto; the .proto source root points at that module
so protoc can resolve imports while emitting only the grpc-java output.
-->
<configuration>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${io.grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
<protoSourceRoot>${project.basedir}/../proto/src/main/protobuf</protoSourceRoot>
</configuration>
<executions>
<execution>
<goals>
<goal>compile-custom</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>scala-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>