You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by ch...@apache.org on 2023/01/06 10:17:29 UTC

[kyuubi] branch master updated: [KYUUBI #4110] Update MySQL connector dependency name to `mysql-connector-j` in 8.0.31

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

chengpan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kyuubi.git


The following commit(s) were added to refs/heads/master by this push:
     new 48e93c9cf [KYUUBI #4110] Update MySQL connector dependency name to `mysql-connector-j` in 8.0.31
48e93c9cf is described below

commit 48e93c9cf2bab10f5372dd989319229a5fe0e5d6
Author: liangbowen <li...@gf.com.cn>
AuthorDate: Fri Jan 6 18:17:18 2023 +0800

    [KYUUBI #4110] Update MySQL connector dependency name to `mysql-connector-j` in 8.0.31
    
    ### _Why are the changes needed?_
    
    - bump MySQL connector version from `8.0.27` to `8.0.31`
    - From `8.0.31`, MySQL Java connector changed the dependency name from `mysql:mysql-connector-java` to `com.mysql:mysql-connector-j`, refer to docs: https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-installing-maven.html, and maven repo https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.0.31
    - connector version release note: https://github.com/mysql/mysql-connector-j/blob/release/8.0/CHANGES
    - MySQL connector is only used in test scope and not part of distribution
    
    ### _How was this patch tested?_
    - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible
    
    - [ ] Add screenshots for manual tests if appropriate
    
    - [x] [Run test](https://kyuubi.apache.org/docs/latest/develop_tools/testing.html#running-tests) locally before make a pull request
    
    Closes #4110 from bowenliang123/mysql-connector-j-8.0.31.
    
    Closes #4110
    
    c3682674 [liangbowen] bump mysql connector version to 8.0.31 and change to use new dependency name in com.mysql:mysql-connector-j
    
    Authored-by: liangbowen <li...@gf.com.cn>
    Signed-off-by: Cheng Pan <ch...@apache.org>
---
 externals/kyuubi-jdbc-engine/pom.xml     | 4 ++--
 integration-tests/kyuubi-jdbc-it/pom.xml | 4 ++--
 kyuubi-server/pom.xml                    | 4 ++--
 pom.xml                                  | 6 +++---
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/externals/kyuubi-jdbc-engine/pom.xml b/externals/kyuubi-jdbc-engine/pom.xml
index 899add2ee..8853cec64 100644
--- a/externals/kyuubi-jdbc-engine/pom.xml
+++ b/externals/kyuubi-jdbc-engine/pom.xml
@@ -66,8 +66,8 @@
         </dependency>
 
         <dependency>
-            <groupId>mysql</groupId>
-            <artifactId>mysql-connector-java</artifactId>
+            <groupId>com.mysql</groupId>
+            <artifactId>mysql-connector-j</artifactId>
             <scope>test</scope>
         </dependency>
 
diff --git a/integration-tests/kyuubi-jdbc-it/pom.xml b/integration-tests/kyuubi-jdbc-it/pom.xml
index 34ab73e32..0aef12fb3 100644
--- a/integration-tests/kyuubi-jdbc-it/pom.xml
+++ b/integration-tests/kyuubi-jdbc-it/pom.xml
@@ -95,8 +95,8 @@
                         <configuration>
                             <artifactItems>
                                 <artifactItem>
-                                    <groupId>mysql</groupId>
-                                    <artifactId>mysql-connector-java</artifactId>
+                                    <groupId>com.mysql</groupId>
+                                    <artifactId>mysql-connector-j</artifactId>
                                     <version>${mysql.jdbc.version}</version>
                                     <overWrite>true</overWrite>
                                     <outputDirectory>${project.build.directory}</outputDirectory>
diff --git a/kyuubi-server/pom.xml b/kyuubi-server/pom.xml
index 1e4e785ea..84901a866 100644
--- a/kyuubi-server/pom.xml
+++ b/kyuubi-server/pom.xml
@@ -474,8 +474,8 @@
         </dependency>
 
         <dependency>
-            <groupId>mysql</groupId>
-            <artifactId>mysql-connector-java</artifactId>
+            <groupId>com.mysql</groupId>
+            <artifactId>mysql-connector-j</artifactId>
             <scope>test</scope>
         </dependency>
 
diff --git a/pom.xml b/pom.xml
index c8c4a3b2b..a41160bc5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -169,7 +169,7 @@
         <kudu.version>1.15.0</kudu.version>
         <ldapsdk.version>6.0.5</ldapsdk.version>
         <log4j.version>2.19.0</log4j.version>
-        <mysql.jdbc.version>8.0.27</mysql.jdbc.version>
+        <mysql.jdbc.version>8.0.31</mysql.jdbc.version>
         <netty.version>4.1.84.Final</netty.version>
         <parquet.version>1.10.1</parquet.version>
         <phoenix.version>6.0.0</phoenix.version>
@@ -1484,8 +1484,8 @@
             </dependency>
 
             <dependency>
-                <groupId>mysql</groupId>
-                <artifactId>mysql-connector-java</artifactId>
+                <groupId>com.mysql</groupId>
+                <artifactId>mysql-connector-j</artifactId>
                 <version>${mysql.jdbc.version}</version>
             </dependency>