You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by du...@apache.org on 2024/02/29 00:05:38 UTC

(shardingsphere) branch master updated: Refactor pipeline-core module depends on shardingsphere-jdbc module (#30343)

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

duanzhengqiang 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 b9490d8be18 Refactor pipeline-core module depends on shardingsphere-jdbc module (#30343)
b9490d8be18 is described below

commit b9490d8be18fd40cc98774364e5818b2da82f5aa
Author: Hongsheng Zhong <zh...@apache.org>
AuthorDate: Thu Feb 29 08:05:32 2024 +0800

    Refactor pipeline-core module depends on shardingsphere-jdbc module (#30343)
---
 features/sharding/core/pom.xml                         |  5 -----
 ...gsphere.data.pipeline.spi.PipelineDataSourceCreator | 18 ------------------
 kernel/data-pipeline/core/pom.xml                      |  5 +++++
 .../ShardingSpherePipelineDataSourceCreator.java       |  2 +-
 ...gsphere.data.pipeline.spi.PipelineDataSourceCreator |  1 +
 5 files changed, 7 insertions(+), 24 deletions(-)

diff --git a/features/sharding/core/pom.xml b/features/sharding/core/pom.xml
index bb5c5447e58..c096d0f0024 100644
--- a/features/sharding/core/pom.xml
+++ b/features/sharding/core/pom.xml
@@ -32,11 +32,6 @@
             <artifactId>shardingsphere-sharding-api</artifactId>
             <version>${project.version}</version>
         </dependency>
-        <dependency>
-            <groupId>org.apache.shardingsphere</groupId>
-            <artifactId>shardingsphere-data-pipeline-api</artifactId>
-            <version>${project.version}</version>
-        </dependency>
         
         <dependency>
             <groupId>org.apache.shardingsphere</groupId>
diff --git a/jdbc/src/main/resources/META-INF/services/org.apache.shardingsphere.data.pipeline.spi.PipelineDataSourceCreator b/jdbc/src/main/resources/META-INF/services/org.apache.shardingsphere.data.pipeline.spi.PipelineDataSourceCreator
deleted file mode 100644
index 6a071fa2ffb..00000000000
--- a/jdbc/src/main/resources/META-INF/services/org.apache.shardingsphere.data.pipeline.spi.PipelineDataSourceCreator
+++ /dev/null
@@ -1,18 +0,0 @@
-#
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements.  See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-
-org.apache.shardingsphere.driver.data.pipeline.datasource.creator.ShardingSpherePipelineDataSourceCreator
diff --git a/kernel/data-pipeline/core/pom.xml b/kernel/data-pipeline/core/pom.xml
index 12dc8c787b9..8a8d803b8f9 100644
--- a/kernel/data-pipeline/core/pom.xml
+++ b/kernel/data-pipeline/core/pom.xml
@@ -76,6 +76,11 @@
             <groupId>org.apache.shardingsphere.elasticjob</groupId>
             <artifactId>elasticjob-lite-lifecycle</artifactId>
         </dependency>
+        <dependency>
+            <groupId>org.apache.shardingsphere</groupId>
+            <artifactId>shardingsphere-jdbc</artifactId>
+            <version>${project.version}</version>
+        </dependency>
         
         <dependency>
             <groupId>com.zaxxer</groupId>
diff --git a/jdbc/src/main/java/org/apache/shardingsphere/driver/data/pipeline/datasource/creator/ShardingSpherePipelineDataSourceCreator.java b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/datasource/creator/ShardingSpherePipelineDataSourceCreator.java
similarity index 99%
rename from jdbc/src/main/java/org/apache/shardingsphere/driver/data/pipeline/datasource/creator/ShardingSpherePipelineDataSourceCreator.java
rename to kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/datasource/creator/ShardingSpherePipelineDataSourceCreator.java
index d809f3571e7..8a69b0a81cf 100644
--- a/jdbc/src/main/java/org/apache/shardingsphere/driver/data/pipeline/datasource/creator/ShardingSpherePipelineDataSourceCreator.java
+++ b/kernel/data-pipeline/core/src/main/java/org/apache/shardingsphere/data/pipeline/core/datasource/creator/ShardingSpherePipelineDataSourceCreator.java
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-package org.apache.shardingsphere.driver.data.pipeline.datasource.creator;
+package org.apache.shardingsphere.data.pipeline.core.datasource.creator;
 
 import org.apache.shardingsphere.authority.yaml.config.YamlAuthorityRuleConfiguration;
 import org.apache.shardingsphere.data.pipeline.api.type.ShardingSpherePipelineDataSourceConfiguration;
diff --git a/kernel/data-pipeline/core/src/main/resources/META-INF/services/org.apache.shardingsphere.data.pipeline.spi.PipelineDataSourceCreator b/kernel/data-pipeline/core/src/main/resources/META-INF/services/org.apache.shardingsphere.data.pipeline.spi.PipelineDataSourceCreator
index bbb32be29a7..6a4ae47983a 100644
--- a/kernel/data-pipeline/core/src/main/resources/META-INF/services/org.apache.shardingsphere.data.pipeline.spi.PipelineDataSourceCreator
+++ b/kernel/data-pipeline/core/src/main/resources/META-INF/services/org.apache.shardingsphere.data.pipeline.spi.PipelineDataSourceCreator
@@ -16,3 +16,4 @@
 #
 
 org.apache.shardingsphere.data.pipeline.core.datasource.creator.StandardPipelineDataSourceCreator
+org.apache.shardingsphere.data.pipeline.core.datasource.creator.ShardingSpherePipelineDataSourceCreator