The spring-cloud-gcp Documentation
https://spring.io/projects/spring-cloud-gcp tells to use org.springframework.cloud:spring-cloud-gcp-dependencies:1.2.4
.
org.springframework.cloud:spring-cloud-gcp-dependencies:1.2.3.RELEASE has parent org.springframework.cloud:spring-cloud-dependencies-parent:2.3.0.RELEASE. This spring-cloud-dependencies-parent defines profiles ("central" and "spring") and repositories for the profiles.
spring-cloud-gcp-dependencies has dependencyManagement section that includes spring-cloud-gcp-starter-data-spanner
:
<version>1.2.3.RELEASE</version>
...
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-gcp-starter-data-spanner</artifactId>
<version>${project.version}</version>
</dependency>
This takes effect when user specify dependency of spring-cloud-gcp-starter-data-spanner as per the documentation.
spring-cloud-gcp-starter-data-spanner has parent org.springframework.cloud:spring-cloud-gcp-starters:1.2.3.RELEASE
Spring-cloud-gcp-starters has parent org.springframework.cloud:spring-cloud-gcp:1.2.3.RELEASE. It does not have any dependencyManagemnt section.
Spring-cloud-gcp has parent org.springframework.cloud:spring-cloud-build:2.3.0.RELEASE. Spring-cloud-gcp has many dependencyManagement and property definition. It imports org.springframework.cloud:spring-cloud-gcp-dependencies:1.2.3.RELEASE
.