forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[improve][misc] Upgrade to Netty 4.1.111.Final and switch to use grpc…
…-netty-shaded (apache#22892) (cherry picked from commit 75d7e55) (cherry picked from commit a982d7b)
- Loading branch information
1 parent
a25c6cd
commit a150c1e
Showing
14 changed files
with
360 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,187 @@ | ||
<?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 | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>com.datastax.oss</groupId> | ||
<artifactId>pulsar</artifactId> | ||
<version>3.1.4.3-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>jetcd-core-shaded</artifactId> | ||
<name>Apache Pulsar :: jetcd-core shaded</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>io.etcd</groupId> | ||
<artifactId>jetcd-core</artifactId> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-netty</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>io.netty</groupId> | ||
<artifactId>*</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-netty-shaded</artifactId> | ||
</dependency> | ||
<!-- add transient dependencies for jetcd libraries, this is necessary for IntelliJ support --> | ||
<dependency> | ||
<groupId>dev.failsafe</groupId> | ||
<artifactId>failsafe</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-grpclb</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>io.grpc</groupId> | ||
<artifactId>grpc-util</artifactId> | ||
</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> | ||
<includes> | ||
<include>io.etcd:*</include> | ||
<include>io.vertx:*</include> | ||
</includes> | ||
</artifactSet> | ||
<relocations> | ||
<!-- relocate vertx packages since they will be transformed to use grpc-netty-shaded packages --> | ||
<relocation> | ||
<pattern>io.vertx</pattern> | ||
<shadedPattern>org.apache.pulsar.jetcd.shaded.io.vertx</shadedPattern> | ||
</relocation> | ||
<!-- relocate to use grpc-netty-shaded packages --> | ||
<relocation> | ||
<pattern>io.grpc.netty</pattern> | ||
<shadedPattern>io.grpc.netty.shaded.io.grpc.netty</shadedPattern> | ||
</relocation> | ||
<!-- relocate to use grpc-netty-shaded packages --> | ||
<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> | ||
<exclude>META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml</exclude> | ||
</excludes> | ||
</filter> | ||
</filters> | ||
<transformers> | ||
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/> | ||
<transformer implementation="org.apache.maven.plugins.shade.resource.PluginXmlResourceTransformer"/> | ||
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer"> | ||
<resource>META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml</resource> | ||
<file>${project.basedir}/dependency-reduced-pom.xml</file> | ||
</transformer> | ||
</transformers> | ||
<!-- required for IntelliJ support --> | ||
<shadedArtifactAttached>true</shadedArtifactAttached> | ||
<shadedClassifierName>shaded</shadedClassifierName> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- required for IntelliJ support, for some reason shadedArtifactAttached isn't sufficient alone --> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>build-helper-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>attach-shaded-jar</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>attach-artifact</goal> | ||
</goals> | ||
<configuration> | ||
<artifacts> | ||
<artifact> | ||
<file>${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar</file> | ||
<type>jar</type> | ||
<classifier>shaded</classifier> | ||
</artifact> | ||
</artifacts> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<!-- required for running tests in subproject --> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<version>${maven-antrun-plugin.version}</version> | ||
<executions> | ||
<execution> | ||
<id>unpack-shaded-jar</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<target> | ||
<unzip src="${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar" | ||
dest="${project.build.outputDirectory}" | ||
overwrite="true" /> | ||
</target> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
Oops, something went wrong.