| <?xml version="1.0"?> |
| <!-- |
| |
| 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/maven-v4_0_0.xsd"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>pulsar-functions</artifactId> |
| <version>2.0.0-rc1-incubating</version> |
| <relativePath>..</relativePath> |
| </parent> |
| |
| <artifactId>pulsar-functions-worker-shaded</artifactId> |
| <name>Pulsar Functions :: Worker Shaded</name> |
| |
| <dependencies> |
| <dependency> |
| <groupId>${project.groupId}</groupId> |
| <artifactId>pulsar-functions-worker</artifactId> |
| <version>${project.parent.version}</version> |
| <exclusions> |
| <!-- exclude the dependencies already exists in bookkeeper-server-shaded --> |
| <exclusion> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper-common</artifactId> |
| </exclusion> |
| <!-- exclude `pulsar-client-admin-shaded-for-functions` here, this allows worker-runner and broker to use unshaded clients --> |
| <exclusion> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>pulsar-client-admin-shaded-for-functions</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-common</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-codec</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-codec-http</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-codec-http2</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-handler-proxy</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-handler</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-buffer</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <!-- bookkeeper-server-shaded include circe-checksum, bookkeeper-common and bookkeeper-stats-api --> |
| <dependency> |
| <groupId>org.apache.bookkeeper</groupId> |
| <artifactId>bookkeeper-server-shaded</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>netty-all</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <configuration> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| <minimizeJar>false</minimizeJar> |
| |
| <artifactSet> |
| <!-- package the dependencies that use protobuf & grpc and relocate protobuf --> |
| <includes> |
| <include>com.google.protobuf:protobuf-lite</include> |
| <include>com.google.protobuf:protobuf-java</include> |
| <include>com.google.protobuf.nano:protobuf-javanano</include> |
| <include>com.google.protobuf:protobuf-java-util</include> |
| <include>com.google.instrumentation:instrumentation-api</include> |
| <include>com.google.api.grpc:proto-google-common-protos</include> |
| <!-- dependencies use protobuf --> |
| <include>org.apache.pulsar:pulsar-functions-proto</include> |
| <include>org.apache.pulsar:pulsar-functions-utils</include> |
| <include>org.apache.pulsar:pulsar-functions-metrics</include> |
| <include>org.apache.pulsar:pulsar-functions-instance</include> |
| <include>org.apache.pulsar:pulsar-functions-runtime</include> |
| <include>org.apache.pulsar:pulsar-functions-worker</include> |
| <!-- protobuf dependencies in grpc --> |
| <include>io.grpc:*</include> |
| <!-- bookkeeper key/value service --> |
| <include>org.apache.bookkeeper:stream-storage-java-client</include> |
| </includes> |
| </artifactSet> |
| <relocations> |
| <!-- bookkeeper shading rule --> |
| <relocation> |
| <pattern>com.google.protobuf</pattern> |
| <shadedPattern>org.apache.pulsar.functions.shaded.com.google.protobuf</shadedPattern> |
| </relocation> |
| </relocations> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </project> |