-
Notifications
You must be signed in to change notification settings - Fork 53
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
fix(Spring CodeGen): switch to Spring boot 2.7 style in registering auto-configurations #1044
Conversation
@@ -139,13 +139,14 @@ private static void writeMetadataFile(GapicContext context, String path, JarOutp | |||
} | |||
|
|||
private static void writeSpringFactories(GapicContext context, JarOutputStream jos) { |
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.
Would this mean we need to rebrand this method and the exception message as well? (To something like writeAutoConfigRegistration
)
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.
ah-ha! Good catch.
Kudos, SonarCloud Quality Gate passed! |
…uto-configurations (#1044) Spring Boot 2.7 has introduced [changes to how auto-configurations](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#changes-to-auto-configuration) are registered. Both changes are backward compatible, but the older `spring.factories` style [will be removed in Spring Boot 3.0](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0.0-M5-Release-Notes#auto-configuration-registration). Also consider that Spring Boot 2.6.x goes out of support by 11-24-2022, switching this code to 2.7's new style.
chore: upgrade native image checks to graalvm-22.3.0 Source-Link: googleapis/synthtool@5e52896 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:27b1b1884dce60460d7521b23c2a73376cba90c0ef3d9f0d32e4bdb786959cfd Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Spring Boot 2.7 has introduced changes to how auto-configurations are registered. Both changes are backward compatible, but the older
spring.factories
style will be removed in Spring Boot 3.0.Also consider that Spring Boot 2.6.x goes out of support by 11-24-2022, switching this code to 2.7's new style.