From 0fdda8c3fc4bd9fa4cc28a8c816b67a295b7ef13 Mon Sep 17 00:00:00 2001 From: "nov.lzf" Date: Wed, 12 Oct 2022 14:13:28 +0800 Subject: [PATCH] [ISSUE#7929] minijar pom update ,to reduce nacos-client jar size (#9299) * minijar * minijar,add google shaded * fix naming response miss * not shaded promethus snakeyaml * release-sign-artifacts minijar --- client/pom.xml | 136 +++++++++++++++++++++++++++++++++++++------------ 1 file changed, 104 insertions(+), 32 deletions(-) diff --git a/client/pom.xml b/client/pom.xml index 4cd1b88fa..6ed18aea2 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -145,7 +145,7 @@ org.apache.maven.plugins maven-shade-plugin - 3.2.1 + 3.2.4 false @@ -159,25 +159,56 @@ false true false - false + true + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + io.grpc:grpc-netty-shaded + + + META-INF/native/*.* + + + + + com.alibaba.nacos:nacos-api + + + com/alibaba/nacos/api/**/** + + + + + true true - io.grpc:* - io.opencensus:* - io.perfmark:* - com.google.guava:guava - com.google.guava:failureaccess - com.google.errorprone:error_prone_annotations - com.google.j2objc:j2objc-annotations - com.google.code.gson:gson - com.google.protobuf:protobuf-java com.alibaba.nacos:nacos-api com.alibaba.nacos:nacos-common - org.checkerframework:checker-qual + org.conscrypt:conscrypt-openjdk + org.mortbay.jetty.alpn:alpn-boot + org.eclipse.jetty.npn:npn-api + org.reflections:reflections + com.google.guava:guava + io.grpc:* + io.opencensus:* + org.javassist:* + io.perfmark:perfmark-api + com.google.*:* + javax.annotation:javax.annotation-api + org.checkerframework:* + org.codehaus.mojo:* + @@ -202,6 +233,12 @@ com.google com.alibaba.nacos.shaded.com.google + + + javax.annotation + com.alibaba.nacos.shaded.javax.annotation + + io.perfmark com.alibaba.nacos.shaded.io.perfmark @@ -227,7 +264,6 @@ com.alibaba.nacos.shaded.org.example - org.apache.maven.plugins maven-shade-plugin - 3.2.1 + 3.2.4 false @@ -279,29 +315,60 @@ false true false - false + true + + + *:* + + META-INF/*.SF + META-INF/*.DSA + META-INF/*.RSA + + + + io.grpc:grpc-netty-shaded + + + META-INF/native/*.* + + + + + com.alibaba.nacos:nacos-api + + + com/alibaba/nacos/api/**/** + + + + + true true - + - io.grpc:* - io.opencensus:* - io.perfmark:* - com.google.guava:guava - com.google.guava:failureaccess - com.google.errorprone:error_prone_annotations - com.google.j2objc:j2objc-annotations - com.google.code.gson:gson - com.google.protobuf:protobuf-java com.alibaba.nacos:nacos-api com.alibaba.nacos:nacos-common - org.checkerframework:checker-qual + org.conscrypt:conscrypt-openjdk + org.mortbay.jetty.alpn:alpn-boot + org.eclipse.jetty.npn:npn-api + org.reflections:reflections + com.google.guava:guava + io.grpc:* + io.opencensus:* + org.javassist:* + io.perfmark:perfmark-api + com.google.*:* + javax.annotation:javax.annotation-api + org.checkerframework:* + org.codehaus.mojo:* + - + - + io.grpc com.alibaba.nacos.shaded.io.grpc @@ -317,11 +384,17 @@ io.grpc.netty.shaded.io.grpc.netty.* - + com.google com.alibaba.nacos.shaded.com.google + + + javax.annotation + com.alibaba.nacos.shaded.javax.annotation + + io.perfmark com.alibaba.nacos.shaded.io.perfmark @@ -346,15 +419,14 @@ org.example com.alibaba.nacos.shaded.org.example - - + - +