From 396eb311b5842b14e67364cb5943ac409a263fa9 Mon Sep 17 00:00:00 2001 From: Min Zhu Date: Wed, 1 May 2024 11:05:51 -0400 Subject: [PATCH] fix(deps): update cloud-sql-socket-factory.version to v1.16.0 (#2643) (#2655) * fix(deps): update cloud-sql-socket-factory.version to v1.16.0 * chore: remove unused import Co-authored-by: Tatiane Tosta <91583351+ttosta-google@users.noreply.github.com> Co-authored-by: Lawrence Qiu --- .../autoconfigure/sql/CloudSqlEnvironmentPostProcessor.java | 4 ++-- spring-cloud-gcp-dependencies/pom.xml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spring-cloud-gcp-autoconfigure/src/main/java/com/google/cloud/spring/autoconfigure/sql/CloudSqlEnvironmentPostProcessor.java b/spring-cloud-gcp-autoconfigure/src/main/java/com/google/cloud/spring/autoconfigure/sql/CloudSqlEnvironmentPostProcessor.java index e77aff6c37..b8e2d96880 100644 --- a/spring-cloud-gcp-autoconfigure/src/main/java/com/google/cloud/spring/autoconfigure/sql/CloudSqlEnvironmentPostProcessor.java +++ b/spring-cloud-gcp-autoconfigure/src/main/java/com/google/cloud/spring/autoconfigure/sql/CloudSqlEnvironmentPostProcessor.java @@ -16,7 +16,7 @@ package com.google.cloud.spring.autoconfigure.sql; -import com.google.cloud.sql.core.CoreSocketFactory; +import com.google.cloud.sql.ConnectorRegistry; import java.util.HashMap; import java.util.Map; import org.apache.commons.logging.Log; @@ -83,7 +83,7 @@ public void postProcessEnvironment( CredentialsPropertiesSetter.setCredentials(sqlProperties, propertiesRetriever.getGcpProperties()); // support usage metrics - CoreSocketFactory.setApplicationName( + ConnectorRegistry.addArtifactId( "spring-cloud-gcp-sql/" + this.getClass().getPackage().getImplementationVersion()); } } diff --git a/spring-cloud-gcp-dependencies/pom.xml b/spring-cloud-gcp-dependencies/pom.xml index cd5fea7c83..37a3331e44 100644 --- a/spring-cloud-gcp-dependencies/pom.xml +++ b/spring-cloud-gcp-dependencies/pom.xml @@ -35,7 +35,7 @@ 26.38.0 - 1.14.1 + 1.18.0 1.0.5.RELEASE 1.3.0