Comment on page
Spring Cloud GCP
Spring Cloud GCP contains a set of easy to use starters/autoconfigurations that allow you to easily connect and adopt GCP services.
Spring Cloud GCP is part of the Spring Cloud release train.
Even though Spring Cloud GCP is part of the Spring Cloud release train, it doesn't mean that you need to use any Spring Cloud features (Eureka, Config Server, etc.). The release train helps manage dependency versions so that you don't need to specify versions. It avoids having incompatible dependency versions, and eliminates dependency conflicts.
A short demo video of Spring Cloud GCP
Add the GCP Support dependency
Or, generate the project using
curl https://start.spring.io/starter.zip \
-d dependencies=web,cloud-gcp,lombok \
-d bootVersion=2.3.1.RELEASE \
Unpack the downloaded zip file:
The generated project will include Spring Cloud release train BOM.
If you want to add Spring Cloud GCP to existing project, simply add Spring Cloud release train configuration. Different Spring Boot version is compatible with different Spring Cloud releases.
Add the compatible Spring Cloud BOM version to your project:
apply plugin: "io.spring.dependency-management"
A BOM is a Bill of Material, when imported, you can specify dependencies managed by the BOM without explicitly specifying a version for that dependency. Using the Spring Cloud BOM will allow you to use all Google Cloud Client Libraries and Spring Cloud GCP libraries without explicitly specifying a version.
Spring Cloud GCP supports many GCP services using de-facto Spring abstraction layers.