diff --git a/buildtools/pom.xml b/buildtools/pom.xml
index 1400c77e508ad..ece9e78b2d977 100644
--- a/buildtools/pom.xml
+++ b/buildtools/pom.xml
@@ -47,7 +47,7 @@
4.1
10.14.2
3.1.2
- 4.1.108.Final
+ 4.1.111.Final
4.2.3
32.1.1-jre
1.10.12
diff --git a/distribution/server/pom.xml b/distribution/server/pom.xml
index 818c5537c616a..ede175f6f4ae8 100644
--- a/distribution/server/pom.xml
+++ b/distribution/server/pom.xml
@@ -46,6 +46,19 @@
${project.version}
+
+ ${project.groupId}
+ pulsar-metadata
+ ${project.version}
+
+
+
+ ${project.groupId}
+ jetcd-core-shaded
+ ${project.version}
+ shaded
+
+
${project.groupId}
pulsar-proxy
diff --git a/distribution/server/src/assemble/LICENSE.bin.txt b/distribution/server/src/assemble/LICENSE.bin.txt
index c5e20faf13ad5..b663b839ec917 100644
--- a/distribution/server/src/assemble/LICENSE.bin.txt
+++ b/distribution/server/src/assemble/LICENSE.bin.txt
@@ -289,27 +289,27 @@ The Apache Software License, Version 2.0
- org.apache.commons-commons-lang3-3.11.jar
- org.apache.commons-commons-text-1.10.0.jar
* Netty
- - io.netty-netty-buffer-4.1.108.Final.jar
- - io.netty-netty-codec-4.1.108.Final.jar
- - io.netty-netty-codec-dns-4.1.108.Final.jar
- - io.netty-netty-codec-http-4.1.108.Final.jar
- - io.netty-netty-codec-http2-4.1.108.Final.jar
- - io.netty-netty-codec-socks-4.1.108.Final.jar
- - io.netty-netty-codec-haproxy-4.1.108.Final.jar
- - io.netty-netty-common-4.1.108.Final.jar
- - io.netty-netty-handler-4.1.108.Final.jar
- - io.netty-netty-handler-proxy-4.1.108.Final.jar
- - io.netty-netty-resolver-4.1.108.Final.jar
- - io.netty-netty-resolver-dns-4.1.108.Final.jar
- - io.netty-netty-resolver-dns-classes-macos-4.1.108.Final.jar
- - io.netty-netty-resolver-dns-native-macos-4.1.108.Final-osx-aarch_64.jar
- - io.netty-netty-resolver-dns-native-macos-4.1.108.Final-osx-x86_64.jar
- - io.netty-netty-transport-4.1.108.Final.jar
- - io.netty-netty-transport-classes-epoll-4.1.108.Final.jar
- - io.netty-netty-transport-native-epoll-4.1.108.Final-linux-aarch_64.jar
- - io.netty-netty-transport-native-epoll-4.1.108.Final-linux-x86_64.jar
- - io.netty-netty-transport-native-unix-common-4.1.108.Final.jar
- - io.netty-netty-transport-native-unix-common-4.1.108.Final-linux-x86_64.jar
+ - io.netty-netty-buffer-4.1.111.Final.jar
+ - io.netty-netty-codec-4.1.111.Final.jar
+ - io.netty-netty-codec-dns-4.1.111.Final.jar
+ - io.netty-netty-codec-http-4.1.111.Final.jar
+ - io.netty-netty-codec-http2-4.1.111.Final.jar
+ - io.netty-netty-codec-socks-4.1.111.Final.jar
+ - io.netty-netty-codec-haproxy-4.1.111.Final.jar
+ - io.netty-netty-common-4.1.111.Final.jar
+ - io.netty-netty-handler-4.1.111.Final.jar
+ - io.netty-netty-handler-proxy-4.1.111.Final.jar
+ - io.netty-netty-resolver-4.1.111.Final.jar
+ - io.netty-netty-resolver-dns-4.1.111.Final.jar
+ - io.netty-netty-resolver-dns-classes-macos-4.1.111.Final.jar
+ - io.netty-netty-resolver-dns-native-macos-4.1.111.Final-osx-aarch_64.jar
+ - io.netty-netty-resolver-dns-native-macos-4.1.111.Final-osx-x86_64.jar
+ - io.netty-netty-transport-4.1.111.Final.jar
+ - io.netty-netty-transport-classes-epoll-4.1.111.Final.jar
+ - io.netty-netty-transport-native-epoll-4.1.111.Final-linux-aarch_64.jar
+ - io.netty-netty-transport-native-epoll-4.1.111.Final-linux-x86_64.jar
+ - io.netty-netty-transport-native-unix-common-4.1.111.Final.jar
+ - io.netty-netty-transport-native-unix-common-4.1.111.Final-linux-x86_64.jar
- io.netty-netty-tcnative-boringssl-static-2.0.65.Final.jar
- io.netty-netty-tcnative-boringssl-static-2.0.65.Final-linux-aarch_64.jar
- io.netty-netty-tcnative-boringssl-static-2.0.65.Final-linux-x86_64.jar
@@ -424,7 +424,6 @@ The Apache Software License, Version 2.0
- io.grpc-grpc-auth-1.55.3.jar
- io.grpc-grpc-context-1.55.3.jar
- io.grpc-grpc-core-1.55.3.jar
- - io.grpc-grpc-netty-1.55.3.jar
- io.grpc-grpc-protobuf-1.55.3.jar
- io.grpc-grpc-protobuf-lite-1.55.3.jar
- io.grpc-grpc-stub-1.55.3.jar
@@ -483,7 +482,6 @@ The Apache Software License, Version 2.0
- io.vertx-vertx-core-4.5.8.jar
- io.vertx-vertx-web-4.5.8.jar
- io.vertx-vertx-web-common-4.5.8.jar
- - io.vertx-vertx-grpc-4.5.8.jar
* Apache ZooKeeper
- org.apache.zookeeper-zookeeper-3.9.2.jar
- org.apache.zookeeper-zookeeper-jute-3.9.2.jar
@@ -495,11 +493,7 @@ The Apache Software License, Version 2.0
- com.google.http-client-google-http-client-1.41.0.jar
- com.google.auto.value-auto-value-annotations-1.9.jar
- com.google.re2j-re2j-1.6.jar
- * Jetcd
- - io.etcd-jetcd-api-0.7.7.jar
- - io.etcd-jetcd-common-0.7.7.jar
- - io.etcd-jetcd-core-0.7.7.jar
- - io.etcd-jetcd-grpc-0.7.7.jar
+ * Jetcd - shaded
* IPAddress
- com.github.seancfoley-ipaddress-5.5.0.jar
* RxJava
@@ -608,6 +602,7 @@ Datastax
- com.datastax.oss-pulsar-transaction-common-3.1.4.3-SNAPSHOT.jar
- com.datastax.oss-pulsar-transaction-coordinator-3.1.4.3-SNAPSHOT.jar
- com.datastax.oss-testmocks-3.1.4.3-SNAPSHOT.jar
+ - com.datastax.oss-jetcd-core-shaded-3.1.4.3-SNAPSHOT-shaded.jar
------------------------
diff --git a/distribution/shell/src/assemble/LICENSE.bin.txt b/distribution/shell/src/assemble/LICENSE.bin.txt
index 396bd8d0e83e3..f8062c1383463 100644
--- a/distribution/shell/src/assemble/LICENSE.bin.txt
+++ b/distribution/shell/src/assemble/LICENSE.bin.txt
@@ -344,23 +344,23 @@ The Apache Software License, Version 2.0
- commons-text-1.10.0.jar
- commons-compress-1.26.0.jar
* Netty
- - netty-buffer-4.1.108.Final.jar
- - netty-codec-4.1.108.Final.jar
- - netty-codec-dns-4.1.108.Final.jar
- - netty-codec-http-4.1.108.Final.jar
- - netty-codec-socks-4.1.108.Final.jar
- - netty-codec-haproxy-4.1.108.Final.jar
- - netty-common-4.1.108.Final.jar
- - netty-handler-4.1.108.Final.jar
- - netty-handler-proxy-4.1.108.Final.jar
- - netty-resolver-4.1.108.Final.jar
- - netty-resolver-dns-4.1.108.Final.jar
- - netty-transport-4.1.108.Final.jar
- - netty-transport-classes-epoll-4.1.108.Final.jar
- - netty-transport-native-epoll-4.1.108.Final-linux-aarch_64.jar
- - netty-transport-native-epoll-4.1.108.Final-linux-x86_64.jar
- - netty-transport-native-unix-common-4.1.108.Final.jar
- - netty-transport-native-unix-common-4.1.108.Final-linux-x86_64.jar
+ - netty-buffer-4.1.111.Final.jar
+ - netty-codec-4.1.111.Final.jar
+ - netty-codec-dns-4.1.111.Final.jar
+ - netty-codec-http-4.1.111.Final.jar
+ - netty-codec-socks-4.1.111.Final.jar
+ - netty-codec-haproxy-4.1.111.Final.jar
+ - netty-common-4.1.111.Final.jar
+ - netty-handler-4.1.111.Final.jar
+ - netty-handler-proxy-4.1.111.Final.jar
+ - netty-resolver-4.1.111.Final.jar
+ - netty-resolver-dns-4.1.111.Final.jar
+ - netty-transport-4.1.111.Final.jar
+ - netty-transport-classes-epoll-4.1.111.Final.jar
+ - netty-transport-native-epoll-4.1.111.Final-linux-aarch_64.jar
+ - netty-transport-native-epoll-4.1.111.Final-linux-x86_64.jar
+ - netty-transport-native-unix-common-4.1.111.Final.jar
+ - netty-transport-native-unix-common-4.1.111.Final-linux-x86_64.jar
- netty-tcnative-boringssl-static-2.0.65.Final.jar
- netty-tcnative-boringssl-static-2.0.65.Final-linux-aarch_64.jar
- netty-tcnative-boringssl-static-2.0.65.Final-linux-x86_64.jar
@@ -371,9 +371,9 @@ The Apache Software License, Version 2.0
- netty-incubator-transport-classes-io_uring-0.0.21.Final.jar
- netty-incubator-transport-native-io_uring-0.0.21.Final-linux-aarch_64.jar
- netty-incubator-transport-native-io_uring-0.0.21.Final-linux-x86_64.jar
- - netty-resolver-dns-classes-macos-4.1.108.Final.jar
- - netty-resolver-dns-native-macos-4.1.108.Final-osx-aarch_64.jar
- - netty-resolver-dns-native-macos-4.1.108.Final-osx-x86_64.jar
+ - netty-resolver-dns-classes-macos-4.1.111.Final.jar
+ - netty-resolver-dns-native-macos-4.1.111.Final-osx-aarch_64.jar
+ - netty-resolver-dns-native-macos-4.1.111.Final-osx-x86_64.jar
* Prometheus client
- simpleclient-0.16.0.jar
- simpleclient_log4j2-0.16.0.jar
diff --git a/jetcd-core-shaded/pom.xml b/jetcd-core-shaded/pom.xml
new file mode 100644
index 0000000000000..32042b302b6c5
--- /dev/null
+++ b/jetcd-core-shaded/pom.xml
@@ -0,0 +1,187 @@
+
+
+
+ 4.0.0
+
+ com.datastax.oss
+ pulsar
+ 3.1.4.3-SNAPSHOT
+
+
+ jetcd-core-shaded
+ Apache Pulsar :: jetcd-core shaded
+
+
+
+ io.etcd
+ jetcd-core
+
+
+ io.grpc
+ grpc-netty
+
+
+ io.netty
+ *
+
+
+
+
+ io.grpc
+ grpc-netty-shaded
+
+
+
+ dev.failsafe
+ failsafe
+
+
+ io.grpc
+ grpc-protobuf
+
+
+ io.grpc
+ grpc-stub
+
+
+ io.grpc
+ grpc-grpclb
+
+
+ io.grpc
+ grpc-util
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+
+
+ package
+
+ shade
+
+
+ true
+ true
+ false
+
+
+ io.etcd:*
+ io.vertx:*
+
+
+
+
+
+ io.vertx
+ org.apache.pulsar.jetcd.shaded.io.vertx
+
+
+
+ io.grpc.netty
+ io.grpc.netty.shaded.io.grpc.netty
+
+
+
+ io.netty
+ io.grpc.netty.shaded.io.netty
+
+
+
+
+ *:*
+
+ META-INF/*.SF
+ META-INF/*.DSA
+ META-INF/*.RSA
+ META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml
+
+
+
+
+
+
+
+ META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml
+ ${project.basedir}/dependency-reduced-pom.xml
+
+
+
+ true
+ shaded
+
+
+
+
+
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+
+
+ attach-shaded-jar
+ package
+
+ attach-artifact
+
+
+
+
+ ${project.build.directory}/${project.artifactId}-${project.version}-shaded.jar
+ jar
+ shaded
+
+
+
+
+
+
+
+
+ org.apache.maven.plugins
+ maven-antrun-plugin
+ ${maven-antrun-plugin.version}
+
+
+ unpack-shaded-jar
+ package
+
+ run
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pom.xml b/pom.xml
index 525ec81208167..d56af113808d9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -143,7 +143,7 @@ flexible messaging model and an intuitive client API.
1.1.10.5
4.1.12.1
5.1.0
- 4.1.108.Final
+ 4.1.111.Final
0.0.21.Final
9.4.54.v20240208
2.5.2
@@ -291,6 +291,7 @@ flexible messaging model and an intuitive client API.
2.3.0
3.4.1
3.1.0
+ 3.6.0
1.1.0
1.5.0
3.1.2
@@ -568,6 +569,10 @@ flexible messaging model and an intuitive client API.
jose4j
org.bitbucket.b_c
+
+ io.grpc
+ grpc-netty
+
@@ -1035,12 +1040,51 @@ flexible messaging model and an intuitive client API.
io.etcd
jetcd-core
${jetcd.version}
+
+
+ io.grpc
+ grpc-netty
+
+
-
io.etcd
jetcd-test
${jetcd.version}
+
+
+ io.grpc
+ grpc-netty
+
+
+ io.etcd
+ jetcd-core
+
+
+ io.etcd
+ jetcd-api
+
+
+ io.vertx
+ *
+
+
+
+
+ ${project.groupId}
+ jetcd-core-shaded
+ ${project.version}
+ shaded
+
+
+ io.etcd
+ *
+
+
+ io.vertx
+ *
+
+
@@ -1134,6 +1178,10 @@ flexible messaging model and an intuitive client API.
com.squareup.okio
okio
+
+ io.grpc
+ grpc-netty
+
@@ -2080,6 +2128,11 @@ flexible messaging model and an intuitive client API.
docker-maven-plugin
${docker-maven.version}
+
+ org.codehaus.mojo
+ build-helper-maven-plugin
+ ${build-helper-maven-plugin.version}
+
@@ -2319,6 +2372,7 @@ flexible messaging model and an intuitive client API.
pulsar-client-messagecrypto-bc
pulsar-metadata
+ jetcd-core-shaded
jclouds-shaded
@@ -2379,7 +2433,7 @@ flexible messaging model and an intuitive client API.
distribution
pulsar-metadata
-
+ jetcd-core-shaded
pulsar-package-management
diff --git a/pulsar-broker/pom.xml b/pulsar-broker/pom.xml
index 10b49561bd6f9..5cb29706478bf 100644
--- a/pulsar-broker/pom.xml
+++ b/pulsar-broker/pom.xml
@@ -453,6 +453,18 @@
${project.version}
+
+ ${project.groupId}
+ jetcd-core-shaded
+ ${project.version}
+ shaded
+ test
+
+
+ io.grpc
+ grpc-netty-shaded
+ test
+
io.etcd
jetcd-test
diff --git a/pulsar-functions/instance/pom.xml b/pulsar-functions/instance/pom.xml
index dbbffe7794e6a..f3583cc9e70e4 100644
--- a/pulsar-functions/instance/pom.xml
+++ b/pulsar-functions/instance/pom.xml
@@ -101,7 +101,7 @@
io.grpc
- grpc-all
+ *
com.google.protobuf
@@ -110,6 +110,11 @@
+
+ io.grpc
+ grpc-netty-shaded
+
+
io.grpc
grpc-stub
@@ -220,7 +225,7 @@
-
+
diff --git a/pulsar-metadata/pom.xml b/pulsar-metadata/pom.xml
index 2fff417aeec09..1fa3b9474e813 100644
--- a/pulsar-metadata/pom.xml
+++ b/pulsar-metadata/pom.xml
@@ -107,10 +107,15 @@
- io.etcd
- jetcd-core
+ ${project.groupId}
+ jetcd-core-shaded
+ ${project.version}
+ shaded
+
+
+ io.grpc
+ grpc-netty-shaded
-
io.etcd
diff --git a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
index a7fb7192cb5fe..27862cd20b5e3 100644
--- a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
+++ b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/EtcdMetadataStore.java
@@ -43,10 +43,10 @@
import io.etcd.jetcd.watch.WatchResponse;
import io.grpc.Status;
import io.grpc.StatusRuntimeException;
-import io.grpc.netty.GrpcSslContexts;
+import io.grpc.netty.shaded.io.grpc.netty.GrpcSslContexts;
+import io.grpc.netty.shaded.io.netty.handler.ssl.SslContext;
+import io.grpc.netty.shaded.io.netty.handler.ssl.SslProvider;
import io.grpc.stub.StreamObserver;
-import io.netty.handler.ssl.SslContext;
-import io.netty.handler.ssl.SslProvider;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
diff --git a/pulsar-sql/presto-distribution/LICENSE b/pulsar-sql/presto-distribution/LICENSE
index ccf112a98e24e..be9967031797c 100644
--- a/pulsar-sql/presto-distribution/LICENSE
+++ b/pulsar-sql/presto-distribution/LICENSE
@@ -231,21 +231,21 @@ The Apache Software License, Version 2.0
- commons-compress-1.26.0.jar
- commons-lang3-3.11.jar
* Netty
- - netty-buffer-4.1.108.Final.jar
- - netty-codec-4.1.108.Final.jar
- - netty-codec-dns-4.1.108.Final.jar
- - netty-codec-http-4.1.108.Final.jar
- - netty-codec-haproxy-4.1.108.Final.jar
- - netty-codec-socks-4.1.108.Final.jar
- - netty-handler-proxy-4.1.108.Final.jar
- - netty-common-4.1.108.Final.jar
- - netty-handler-4.1.108.Final.jar
+ - netty-buffer-4.1.111.Final.jar
+ - netty-codec-4.1.111.Final.jar
+ - netty-codec-dns-4.1.111.Final.jar
+ - netty-codec-http-4.1.111.Final.jar
+ - netty-codec-haproxy-4.1.111.Final.jar
+ - netty-codec-socks-4.1.111.Final.jar
+ - netty-handler-proxy-4.1.111.Final.jar
+ - netty-common-4.1.111.Final.jar
+ - netty-handler-4.1.111.Final.jar
- netty-reactive-streams-2.0.6.jar
- - netty-resolver-4.1.108.Final.jar
- - netty-resolver-dns-4.1.108.Final.jar
- - netty-resolver-dns-classes-macos-4.1.108.Final.jar
- - netty-resolver-dns-native-macos-4.1.108.Final-osx-aarch_64.jar
- - netty-resolver-dns-native-macos-4.1.108.Final-osx-x86_64.jar
+ - netty-resolver-4.1.111.Final.jar
+ - netty-resolver-dns-4.1.111.Final.jar
+ - netty-resolver-dns-classes-macos-4.1.111.Final.jar
+ - netty-resolver-dns-native-macos-4.1.111.Final-osx-aarch_64.jar
+ - netty-resolver-dns-native-macos-4.1.111.Final-osx-x86_64.jar
- netty-tcnative-boringssl-static-2.0.65.Final.jar
- netty-tcnative-boringssl-static-2.0.65.Final-linux-aarch_64.jar
- netty-tcnative-boringssl-static-2.0.65.Final-linux-x86_64.jar
@@ -253,13 +253,12 @@ The Apache Software License, Version 2.0
- netty-tcnative-boringssl-static-2.0.65.Final-osx-x86_64.jar
- netty-tcnative-boringssl-static-2.0.65.Final-windows-x86_64.jar
- netty-tcnative-classes-2.0.65.Final.jar
- - netty-transport-4.1.108.Final.jar
- - netty-transport-classes-epoll-4.1.108.Final.jar
- - netty-transport-native-epoll-4.1.108.Final-linux-aarch_64.jar
- - netty-transport-native-epoll-4.1.108.Final-linux-x86_64.jar
- - netty-transport-native-unix-common-4.1.108.Final.jar
- - netty-transport-native-unix-common-4.1.108.Final-linux-x86_64.jar
- - netty-codec-http2-4.1.108.Final.jar
+ - netty-transport-4.1.111.Final.jar
+ - netty-transport-classes-epoll-4.1.111.Final.jar
+ - netty-transport-native-epoll-4.1.111.Final-linux-aarch_64.jar
+ - netty-transport-native-epoll-4.1.111.Final-linux-x86_64.jar
+ - netty-transport-native-unix-common-4.1.111.Final.jar
+ - netty-transport-native-unix-common-4.1.111.Final-linux-x86_64.jar
- netty-incubator-transport-classes-io_uring-0.0.21.Final.jar
- netty-incubator-transport-native-io_uring-0.0.21.Final-linux-x86_64.jar
- netty-incubator-transport-native-io_uring-0.0.21.Final-linux-aarch_64.jar
@@ -268,19 +267,13 @@ The Apache Software License, Version 2.0
- grpc-context-1.55.3.jar
- grpc-core-1.55.3.jar
- grpc-grpclb-1.55.3.jar
- - grpc-netty-1.55.3.jar
+ - grpc-netty-shaded-1.55.3.jar
- grpc-protobuf-1.55.3.jar
- grpc-protobuf-lite-1.55.3.jar
- grpc-stub-1.55.3.jar
- grpc-util-1.60.0.jar
- * JEtcd
- - jetcd-api-0.7.7.jar
- - jetcd-common-0.7.7.jar
- - jetcd-core-0.7.7.jar
- - jetcd-grpc-0.7.7.jar
- * Vertx
- - vertx-core-4.5.8.jar
- - vertx-grpc-4.5.8.jar
+ * JEtcd - shaded
+ * Vertx - shaded
* Joda Time
- joda-time-2.10.10.jar
- failsafe-3.3.2.jar
diff --git a/pulsar-sql/presto-distribution/src/assembly/assembly.xml b/pulsar-sql/presto-distribution/src/assembly/assembly.xml
index 96c0421c71515..64c6778bc4396 100644
--- a/pulsar-sql/presto-distribution/src/assembly/assembly.xml
+++ b/pulsar-sql/presto-distribution/src/assembly/assembly.xml
@@ -60,6 +60,9 @@
io.airlift:launcher:tar.gz:bin:${airlift.version}
io.airlift:launcher:tar.gz:properties:${airlift.version}
*:tar.gz
+
+ org.codehaus.mojo:animal-sniffer-annotations
+ com.google.android:annotations
diff --git a/pulsar-sql/presto-pulsar-plugin/src/assembly/assembly.xml b/pulsar-sql/presto-pulsar-plugin/src/assembly/assembly.xml
index 6650abfda3fc3..ac17aaed70bdf 100644
--- a/pulsar-sql/presto-pulsar-plugin/src/assembly/assembly.xml
+++ b/pulsar-sql/presto-pulsar-plugin/src/assembly/assembly.xml
@@ -33,6 +33,9 @@
runtime
jakarta.ws.rs:jakarta.ws.rs-api
+
+ org.codehaus.mojo:animal-sniffer-annotations
+ com.google.android:annotations
diff --git a/src/check-binary-license.sh b/src/check-binary-license.sh
index 3a6d266345f30..c9ca41fef3571 100755
--- a/src/check-binary-license.sh
+++ b/src/check-binary-license.sh
@@ -96,7 +96,7 @@ done
if [ "$NO_PRESTO" -ne 1 ]; then
# check pulsar sql jars
- JARS=$(tar -tf $TARBALL | grep '\.jar' | grep 'trino/' | grep -v pulsar-client | grep -v bouncy-castle-bc | grep -v pulsar-metadata | grep -v 'managed-ledger' | grep -v 'pulsar-client-admin' | grep -v 'pulsar-client-api' | grep -v 'pulsar-functions-api' | grep -v 'pulsar-presto-connector-original' | grep -v 'pulsar-presto-distribution' | grep -v 'pulsar-common' | grep -v 'pulsar-functions-proto' | grep -v 'pulsar-functions-utils' | grep -v 'pulsar-io-core' | grep -v 'pulsar-transaction-common' | grep -v 'pulsar-package-core' | sed 's!.*/!!' | sort)
+ JARS=$(tar -tf $TARBALL | grep '\.jar' | grep 'trino/' | grep -v pulsar-client | grep -v bouncy-castle-bc | grep -v pulsar-metadata | grep -v 'managed-ledger' | grep -v 'pulsar-client-admin' | grep -v 'pulsar-client-api' | grep -v 'pulsar-functions-api' | grep -v 'pulsar-presto-connector-original' | grep -v 'pulsar-presto-distribution' | grep -v 'pulsar-common' | grep -v 'pulsar-functions-proto' | grep -v 'pulsar-functions-utils' | grep -v 'pulsar-io-core' | grep -v 'pulsar-transaction-common' | grep -v 'pulsar-package-core' | grep -v jetcd-core-shaded | sed 's!.*/!!' | sort)
if [ -n "$JARS" ]; then
LICENSEPATH=$(tar -tf $TARBALL | awk '/^[^\/]*\/trino\/LICENSE/')
LICENSE=$(tar -O -xf $TARBALL "$LICENSEPATH")