Skip to content

Commit

Permalink
chore(deps): Make mysql-socket-factory-connector-j8 the explicit depe…
Browse files Browse the repository at this point in the history
…ndency (#1983)

Update spring-cloud-gcp projects to depend explicitly on mysql-socket-factory-connector-j-8, instead of
relying on the central maven repo to replace dependencies on mysql-socket-factory with
mysql-socket-factory-connector-j-8.

This change should not have any effect on the classpath of existing customer applications. Customers
are already using mysql-socket-factory-connector-j-8 due to the relocation directive for the mysql-socket-factory
dependency.

MySQL Connector/J 5.0.x is no longer under development and has significant security vulnerabilities.
We strongly recommend all users update to 8.0.x instead. See the following GitHub issue for more details: GoogleCloudPlatform/cloud-sql-jdbc-socket-factory#1243

Fixes #1982
  • Loading branch information
hessjcg committed Jun 27, 2023
1 parent 971f0b5 commit 8fbba39
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spring-cloud-gcp-autoconfigure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
<!-- Adds SocketFactory and MySQL driver to classpath -->
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>mysql-socket-factory</artifactId>
<artifactId>mysql-socket-factory-connector-j-8</artifactId>
<optional>true</optional>
</dependency>

Expand Down
2 changes: 1 addition & 1 deletion spring-cloud-gcp-dependencies/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@

<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>mysql-socket-factory</artifactId>
<artifactId>mysql-socket-factory-connector-j-8</artifactId>
<version>${cloud-sql-socket-factory.version}</version>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</dependency>
<dependency>
<groupId>com.google.cloud.sql</groupId>
<artifactId>mysql-socket-factory</artifactId>
<artifactId>mysql-socket-factory-connector-j-8</artifactId>
</dependency>
<dependency>
<groupId>com.mysql</groupId>
Expand Down

0 comments on commit 8fbba39

Please sign in to comment.