[Bouncy Castle] include bc into pulsar-client fix docs (#8491)
### Motivation
The docs of bc need an update after merge PR #7453, also we could include bc in the pulsar client to avoid reference it in other modules.
### Modifications
- fix the docs after fix PR 7453;
- make pulsar client include bc module; avoid other modules to include bc.
- fix the pulsar-function bc jar issue.
### Verifying this change
all the tests passed.
diff --git a/pulsar-sql/presto-pulsar/pom.xml b/pulsar-sql/presto-pulsar/pom.xml
index c2caef5..019ea25 100644
--- a/pulsar-sql/presto-pulsar/pom.xml
+++ b/pulsar-sql/presto-pulsar/pom.xml
@@ -65,14 +65,6 @@
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>bouncy-castle-bc</artifactId>
- <version>${project.version}</version>
- <classifier>pkg</classifier>
- <optional>true</optional>
- </dependency>
-
- <dependency>
- <groupId>${project.groupId}</groupId>
<artifactId>managed-ledger</artifactId>
<version>${project.version}</version>
</dependency>
@@ -148,6 +140,10 @@
<includes>
<include>**</include>
</includes>
+ <excludes>
+ <!-- bouncycastle jars could not be shaded, or the signatures will be wrong-->
+ <exclude>org/bouncycastle/**</exclude>
+ </excludes>
</filter>
</filters>
<relocations>