This is an automated email from the ASF dual-hosted git repository.
panjuan 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 32362a4 Rename shardingsphere-authority-common to
shardingsphere-authority-core (#12218)
32362a4 is described below
commit 32362a4263a6739116119761a9cc6d7c4498634b
Author: Liang Zhang <[email protected]>
AuthorDate: Sat Sep 4 19:54:32 2021 +0800
Rename shardingsphere-authority-common to shardingsphere-authority-core
(#12218)
---
.../shardingsphere-jdbc-core/pom.xml | 2 +-
.../shardingsphere-authority/pom.xml | 2 +-
.../authority/constant/AuthorityOrder.java | 33 ----
....shardingsphere.infra.executor.check.SQLChecker | 18 --
.../NativeAuthorityProviderAlgorithmTest.java | 199 ---------------------
.../pom.xml | 2 +-
.../authority/checker/AuthorityChecker.java | 0
.../natived/NativeAuthorityProviderAlgorithm.java | 0
.../natived/builder/StoragePrivilegeBuilder.java | 0
.../natived/builder/StoragePrivilegeHandler.java | 0
.../natived/builder/StoragePrivilegeMerger.java | 0
.../builder/dialect/MySQLPrivilegeHandler.java | 0
.../builder/dialect/OraclePrivilegeHandler.java | 0
.../dialect/PostgreSQLPrivilegeHandler.java | 0
.../builder/dialect/SQLServerPrivilegeHandler.java | 0
.../natived/model/privilege/NativePrivileges.java | 0
.../privilege/admin/AdministrativePrivileges.java | 0
.../privilege/database/DatabasePrivileges.java | 0
.../model/privilege/database/SchemaPrivileges.java | 0
.../model/privilege/database/TablePrivileges.java | 0
.../natived/model/subject/SchemaAccessSubject.java | 0
.../natived/model/subject/TableAccessSubject.java | 0
...vilegesPermittedAuthorityProviderAlgorithm.java | 0
.../schema/builder/SchemaPrivilegeBuilder.java | 0
...rivilegesPermittedShardingSpherePrivileges.java | 0
...vilegesPermittedAuthorityProviderAlgorithm.java | 0
.../authority/rule/AuthorityRule.java | 0
.../rule/builder/AuthorityRuleBuilder.java | 0
...ultAuthoritySchemaRuleConfigurationBuilder.java | 0
.../authority/rule/builder/DefaultUser.java | 0
.../config/YamlAuthorityRuleConfiguration.java | 0
.../AuthorityRuleConfigurationYamlSwapper.java | 0
...rovider.natived.builder.StoragePrivilegeHandler | 0
...gsphere.authority.spi.AuthorityProvideAlgorithm | 0
...er.global.DefaultGlobalRuleConfigurationBuilder | 0
...ere.infra.rule.builder.global.GlobalRuleBuilder | 0
...aml.config.swapper.YamlRuleConfigurationSwapper | 0
.../authority/checker/AuthorityCheckerTest.java | 0
.../authority/merge/PrivilegeMergeTest.java | 0
.../builder/StoragePrivilegeBuilderTest.java | 0
.../builder/dialect/MySQLPrivilegeHandlerTest.java | 0
.../dialect/OraclePrivilegeHandlerTest.java | 0
.../dialect/PostgreSQLPrivilegeHandlerTest.java | 0
.../dialect/SQLServerPrivilegeHandlerTest.java | 0
.../simple/AllPrivilegesProviderAlgorithmTest.java | 0
...gesPermittedAuthorityProviderAlgorithmTest.java | 0
.../shardingsphere-cluster-mode-core/pom.xml | 2 +-
.../shardingsphere-proxy-backend/pom.xml | 2 +-
.../shardingsphere-proxy-common/pom.xml | 2 +-
49 files changed, 6 insertions(+), 256 deletions(-)
diff --git a/shardingsphere-jdbc/shardingsphere-jdbc-core/pom.xml
b/shardingsphere-jdbc/shardingsphere-jdbc-core/pom.xml
index a1675d0..cd508be 100644
--- a/shardingsphere-jdbc/shardingsphere-jdbc-core/pom.xml
+++ b/shardingsphere-jdbc/shardingsphere-jdbc-core/pom.xml
@@ -59,7 +59,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-authority-common</artifactId>
+ <artifactId>shardingsphere-authority-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
diff --git a/shardingsphere-kernel/shardingsphere-authority/pom.xml
b/shardingsphere-kernel/shardingsphere-authority/pom.xml
index 9e75a5a..e7b75b1 100644
--- a/shardingsphere-kernel/shardingsphere-authority/pom.xml
+++ b/shardingsphere-kernel/shardingsphere-authority/pom.xml
@@ -31,6 +31,6 @@
<modules>
<module>shardingsphere-authority-api</module>
- <module>shardingsphere-authority-common</module>
+ <module>shardingsphere-authority-core</module>
</modules>
</project>
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/constant/AuthorityOrder.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/constant/AuthorityOrder.java
deleted file mode 100644
index 384792e..0000000
---
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/constant/AuthorityOrder.java
+++ /dev/null
@@ -1,33 +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.
- */
-
-package org.apache.shardingsphere.authority.constant;
-
-import lombok.AccessLevel;
-import lombok.NoArgsConstructor;
-
-/**
- * Authority order.
- */
-@NoArgsConstructor(access = AccessLevel.PRIVATE)
-public final class AuthorityOrder {
-
- /**
- * Authority order.
- */
- public static final int ORDER = 500;
-}
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.executor.check.SQLChecker
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.executor.check.SQLChecker
deleted file mode 100644
index bb82025..0000000
---
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.executor.check.SQLChecker
+++ /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.authority.checker.AuthorityChecker
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/NativeAuthorityProviderAlgorithmTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/NativeAuthorityProviderAlgorithmTest.java
deleted file mode 100644
index 88e899b..0000000
---
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/NativeAuthorityProviderAlgorithmTest.java
+++ /dev/null
@@ -1,199 +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.
- */
-
-package org.apache.shardingsphere.authority.provider.natived;
-
-import org.apache.shardingsphere.authority.model.PrivilegeType;
-import org.apache.shardingsphere.authority.model.ShardingSpherePrivileges;
-import org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm;
-import org.apache.shardingsphere.infra.metadata.ShardingSphereMetaData;
-import org.apache.shardingsphere.infra.metadata.user.Grantee;
-import org.apache.shardingsphere.infra.metadata.user.ShardingSphereUser;
-import org.apache.shardingsphere.spi.ShardingSphereServiceLoader;
-import org.apache.shardingsphere.spi.typed.TypedSPIRegistry;
-import org.junit.BeforeClass;
-import org.junit.Test;
-
-import javax.sql.DataSource;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.LinkedList;
-import java.util.Optional;
-import java.util.Properties;
-import java.util.stream.Collectors;
-
-import static org.hamcrest.CoreMatchers.is;
-import static org.junit.Assert.assertThat;
-import static org.junit.Assert.assertTrue;
-import static org.mockito.Mockito.RETURNS_DEEP_STUBS;
-import static org.mockito.Mockito.mock;
-import static org.mockito.Mockito.when;
-
-public final class NativeAuthorityProviderAlgorithmTest {
-
- @BeforeClass
- public static void setUp() {
- ShardingSphereServiceLoader.register(AuthorityProvideAlgorithm.class);
- }
-
- @Test
- public void assertAlgorithmType() {
- Optional<AuthorityProvideAlgorithm> algorithm =
TypedSPIRegistry.findRegisteredService(AuthorityProvideAlgorithm.class,
"NATIVE", new Properties());
- assertTrue(algorithm.isPresent());
- assertThat(algorithm.get().getType(), is("NATIVE"));
- }
-
- @Test
- public void assertFindPrivileges() throws SQLException {
- NativeAuthorityProviderAlgorithm algorithm = new
NativeAuthorityProviderAlgorithm();
- Collection<ShardingSphereUser> users = new LinkedList<>();
- ShardingSphereUser root = new ShardingSphereUser("root", "",
"localhost");
- users.add(root);
- ShardingSphereMetaData metaData = mockShardingSphereMetaData(users);
- algorithm.init(Collections.singletonMap("db0", metaData), users);
- Optional<ShardingSpherePrivileges> privileges =
algorithm.findPrivileges(new Grantee("root", "localhost"));
- assertTrue(privileges.isPresent());
- assertPrivilege(privileges.get());
- }
-
- @Test
- public void assertRefreshPrivileges() throws SQLException {
- NativeAuthorityProviderAlgorithm algorithm = new
NativeAuthorityProviderAlgorithm();
- Collection<ShardingSphereUser> users = Collections.singletonList(new
ShardingSphereUser("root", "", "localhost"));
- algorithm.init(Collections.emptyMap(), users);
- Optional<ShardingSpherePrivileges> privileges1 =
algorithm.findPrivileges(new Grantee("root", "localhost"));
- assertTrue(privileges1.isPresent());
-
assertTrue(privileges1.get().hasPrivileges(Collections.singletonList(PrivilegeType.SUPER)));
- algorithm.refresh(Collections.singletonMap("db0",
mockShardingSphereMetaData(users)), users);
- Optional<ShardingSpherePrivileges> privileges2 =
algorithm.findPrivileges(new Grantee("root", "localhost"));
- assertTrue(privileges2.isPresent());
- assertPrivilege(privileges2.get());
- }
-
- private void assertPrivilege(final ShardingSpherePrivileges privileges) {
- Collection<PrivilegeType> expected = new LinkedList<>();
- expected.add(PrivilegeType.SUPER);
- expected.add(PrivilegeType.SELECT);
- expected.add(PrivilegeType.INSERT);
- expected.add(PrivilegeType.UPDATE);
- expected.add(PrivilegeType.RELOAD);
- expected.add(PrivilegeType.SHUTDOWN);
- assertTrue(privileges.hasPrivileges(expected));
- }
-
- private ShardingSphereMetaData mockShardingSphereMetaData(final
Collection<ShardingSphereUser> users) throws SQLException {
- ShardingSphereMetaData result = mock(ShardingSphereMetaData.class,
RETURNS_DEEP_STUBS);
- DataSource dataSource = mockDataSourceForPrivileges(users);
-
when(result.getResource().getAllInstanceDataSources()).thenReturn(Collections.singletonList(dataSource));
-
when(result.getRuleMetaData().getRules()).thenReturn(Collections.emptyList());
- return result;
- }
-
- private DataSource mockDataSourceForPrivileges(final
Collection<ShardingSphereUser> users) throws SQLException {
- ResultSet globalPrivilegeResultSet = mockGlobalPrivilegeResultSet();
- ResultSet schemaPrivilegeResultSet = mockSchemaPrivilegeResultSet();
- ResultSet tablePrivilegeResultSet = mockTablePrivilegeResultSet();
- DataSource result = mock(DataSource.class, RETURNS_DEEP_STUBS);
- String globalPrivilegeSQL = "SELECT * FROM mysql.user WHERE (user,
host) in (%s)";
- String schemaPrivilegeSQL = "SELECT * FROM mysql.db WHERE (user, host)
in (%s)";
- String tablePrivilegeSQL = "SELECT Db, Table_name, Table_priv FROM
mysql.tables_priv WHERE (user, host) in (%s)";
- String useHostTuples = users.stream().map(item ->
String.format("('%s', '%s')", item.getGrantee().getUsername(),
item.getGrantee().getHostname())).collect(Collectors.joining(", "));
-
when(result.getConnection().createStatement().executeQuery(String.format(globalPrivilegeSQL,
useHostTuples))).thenReturn(globalPrivilegeResultSet);
-
when(result.getConnection().createStatement().executeQuery(String.format(schemaPrivilegeSQL,
useHostTuples))).thenReturn(schemaPrivilegeResultSet);
-
when(result.getConnection().createStatement().executeQuery(String.format(tablePrivilegeSQL,
useHostTuples))).thenReturn(tablePrivilegeResultSet);
-
when(result.getConnection().getMetaData().getURL()).thenReturn("jdbc:mysql://localhost:3306/test");
- return result;
- }
-
- private ResultSet mockGlobalPrivilegeResultSet() throws SQLException {
- ResultSet result = mock(ResultSet.class);
- when(result.next()).thenReturn(true, true, false, true, true, false);
- when(result.getObject("Super_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Reload_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Shutdown_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Process_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("File_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("Show_db_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("Repl_slave_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Repl_client_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Create_user_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Create_tablespace_priv")).thenReturn(false,
false, false, false);
- when(result.getObject("Select_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Insert_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Update_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Delete_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Create_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Alter_priv")).thenReturn(true, false, true,
false);
- when(result.getObject("Drop_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("Grant_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("Index_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("References_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Create_tmp_table_priv")).thenReturn(false,
false, false, false);
- when(result.getObject("Lock_tables_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Execute_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("Create_view_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Show_view_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Create_routine_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Alter_routine_priv")).thenReturn(false, false,
false, false);
- when(result.getObject("Event_priv")).thenReturn(false, false, false,
false);
- when(result.getObject("Trigger_priv")).thenReturn(false, false, false,
false);
- when(result.getString("user")).thenReturn("root", "mysql.sys", "root",
"mysql.sys");
- when(result.getString("host")).thenReturn("localhost");
- return result;
- }
-
- private ResultSet mockSchemaPrivilegeResultSet() throws SQLException {
- ResultSet result = mock(ResultSet.class);
- when(result.next()).thenReturn(true, false);
- when(result.getString("Db")).thenReturn("sys");
- when(result.getObject("Select_priv")).thenReturn(false);
- when(result.getObject("Insert_priv")).thenReturn(false);
- when(result.getObject("Update_priv")).thenReturn(false);
- when(result.getObject("Delete_priv")).thenReturn(false);
- when(result.getObject("Create_priv")).thenReturn(false);
- when(result.getObject("Alter_priv")).thenReturn(false);
- when(result.getObject("Drop_priv")).thenReturn(false);
- when(result.getObject("Grant_priv")).thenReturn(false);
- when(result.getObject("Index_priv")).thenReturn(false);
- when(result.getObject("References_priv")).thenReturn(false);
- when(result.getObject("Create_tmp_table_priv")).thenReturn(false);
- when(result.getObject("Lock_tables_priv")).thenReturn(false);
- when(result.getObject("Execute_priv")).thenReturn(false);
- when(result.getObject("Create_view_priv")).thenReturn(false);
- when(result.getObject("Show_view_priv")).thenReturn(false);
- when(result.getObject("Create_routine_priv")).thenReturn(false);
- when(result.getObject("Alter_routine_priv")).thenReturn(false);
- when(result.getObject("Event_priv")).thenReturn(false);
- when(result.getObject("Trigger_priv")).thenReturn(true);
- when(result.getString("user")).thenReturn("mysql.sys");
- when(result.getString("host")).thenReturn("localhost");
- return result;
- }
-
- private ResultSet mockTablePrivilegeResultSet() throws SQLException {
- ResultSet result = mock(ResultSet.class, RETURNS_DEEP_STUBS);
- when(result.next()).thenReturn(true, false);
- when(result.getString("Db")).thenReturn("sys");
- when(result.getString("Table_name")).thenReturn("sys_config");
- when(result.getArray("Table_priv").getArray()).thenReturn(new
String[]{"Select"});
- when(result.getString("user")).thenReturn("mysql.sys");
- when(result.getString("host")).thenReturn("localhost");
- return result;
- }
-}
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/pom.xml
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/pom.xml
similarity index 96%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/pom.xml
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/pom.xml
index 740b8d5..c6aa887 100644
---
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/pom.xml
+++
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/pom.xml
@@ -25,7 +25,7 @@
<artifactId>shardingsphere-authority</artifactId>
<version>5.0.0-RC1-SNAPSHOT</version>
</parent>
- <artifactId>shardingsphere-authority-common</artifactId>
+ <artifactId>shardingsphere-authority-core</artifactId>
<name>${project.artifactId}</name>
<dependencies>
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/checker/AuthorityChecker.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/checker/AuthorityChecker.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/checker/AuthorityChecker.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/checker/AuthorityChecker.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/NativeAuthorityProviderAlgorithm.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/NativeAuthorityProviderAlgorithm.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/NativeAuthorityProviderAlgorithm.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/NativeAuthorityProviderAlgorithm.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilder.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilder.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilder.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilder.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeHandler.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeHandler.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeHandler.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeHandler.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeMerger.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeMerger.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeMerger.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeMerger.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandler.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandler.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandler.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandler.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandler.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandler.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandler.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandler.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandler.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandler.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandler.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandler.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandler.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandler.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandler.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandler.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/NativePrivileges.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/NativePrivileges.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/NativePrivileges.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/NativePrivileges.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/admin/AdministrativePrivileges.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/admin/AdministrativePrivileges.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/admin/AdministrativePrivileges.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/admin/AdministrativePrivileges.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/DatabasePrivileges.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/DatabasePrivileges.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/DatabasePrivileges.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/DatabasePrivileges.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/SchemaPrivileges.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/SchemaPrivileges.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/SchemaPrivileges.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/SchemaPrivileges.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/TablePrivileges.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/TablePrivileges.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/TablePrivileges.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/privilege/database/TablePrivileges.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/SchemaAccessSubject.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/SchemaAccessSubject.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/SchemaAccessSubject.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/SchemaAccessSubject.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/TableAccessSubject.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/TableAccessSubject.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/TableAccessSubject.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/natived/model/subject/TableAccessSubject.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/schema/SchemaPrivilegesPermittedAuthorityProviderAlgorithm.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/schema/SchemaPrivilegesPermittedAuthorityProviderAlgorithm.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/schema/SchemaPrivilegesPermittedAuthorityProviderAlgorithm.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/schema/SchemaPrivilegesPermittedAuthorityProviderAlgorithm.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/schema/builder/SchemaPrivilegeBuilder.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/schema/builder/SchemaPrivilegeBuilder.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/schema/builder/SchemaPrivilegeBuilder.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/schema/builder/SchemaPrivilegeBuilder.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/schema/model/privilege/SchemaPrivilegesPermittedShardingSpherePrivileges.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/schema/model/privilege/SchemaPrivilegesPermittedShardingSpherePrivileges.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/schema/model/privilege/SchemaPrivilegesPermittedShardingSpherePrivileges.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/schema/model/privilege/SchemaPrivilegesPermittedShardingSpherePrivileges.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesPermittedAuthorityProviderAlgorithm.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesPermittedAuthorityProviderAlgorithm.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesPermittedAuthorityProviderAlgorithm.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesPermittedAuthorityProviderAlgorithm.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/AuthorityRule.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/builder/AuthorityRuleBuilder.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/builder/AuthorityRuleBuilder.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/builder/AuthorityRuleBuilder.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/builder/AuthorityRuleBuilder.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultAuthoritySchemaRuleConfigurationBuilder.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultAuthoritySchemaRuleConfigurationBuilder.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultAuthoritySchemaRuleConfigurationBuilder.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultAuthoritySchemaRuleConfigurationBuilder.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultUser.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultUser.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultUser.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/rule/builder/DefaultUser.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/yaml/config/YamlAuthorityRuleConfiguration.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/yaml/config/YamlAuthorityRuleConfiguration.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/yaml/config/YamlAuthorityRuleConfiguration.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/yaml/config/YamlAuthorityRuleConfiguration.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/yaml/swapper/AuthorityRuleConfigurationYamlSwapper.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/yaml/swapper/AuthorityRuleConfigurationYamlSwapper.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/java/org/apache/shardingsphere/authority/yaml/swapper/AuthorityRuleConfigurationYamlSwapper.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/java/org/apache/shardingsphere/authority/yaml/swapper/AuthorityRuleConfigurationYamlSwapper.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeHandler
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeHandler
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeHandler
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.provider.natived.builder.StoragePrivilegeHandler
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.authority.spi.AuthorityProvideAlgorithm
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.DefaultGlobalRuleConfigurationBuilder
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.DefaultGlobalRuleConfigurationBuilder
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.DefaultGlobalRuleConfigurationBuilder
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.DefaultGlobalRuleConfigurationBuilder
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.GlobalRuleBuilder
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.GlobalRuleBuilder
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.GlobalRuleBuilder
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.rule.builder.global.GlobalRuleBuilder
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.yaml.config.swapper.YamlRuleConfigurationSwapper
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.yaml.config.swapper.YamlRuleConfigurationSwapper
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.yaml.config.swapper.YamlRuleConfigurationSwapper
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/main/resources/META-INF/services/org.apache.shardingsphere.infra.yaml.config.swapper.YamlRuleConfigurationSwapper
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/checker/AuthorityCheckerTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/checker/AuthorityCheckerTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/checker/AuthorityCheckerTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/checker/AuthorityCheckerTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/merge/PrivilegeMergeTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilderTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilderTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilderTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/StoragePrivilegeBuilderTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandlerTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandlerTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandlerTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/MySQLPrivilegeHandlerTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandlerTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandlerTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandlerTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/OraclePrivilegeHandlerTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandlerTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandlerTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandlerTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/PostgreSQLPrivilegeHandlerTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandlerTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandlerTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandlerTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/natived/builder/dialect/SQLServerPrivilegeHandlerTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesProviderAlgorithmTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesProviderAlgorithmTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesProviderAlgorithmTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/simple/AllPrivilegesProviderAlgorithmTest.java
diff --git
a/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/simple/SchemaPrivilegesPermittedAuthorityProviderAlgorithmTest.java
b/shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/simple/SchemaPrivilegesPermittedAuthorityProviderAlgorithmTest.java
similarity index 100%
rename from
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-common/src/test/java/org/apache/shardingsphere/authority/provider/simple/SchemaPrivilegesPermittedAuthorityProviderAlgorithmTest.java
rename to
shardingsphere-kernel/shardingsphere-authority/shardingsphere-authority-core/src/test/java/org/apache/shardingsphere/authority/provider/simple/SchemaPrivilegesPermittedAuthorityProviderAlgorithmTest.java
diff --git
a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/pom.xml
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/pom.xml
index 207ba06..00dcf60 100644
---
a/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/pom.xml
+++
b/shardingsphere-mode/shardingsphere-mode-type/shardingsphere-cluster-mode/shardingsphere-cluster-mode-core/pom.xml
@@ -41,7 +41,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-authority-common</artifactId>
+ <artifactId>shardingsphere-authority-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
diff --git a/shardingsphere-proxy/shardingsphere-proxy-backend/pom.xml
b/shardingsphere-proxy/shardingsphere-proxy-backend/pom.xml
index 020b2be..7572dfe 100644
--- a/shardingsphere-proxy/shardingsphere-proxy-backend/pom.xml
+++ b/shardingsphere-proxy/shardingsphere-proxy-backend/pom.xml
@@ -119,7 +119,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-authority-common</artifactId>
+ <artifactId>shardingsphere-authority-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
diff --git a/shardingsphere-proxy/shardingsphere-proxy-common/pom.xml
b/shardingsphere-proxy/shardingsphere-proxy-common/pom.xml
index 2d296da..253f13c 100644
--- a/shardingsphere-proxy/shardingsphere-proxy-common/pom.xml
+++ b/shardingsphere-proxy/shardingsphere-proxy-common/pom.xml
@@ -74,7 +74,7 @@
</dependency>
<dependency>
<groupId>org.apache.shardingsphere</groupId>
- <artifactId>shardingsphere-authority-common</artifactId>
+ <artifactId>shardingsphere-authority-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>