Spring Cloud GCP

The Spring Cloud GCP project brings the familiar Spring programming model to Google Cloud Platform APIs.

Quick Start
Fork me on GitHub

The Spring Cloud GCP project is currently in Alpha stage and improvements are being added to the published artifact on a daily basis.

We plan on creating a Milestone release soon. Until then, the Spring Cloud GCP project is available through Pivotal's Maven snapshot repository.


The Spring Cloud GCP project offers the following features:

  • Bill of Materials (BOM) for dependency version management

  • Spring message sending abstraction for Google Cloud Pub/Sub, PubSubTemplate

  • Spring Resource abstraction for Google Cloud Storage objects

  • Spring Integration channel adapters for Google Cloud Pub/Sub

  • Spring Boot Starters

    • Core GCP functionality like GCP project ID and credentials

    • Spring Cloud Config through Google Runtime Config API

    • Google Cloud Pub/Sub

    • Google Cloud SQL

    • Google Cloud Storage

    • Spring Cloud Sleuth integration with Google Stackdriver Trace

  • Code samples

Quick Start


The recommended way to get started using spring-cloud-gcp in your project is with a dependency management system – the snippet below can be copied and pasted into your build. Need help? See our getting started guides on building with Maven and Gradle.