-
Notifications
You must be signed in to change notification settings - Fork 319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Spring Boot 2.7.x #1185
Conversation
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
…ode property\nReplacement available since 2.5 (https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.5-Release-Notes/)
… group changed), added tests
…supports the protocol
...va/com/google/cloud/spring/autoconfigure/sql/R2dbcCloudSqlEnvironmentPostProcessorTests.java
Outdated
Show resolved
Hide resolved
...va/com/google/cloud/spring/autoconfigure/sql/R2dbcCloudSqlEnvironmentPostProcessorTests.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
I see Spring Cloud GCP 3.4.0 has been released with support for Spring Boot 2.7, which is great news! I guess https://github.com/GoogleCloudPlatform/spring-cloud-gcp#compatibility-with-spring-project-versions should be updated to indicate support for Spring Boot 2.7 is now available in version 3.4.0? |
I'll send a pull request; waiting on the last prerequisite. |
Add valid driver versions for old R2DBC drivers.
With Spring Boot 2.7, the old R2DBC drivers for MySQL and Postgres were removed from the BOM (Spring Boot 2.7 release notes).
Spring Cloud GCP typically follows Spring Cloud, which supports both Spring Boot 2.6 and 2.7 in the same major version of their release trains. Additionally, we are not planning on releasing a major version, so the main goal is to not break existing users. This means keeping the old versions of drivers in Spring Cloud GCP R2DBC starters and managing the two drivers' version in Spring Cloud GCP BOM (
spring-cloud-gcp-dependencies
).Postgres:
io.r2dbc
toorg.postgres
. Package named stayed the same, so the drivers are technically mutually compatible. However, the new driver uses a constant introduced in R2DBC SPI 0.9 (LOCK_WAIT_TIMEOUT
), and so is not compatible with applications still on Spring Boot 2.6.x.0.8.12.RELEASE
) is safe for both Spring Boot 2.6 and 2.7.MySQL
I've tested 5 combinations:
0.8.12.RELEASE
driver that's included in the starter.Addresses a part of #1200.