diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 2efaf940..8bd10519 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -38,7 +38,6 @@ jobs:
files: '${{ github.workspace }}/app.yaml'
env:
env_variables.DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
- env_variables.INSTANCE_CONNECTION_NAME: ${{ secrets.INSTANCE_CONNECTION_NAME }}
env_variables.GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
env_variables.GCP_REGION: ${{ secrets.GCP_REGION }}
env_variables.SQL_INSTANCE_ID: ${{ secrets.SQL_INSTANCE_ID }}
diff --git a/app.yaml b/app.yaml
index 150a9db4..66010a6a 100644
--- a/app.yaml
+++ b/app.yaml
@@ -8,7 +8,6 @@ manual_scaling:
instances: 1
env_variables:
DATABASE_NAME:
- INSTANCE_CONNECTION_NAME:
GCP_PROJECT_ID:
GCP_REGION:
SQL_INSTANCE_ID:
diff --git a/pom.xml b/pom.xml
index 51859166..5e3b37c8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,6 +86,7 @@
${project.testresult.directory}/test
${project.testresult.directory}/integrationTest
+ 1.0.16
@@ -97,13 +98,6 @@
pom
import
-
- org.springframework.cloud
- spring-cloud-gcp-dependencies
- 1.2.2.RELEASE
- pom
- import
-
@@ -1096,8 +1090,9 @@
spring-boot-starter-undertow
- org.springframework.cloud
- spring-cloud-gcp-starter-sql-mysql
+ com.google.cloud.sql
+ mysql-socket-factory
+ ${mysql-socket-factory.version}
diff --git a/src/main/java/io/github/jhipster/online/service/JHipsterService.java b/src/main/java/io/github/jhipster/online/service/JHipsterService.java
index f46c5770..4f68256a 100644
--- a/src/main/java/io/github/jhipster/online/service/JHipsterService.java
+++ b/src/main/java/io/github/jhipster/online/service/JHipsterService.java
@@ -25,10 +25,7 @@
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
-import java.io.BufferedReader;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStreamReader;
+import java.io.*;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
diff --git a/src/main/resources/config/application-gcp.yml b/src/main/resources/config/application-gcp.yml
index ee2ba934..5d00ac33 100644
--- a/src/main/resources/config/application-gcp.yml
+++ b/src/main/resources/config/application-gcp.yml
@@ -14,20 +14,10 @@
# ===================================================================
spring:
- cloud:
- gcp:
- sql:
- enabled: true
- database-name: ${DATABASE_NAME}
- instance-connection-name: ${INSTANCE_CONNECTION_NAME}
datasource:
- hikari:
- data-source-properties:
- socketFactory: com.google.cloud.sql.mysql.SocketFactory
- cloudSqlInstance: ${GCP_PROJECT_ID}:${GCP_REGION}:${SQL_INSTANCE_ID}
- jdbcUrl: jdbc:mysql://google/${DATABASE_NAME}
- username: ${DATABASE_USERNAME}
- password: ${DATABASE_PASSWORD}
+ url: jdbc:mysql://google/${DATABASE_NAME}?cloudSqlInstance=${GCP_PROJECT_ID}:${GCP_REGION}:${SQL_INSTANCE_ID}&socketFactory=com.google.cloud.sql.mysql.SocketFactory&useSSL=false
+ username: ${DATABASE_USERNAME}
+ password: ${DATABASE_PASSWORD}
mail:
host: ${MAIL_HOST}
port: ${MAIL_PORT}