Spring Cloud GCP

1.2.0 RC2

The Spring Cloud GCP project makes the Spring Framework a first-class citizen of Google Cloud Platform (GCP).

Features

The Spring Cloud GCP project offers the following features:

  • Spring Cloud GCP Pub/Sub, including Spring Integration Channel Adapters

  • Spring Cloud GCP Pub/Sub Stream Binder

  • Spring Resource Abstraction for Google Cloud Storage, including Spring Integration Channel Adapters

  • Spring Data Cloud SQL

  • Spring Data Cloud Spanner

  • Spring Data Cloud Datastore

  • Google Cloud Vision API Template

  • Google Cloud Stackdriver Logging & Tracing

  • Google Cloud Config (Beta)

Spring Initializr

There are three entries in Spring Initializr for Spring Cloud GCP.

GCP Support

The GCP Support entry contains auto-configuration support for every Spring Cloud GCP integration. Most of the auto-configuration code is only enabled if other dependencies are added to the classpath.

Spring Cloud GCP Starter Required dependencies

Config

org.springframework.cloud:spring-cloud-gcp-starter-config

Cloud Spanner

org.springframework.cloud:spring-cloud-gcp-starter-data-spanner

Cloud Datastore

org.springframework.cloud:spring-cloud-gcp-starter-data-datastore

Logging

org.springframework.cloud:spring-cloud-gcp-starter-logging

SQL - MySql

org.springframework.cloud:spring-cloud-gcp-starter-sql-mysql

SQL - PostgreSQL

org.springframework.cloud:spring-cloud-gcp-starter-sql-postgres

Trace

org.springframework.cloud:spring-cloud-gcp-starter-trace

Vision

org.springframework.cloud:spring-cloud-gcp-starter-vision

Security - IAP

org.springframework.cloud:spring-cloud-gcp-starter-security-iap

GCP Messaging

The GCP Messaging entry adds the GCP Support entry and all the required dependencies so that the Google Cloud Pub/Sub integration work out of the box.

GCP Storage

The GCP Storage entry adds the GCP Support entry and all the required dependencies so that the Google Cloud Storage integration work out of the box.

Code Samples

There are code samples available that demonstrate the usage of all our integration.

For example, the Vision API sample shows how to use spring-cloud-gcp-starter-vision to automatically configure Vision API clients.

Code Challenges

In a code challenge, you perform a task step by step, using one integration. There are a number of challenges available in the Google Developers Codelabs page.

Getting Started Guides

A Spring Getting Started guide on messaging with Spring Integration Channel Adapters for Google Cloud Pub/Sub is available from Spring Guides.

Quick start

Bootstrap your application with Spring Initializr.

Documentation

Each Spring project has its own; it explains in great details how you can use project features and what you can achieve with them.
1.2.0 RC2 PRE CURRENT Reference Doc. API Doc.
1.1.5 SNAPSHOT CURRENT Reference Doc. API Doc.
1.1.4 CURRENT GA Reference Doc. API Doc.
1.0.1 SNAPSHOT Reference Doc. API Doc.
1.0.0 GA Reference Doc. API Doc.

A few examples to try out: