| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| |
| Licensed 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</groupId> |
| <artifactId>pulsar-java-contrib</artifactId> |
| <version>1.0.0-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>pulsar-metadata-etcd-contrib</artifactId> |
| <name>Pulsar Metadata Etcd Contrib</name> |
| <description>Etcd metadata store provider plugin for Apache Pulsar</description> |
| |
| <properties> |
| <jetcd.version>0.7.7</jetcd.version> |
| <grpc.version>1.60.0</grpc.version> |
| <jackson-dataformat-yaml.version>2.17.2</jackson-dataformat-yaml.version> |
| <failsafe.version>3.3.2</failsafe.version> |
| <pulsar-metadata.version>4.2.0-SNAPSHOT</pulsar-metadata.version> |
| </properties> |
| |
| <dependencies> |
| |
| <dependency> |
| <groupId>com.fasterxml.jackson.dataformat</groupId> |
| <artifactId>jackson-dataformat-yaml</artifactId> |
| <version>${jackson-dataformat-yaml.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>dev.failsafe</groupId> |
| <artifactId>failsafe</artifactId> |
| <version>${failsafe.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.etcd</groupId> |
| <artifactId>jetcd-core</artifactId> |
| <version>${jetcd.version}</version> |
| <exclusions> |
| <exclusion> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-netty</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.netty</groupId> |
| <artifactId>*</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>javax.annotation</groupId> |
| <artifactId>javax.annotation-api</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.etcd</groupId> |
| <artifactId>jetcd-test</artifactId> |
| <version>${jetcd.version}</version> |
| <scope>test</scope> |
| <exclusions> |
| <exclusion> |
| <groupId>io.etcd</groupId> |
| <artifactId>jetcd-api</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>io.etcd</groupId> |
| <artifactId>jetcd-core</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-netty-shaded</artifactId> |
| <version>${grpc.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-protobuf</artifactId> |
| <version>${grpc.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>io.grpc</groupId> |
| <artifactId>grpc-stub</artifactId> |
| <version>${grpc.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.pulsar</groupId> |
| <artifactId>pulsar-metadata</artifactId> |
| <version>${pulsar-metadata.version}</version> |
| <scope>provided</scope> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-shade-plugin</artifactId> |
| <version>3.6.0</version> |
| <executions> |
| <execution> |
| <goals> |
| <goal>shade</goal> |
| </goals> |
| <phase>package</phase> |
| <configuration> |
| <createDependencyReducedPom>true</createDependencyReducedPom> |
| <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
| <minimizeJar>false</minimizeJar> |
| <artifactSet> |
| <includes> |
| <include>io.etcd:*</include> |
| <include>io.vertx:*</include> |
| </includes> |
| </artifactSet> |
| <relocations> |
| <relocation> |
| <pattern>io.vertx</pattern> |
| <shadedPattern>org.apache.pulsar.jetcd.shaded.io.vertx</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.grpc.netty</pattern> |
| <shadedPattern>io.grpc.netty.shaded.io.grpc.netty</shadedPattern> |
| </relocation> |
| <relocation> |
| <pattern>io.netty</pattern> |
| <shadedPattern>io.grpc.netty.shaded.io.netty</shadedPattern> |
| </relocation> |
| </relocations> |
| <filters> |
| <filter> |
| <artifact>*:*</artifact> |
| <excludes> |
| <exclude>META-INF/*.SF</exclude> |
| <exclude>META-INF/*.DSA</exclude> |
| <exclude>META-INF/*.RSA</exclude> |
| </excludes> |
| </filter> |
| </filters> |
| <transformers> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> |
| <manifestEntries> |
| <Multi-Release>true</Multi-Release> |
| </manifestEntries> |
| </transformer> |
| <transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"></transformer> |
| </transformers> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <inceptionYear>2025</inceptionYear> |
| </project> |