Spring Cloud GCP Cloud SQL PostgreSQL Starter

Spring Cloud GCP Starters

License

License

Categories

Categories

PostgreSQL Data Databases
GroupId

GroupId

org.springframework.cloud
ArtifactId

ArtifactId

spring-cloud-gcp-starter-sql-postgresql
Last Version

Last Version

1.2.8.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

Spring Cloud GCP Cloud SQL PostgreSQL Starter
Spring Cloud GCP Starters
Project URL

Project URL

https://github.com/spring-cloud/spring-cloud-gcp/tree/master/spring-cloud-gcp-starters/spring-cloud-gcp-starter-sql-postgresql
Project Organization

Project Organization

Pivotal Software, Inc.

Download spring-cloud-gcp-starter-sql-postgresql

How to add to project

<!-- https://jarcasting.com/artifacts/org.springframework.cloud/spring-cloud-gcp-starter-sql-postgresql/ -->
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-gcp-starter-sql-postgresql</artifactId>
    <version>1.2.8.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/org.springframework.cloud/spring-cloud-gcp-starter-sql-postgresql/
implementation 'org.springframework.cloud:spring-cloud-gcp-starter-sql-postgresql:1.2.8.RELEASE'
// https://jarcasting.com/artifacts/org.springframework.cloud/spring-cloud-gcp-starter-sql-postgresql/
implementation ("org.springframework.cloud:spring-cloud-gcp-starter-sql-postgresql:1.2.8.RELEASE")
'org.springframework.cloud:spring-cloud-gcp-starter-sql-postgresql:jar:1.2.8.RELEASE'
<dependency org="org.springframework.cloud" name="spring-cloud-gcp-starter-sql-postgresql" rev="1.2.8.RELEASE">
  <artifact name="spring-cloud-gcp-starter-sql-postgresql" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.springframework.cloud', module='spring-cloud-gcp-starter-sql-postgresql', version='1.2.8.RELEASE')
)
libraryDependencies += "org.springframework.cloud" % "spring-cloud-gcp-starter-sql-postgresql" % "1.2.8.RELEASE"
[org.springframework.cloud/spring-cloud-gcp-starter-sql-postgresql "1.2.8.RELEASE"]

Dependencies

compile (5)

Group / Artifact Type Version
org.springframework.cloud : spring-cloud-gcp-starter jar
org.springframework.boot : spring-boot-starter-jdbc jar
com.google.cloud.sql : postgres-socket-factory jar
org.postgresql : postgresql jar
org.slf4j : slf4j-api jar

test (4)

Group / Artifact Type Version
org.awaitility : awaitility jar 3.1.6
junit : junit jar
org.mockito : mockito-core jar
org.springframework.boot : spring-boot-starter-test jar

Project Modules

There are no modules declared in this project.

Main (Unit Tests) Main (Integration Tests)

Repo has moved!

This repository contains code for Spring Cloud GCP 1.2.x and below. Future work will be in our new repo, GoogleCloudPlatform/spring-cloud-gcp. We will continue to support 1.2.x (a.k.a. Hoxton) with critical bug fixes until the end of 2021, which is in line with the Spring Cloud Support Policy.

Read more about the Spring Cloud release train updates here.



Spring Framework on Google Cloud Platform

This project makes it easy for Spring users to run their applications on Google Cloud Platform. You can check our project website here.

For a deep dive into the project, refer to the Spring Cloud GCP 1.2 Reference Document or the latest Javadocs.

If you prefer to learn by doing, try taking a look at the Spring Cloud GCP sample applications or the Spring on GCP codelabs.

Currently, this repository provides support for:

If you have any other ideas, suggestions or bug reports, please use our GitHub issue tracker and let us know! Also, please take the Spring Cloud GCP 5 Minute Customer Survey to help us learn about your usage of the project. We would love to hear from you!

If you want to collaborate in the project, we would also love to get your Pull Requests. Before you start working on one, please take a look at our collaboration manual.

Spring Initializr

Spring Initializr contains Spring Cloud GCP auto-configuration support through the GCP Support entry.

GCP Messaging contains the Spring Cloud GCP messaging support with Google Cloud Pub/Sub working out of the box.

Similarly to GCP Messaging, GCP Storage contains the Google Cloud Storage support with no other dependencies needed.

Spring Cloud GCP Bill of Materials (BOM)

If you’re a Maven user, add our BOM to your pom.xml <dependencyManagement> section. This will allow you to not specify versions for any of the Maven dependencies and instead delegate versioning to the BOM.

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-gcp-dependencies</artifactId>
            <version>1.2.7.RELEASE</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

Spring Milestones Maven Repository

The latest non-GA Maven artifacts for the project are only available in the Spring Milestones repository. You will want to make sure that the repository is added to your pom.xml file or globally in your settings.xml file.

<repositories>
    <repository>
        <id>spring-milestones</id>
        <name>Spring Milestones</name>
        <url>https://repo.spring.io/milestone</url>
    </repository>
</repositories>

Spring Snapshots Maven Repository

We offer BUILD-SNAPSHOT versions that always reflect the latest code changes to the underlying GitHub repository for Spring Cloud GCP via the Spring Snapshots Repository:

<repositories>
    <repository>
        <id>spring-snapshots</id>
        <name>Spring Snapshots</name>
        <url>https://repo.spring.io/snapshot</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

For example, the 1.2.8.BUILD-SNAPSHOT is available from this repository.

Spring Boot Starters

Spring Boot greatly simplifies the Spring Cloud GCP experience. Our starters handle the object instantiation and configuration logic so you don’t have to.

Every starter depends on the GCP starter to provide critical bits of configuration, like the GCP project ID or OAuth2 credentials location. You can configure these as properties in, for example, a properties file:

spring.cloud.gcp.project-id=[YOUR_GCP_PROJECT_ID]
spring.cloud.gcp.credentials.location=file:[LOCAL_PRIVATE_KEY_FILE]
spring.cloud.gcp.credentials.scopes=[SCOPE_1],[SCOPE_2],[SCOPE_3]

These properties are optional and, if not specified, Spring Boot will attempt to automatically find them for you. For details on how Spring Boot finds these properties, refer to the documentation.

Note
If your app is running on Google App Engine or Google Compute Engine, in most cases, you should omit the spring.cloud.gcp.credentials.location property and, instead, let the Spring Cloud GCP Core Starter find the correct credentials for those environments.
org.springframework.cloud

Spring Cloud

Tools for building common patterns in distributed systems with Spring

Versions

Version
1.2.8.RELEASE
1.2.7.RELEASE
1.2.6.RELEASE
1.2.5.RELEASE
1.2.4.RELEASE
1.2.3.RELEASE
1.2.2.RELEASE
1.2.1.RELEASE
1.2.0.RELEASE
1.1.5.RELEASE
1.1.4.RELEASE
1.1.3.RELEASE
1.1.2.RELEASE
1.1.1.RELEASE
1.1.0.RELEASE
1.0.0.RELEASE