Spring Cloud GCP

1.1.0

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

Currently, Spring Cloud GCP lets you leverage the power and simplicity of the Spring framework to:

  • Publish and subscribe from Google Cloud Pub/Sub topics

  • Configure Spring JDBC with a few properties to use Google Cloud SQL

  • Write and read from Spring Resources backed up by Google Cloud Storage

  • Exchange messages with Spring Integration using Google Cloud Pub/Sub on the background

  • Trace the execution of your app with Spring Cloud Sleuth and Google Stackdriver Trace

  • Configure your app with Spring Cloud Config, backed up by the Google Runtime Configuration API

  • Consume and produce Google Cloud Storage data via Spring Integration GCS Channel Adapters

Features

The Spring Cloud GCP project offers the following features:

  • Bill of Materials (BOM) for dependency version management

  • Spring Cloud GCP Pub/Sub, including PubSubTemplate

  • Spring Resource Abstraction for Google Cloud Storage

  • Spring Integration Channel Adapters for Google Cloud Pub/Sub and Google Cloud Storage

  • Spring Cloud Stream Binder for Pub/Sub

  • Spring Data Spanner (BETA)

  • Spring Boot starters

  • GCP Support

  • Google Cloud Config (BETA)

  • Google Cloud Spanner (BETA)

  • Google Cloud Logging

  • Google Cloud Pub/Sub

  • Google Cloud SQL

  • Google Cloud Storage

  • Stackdriver Trace with Spring Cloud Sleuth

Getting Started

There are many available resources to get you up to speed with our libraries as quickly as possible.

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

  • GCP Support

  • GCP Messaging

  • GCP Storage

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

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.

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.

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.

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.1.0 CURRENT GA Reference Doc. API Doc.
1.1.1 SNAPSHOT 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: