spring-attic / spring-cloud-gcp

Integration for Google Cloud Platform APIs with Spring
Apache License 2.0
704 stars 696 forks source link

Upgrade GCP Library Versions #2644

Closed dzou closed 3 years ago

dzou commented 3 years ago

Upgrades the GCP Library versions.

Had to manually override the version of spanner to 4.0.0 because it includes a bug fix for user-agent headers. Once the libraries-bom catches up to the latest spanner version we can remove the override.

Will cherrypick to new repo and create an issue to track the dep override if satisfactory.

Also com.google.api-client no longer needs to be managed manually, so removed.

<dependency>    
    <groupId>com.google.api-client</groupId>    
    <artifactId>google-api-client</artifactId>  
    <version>${google-api-client.version}</version> 
</dependency>
dzou commented 3 years ago

Do we have any versions to update in root pom.xml as well?

Yeah, I will upgrade Spring versions in a separate PR. I'll keep this one GCP dependencies only so it can easily be cherrypicked to the new repo.

dzou commented 3 years ago

Hm ended up not being able to get version 16.4.0 to work. I decided to upgrade to version 16.2.0 which is the latest version that does not have that breaking change with the headers. Let's see if this works.