Skip to content

Commit

Permalink
[ISSUE #9127] remove dependency io.github.aliyunmq:rocketmq-grpc-nett…
Browse files Browse the repository at this point in the history
…y-codec-haproxy
  • Loading branch information
yuz10 authored Jan 28, 2025
1 parent ff94b99 commit b97b8f6
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 5 deletions.
104 changes: 104 additions & 0 deletions grpc-netty-codec-haproxy-shaded/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<!--
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.rocketmq</groupId>
<artifactId>rocketmq-all</artifactId>
<version>5.2.0</version>
</parent>

<artifactId>grpc-netty-codec-haproxy-shaded</artifactId>
<packaging>jar</packaging>

<name>grpc-netty-codec-haproxy-shaded</name>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<grpc-netty-shaded.version>4.1.79.Final</grpc-netty-shaded.version>
</properties>

<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec-haproxy</artifactId>
<version>${grpc-netty-shaded.version}</version>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>${maven-shade-plugin.version}</version>
<configuration>
<minimizeJar>false</minimizeJar>
<createSourcesJar>true</createSourcesJar>
<shadeSourcesContent>true</shadeSourcesContent>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>io.netty:netty-codec-haproxy</include>
</includes>
</artifactSet>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Implementation-Title>rocketmq-grpc-netty</Implementation-Title>
<Implementation-Version>${grpc-netty-shaded.version}-rocketmq</Implementation-Version>
</manifestEntries>
</transformer>
</transformers>
<relocations>
<relocation>
<pattern>io.netty</pattern>
<shadedPattern>io.grpc.netty.shaded.io.netty</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
7 changes: 4 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@
<module>controller</module>
<module>proxy</module>
<module>tieredstore</module>
<module>grpc-netty-codec-haproxy-shaded</module>
</modules>

<build>
Expand Down Expand Up @@ -928,9 +929,9 @@
</exclusions>
</dependency>
<dependency>
<groupId>io.github.aliyunmq</groupId>
<artifactId>rocketmq-grpc-netty-codec-haproxy</artifactId>
<version>1.0.0</version>
<groupId>org.apache.rocketmq</groupId>
<artifactId>grpc-netty-codec-haproxy-shaded</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>com.conversantmedia</groupId>
Expand Down
10 changes: 8 additions & 2 deletions proxy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,14 @@
<artifactId>protobuf-java-util</artifactId>
</dependency>
<dependency>
<groupId>io.github.aliyunmq</groupId>
<artifactId>rocketmq-grpc-netty-codec-haproxy</artifactId>
<groupId>org.apache.rocketmq</groupId>
<artifactId>grpc-netty-codec-haproxy-shaded</artifactId>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-codec-haproxy</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand Down

0 comments on commit b97b8f6

Please sign in to comment.