浏览代码

ZOOKEEPER-3494: 3.5) remove unnecessary broad netty-all dependency

Currently netty-all is a 4MB dependency.
Using netty-handler (429KB) and netty-transport-native-epoll (115KB) brings it down to about 1/8 in size.

Author: Norbert Kalmar <nkalmaryahoo.com>

Reviewers: Enrico Olivelli <eolivelligmail.com>, Tamás Pénzes, Michael Han <hanmapache.org>

Closes #1039 from nkalmar/ZK-3494

Author: Norbert Kalmar <nkalmar@yahoo.com>

Reviewers: andor@apache.org

Closes #1041 from nkalmar/branch-3.5
Norbert Kalmar 6 年之前
父节点
当前提交
034226ba5f
共有 3 个文件被更改,包括 16 次插入4 次删除
  1. 5 2
      ivy.xml
  2. 6 1
      pom.xml
  3. 5 1
      zookeeper-server/pom.xml

+ 5 - 2
ivy.xml

@@ -60,8 +60,11 @@
     <dependency org="org.apache.yetus" name="audience-annotations"
     <dependency org="org.apache.yetus" name="audience-annotations"
                 rev="${audience-annotations.version}"/>
                 rev="${audience-annotations.version}"/>
 
 
-    <dependency org="io.netty" name="netty-all" conf="default" rev="${netty.version}">
-      <artifact name="netty-all" type="jar" conf="default"/>
+    <dependency org="io.netty" name="netty-handler" conf="default" rev="${netty.version}">
+      <artifact name="netty-handler" type="jar" conf="default"/>
+    </dependency>
+    <dependency org="io.netty" name="netty-transport-native-epoll" conf="default" rev="${netty.version}">
+      <artifact name="netty-transport-native-epoll" type="jar" conf="default"/>
     </dependency>
     </dependency>
 
 
     <dependency org="junit" name="junit" rev="${junit.version}" conf="test->default"/>
     <dependency org="junit" name="junit" rev="${junit.version}" conf="test->default"/>

+ 6 - 1
pom.xml

@@ -392,7 +392,12 @@
       </dependency>
       </dependency>
       <dependency>
       <dependency>
         <groupId>io.netty</groupId>
         <groupId>io.netty</groupId>
-        <artifactId>netty-all</artifactId>
+        <artifactId>netty-handler</artifactId>
+        <version>${netty.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>io.netty</groupId>
+        <artifactId>netty-transport-native-epoll</artifactId>
         <version>${netty.version}</version>
         <version>${netty.version}</version>
       </dependency>
       </dependency>
       <dependency>
       <dependency>

+ 5 - 1
zookeeper-server/pom.xml

@@ -66,7 +66,11 @@
     </dependency>
     </dependency>
     <dependency>
     <dependency>
       <groupId>io.netty</groupId>
       <groupId>io.netty</groupId>
-      <artifactId>netty-all</artifactId>
+      <artifactId>netty-handler</artifactId>
+    </dependency>
+    <dependency>
+      <groupId>io.netty</groupId>
+      <artifactId>netty-transport-native-epoll</artifactId>
     </dependency>
     </dependency>
     <dependency>
     <dependency>
       <groupId>org.slf4j</groupId>
       <groupId>org.slf4j</groupId>