This is an automated email from the ASF dual-hosted git repository.
jianglongtao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 6aabc3d5b41 Add plugin-core to lib folder (#23242)
6aabc3d5b41 is described below
commit 6aabc3d5b4189d6d4fbad1c128b8519057ed5cc9
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Jan 1 15:29:00 2023 +0800
Add plugin-core to lib folder (#23242)
---
agent/plugins/core/pom.xml | 28 ++++++++++++++++++++++++++++
agent/plugins/pom.xml | 1 +
2 files changed, 29 insertions(+)
diff --git a/agent/plugins/core/pom.xml b/agent/plugins/core/pom.xml
index e0345484623..06f3f82d471 100644
--- a/agent/plugins/core/pom.xml
+++ b/agent/plugins/core/pom.xml
@@ -36,8 +36,36 @@
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
+ <minimizeJar>true</minimizeJar>
+
<createDependencyReducedPom>false</createDependencyReducedPom>
<outputFile>${target.directory}/${project.build.finalName}.jar</outputFile>
</configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <phase>package</phase>
+ <configuration>
+ <relocations>
+ <relocation>
+ <pattern>com.google.common</pattern>
+
<shadedPattern>${shade.package}.com.google.common</shadedPattern>
+ </relocation>
+ </relocations>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
+ </execution>
+ </executions>
</plugin>
</plugins>
</build>
diff --git a/agent/plugins/pom.xml b/agent/plugins/pom.xml
index 70e5bf1ad5e..a7ab983141a 100644
--- a/agent/plugins/pom.xml
+++ b/agent/plugins/pom.xml
@@ -30,6 +30,7 @@
<modules>
<module>core</module>
+
<module>metrics</module>
<module>tracing</module>
<module>logging</module>