From 67d54f0a7437ffd38aab17f8d98dc75e170007b2 Mon Sep 17 00:00:00 2001 From: Tatiane Tosta <91583351+ttosta-google@users.noreply.github.com> Date: Wed, 28 Feb 2024 11:58:20 -0500 Subject: [PATCH] fix(deps): update cloud-sql-socket-factory.version to v1.16.0 (#2643) * fix(deps): update cloud-sql-socket-factory.version to v1.16.0 * chore: remove unused import --- .../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 84f951dcc5..0d0c336f3f 100644 --- a/spring-cloud-gcp-dependencies/pom.xml +++ b/spring-cloud-gcp-dependencies/pom.xml @@ -35,7 +35,7 @@ 26.33.0 - 1.14.1 + 1.16.0 1.0.4.RELEASE 1.3.0