This is an automated email from the ASF dual-hosted git repository.

zhangliang 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 4ece62fa6fd Remove useless dependencies for agent pom (#36356)
4ece62fa6fd is described below

commit 4ece62fa6fd6b39805b278699e5491a09faafe54
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Tue Aug 19 18:26:50 2025 +0800

    Remove useless dependencies for agent pom (#36356)
---
 agent/core/pom.xml                            |  7 +------
 agent/plugins/core/pom.xml                    |  9 --------
 agent/plugins/metrics/core/pom.xml            | 30 ---------------------------
 agent/plugins/metrics/type/prometheus/pom.xml | 18 ----------------
 agent/plugins/pom.xml                         | 25 ++++++++++++++++------
 agent/pom.xml                                 | 18 +++++-----------
 6 files changed, 25 insertions(+), 82 deletions(-)

diff --git a/agent/core/pom.xml b/agent/core/pom.xml
index fb874242247..18493c8071a 100644
--- a/agent/core/pom.xml
+++ b/agent/core/pom.xml
@@ -36,6 +36,7 @@
             <artifactId>shardingsphere-agent-api</artifactId>
             <version>${project.version}</version>
         </dependency>
+        
         <dependency>
             <groupId>net.bytebuddy</groupId>
             <artifactId>byte-buddy</artifactId>
@@ -45,12 +46,6 @@
             <groupId>org.yaml</groupId>
             <artifactId>snakeyaml</artifactId>
         </dependency>
-        
-        <dependency>
-            <groupId>com.cedarsoftware</groupId>
-            <artifactId>java-util</artifactId>
-            <scope>test</scope>
-        </dependency>
     </dependencies>
     
     <build>
diff --git a/agent/plugins/core/pom.xml b/agent/plugins/core/pom.xml
index 9fe17193b1e..01480639e9b 100644
--- a/agent/plugins/core/pom.xml
+++ b/agent/plugins/core/pom.xml
@@ -30,15 +30,6 @@
         <target.directory>${project.basedir}/target/lib</target.directory>
     </properties>
     
-    <dependencies>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-jdbc</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
-    </dependencies>
-    
     <build>
         <plugins>
             <plugin>
diff --git a/agent/plugins/metrics/core/pom.xml 
b/agent/plugins/metrics/core/pom.xml
index 1f0de479482..12c647be971 100644
--- a/agent/plugins/metrics/core/pom.xml
+++ b/agent/plugins/metrics/core/pom.xml
@@ -31,42 +31,12 @@
     </properties>
     
     <dependencies>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-infra-context</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-infra-route-core</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-parser-distsql-statement</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
         <dependency>
             <groupId>org.apache.shardingsphere</groupId>
             <artifactId>shardingsphere-proxy-bootstrap</artifactId>
             <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-proxy-frontend-core</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-proxy-backend-core</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
         
         <dependency>
             <groupId>org.apache.shardingsphere</groupId>
diff --git a/agent/plugins/metrics/type/prometheus/pom.xml 
b/agent/plugins/metrics/type/prometheus/pom.xml
index e921579fec4..07494a04d24 100644
--- a/agent/plugins/metrics/type/prometheus/pom.xml
+++ b/agent/plugins/metrics/type/prometheus/pom.xml
@@ -56,24 +56,6 @@
             <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-proxy-frontend-core</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-proxy-backend-core</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-infra-context</artifactId>
-            <version>${project.version}</version>
-            <scope>provided</scope>
-        </dependency>
         
         <dependency>
             <groupId>org.apache.shardingsphere</groupId>
diff --git a/agent/plugins/pom.xml b/agent/plugins/pom.xml
index 8e26107eee8..9e8680394b2 100644
--- a/agent/plugins/pom.xml
+++ b/agent/plugins/pom.xml
@@ -42,12 +42,6 @@
             <scope>provided</scope>
         </dependency>
         
-        <dependency>
-            <groupId>net.bytebuddy</groupId>
-            <artifactId>byte-buddy</artifactId>
-            <scope>provided</scope>
-        </dependency>
-        
         <dependency>
             <groupId>org.apache.shardingsphere</groupId>
             <artifactId>shardingsphere-proxy-backend-core</artifactId>
@@ -60,6 +54,25 @@
             <version>${project.version}</version>
             <scope>provided</scope>
         </dependency>
+        
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jul-to-slf4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>jcl-over-slf4j</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-classic</artifactId>
+        </dependency>
+        
+        <dependency>
+            <groupId>net.bytebuddy</groupId>
+            <artifactId>byte-buddy</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
     
     <build>
diff --git a/agent/pom.xml b/agent/pom.xml
index 91251b9d9ed..66587af1de8 100644
--- a/agent/pom.xml
+++ b/agent/pom.xml
@@ -40,22 +40,14 @@
             <scope>test</scope>
         </dependency>
         <dependency>
-            <groupId>org.apache.commons</groupId>
-            <artifactId>commons-lang3</artifactId>
+            <groupId>com.cedarsoftware</groupId>
+            <artifactId>java-util</artifactId>
             <scope>test</scope>
         </dependency>
-        
         <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>jul-to-slf4j</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>org.slf4j</groupId>
-            <artifactId>jcl-over-slf4j</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>ch.qos.logback</groupId>
-            <artifactId>logback-classic</artifactId>
+            <groupId>org.apache.commons</groupId>
+            <artifactId>commons-lang3</artifactId>
+            <scope>test</scope>
         </dependency>
     </dependencies>
     

Reply via email to