-
Notifications
You must be signed in to change notification settings - Fork 69
feat(spring): use shared configuration #1071
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
feat(spring): use shared configuration #1071
Conversation
f5de117 to
f1d5577
Compare
|
Force pushed a rebase on |
f1d5577 to
2f092e5
Compare
|
Another force push to match current changes of |
2f092e5 to
1b68fc3
Compare
1b68fc3 to
0b6d3bb
Compare
zhumin8
left a comment
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
src/main/java/com/google/api/generator/spring/composer/SpringAutoConfigClassComposer.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/api/generator/spring/composer/SpringAutoConfigClassComposer.java
Outdated
Show resolved
Hide resolved
src/main/java/com/google/api/generator/spring/utils/GlobalPropertiesUtils.java
Show resolved
Hide resolved
src/main/java/com/google/api/generator/spring/composer/SpringAutoConfigClassComposer.java
Show resolved
Hide resolved
emmileaf
left a comment
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.
Left comments on one of the golden files so it's easier to read, but please resolve in corresponding composer/util methods - thanks!
...java/com/google/api/generator/spring/composer/goldens/EchoSpringAutoConfigurationFull.golden
Outdated
Show resolved
Hide resolved
...java/com/google/api/generator/spring/composer/goldens/EchoSpringAutoConfigurationFull.golden
Outdated
Show resolved
Hide resolved
|
Kudos, SonarCloud Quality Gate passed! |
…1123) As discussed off-line, instead of depending on a new `global-properties` module, use `CredentialsProvider` bean from `spring-cloud-gcp-autoconfigure` instead. - Replace dependency from `core` to `autoconfigure` module. - Revert #1071 and implement changes shown in [poc](zhumin8/language_poc1#7) - Minor code cleanups and util method extracted from `SpringPropertiesClassComposer.java`. Note: #1071 and GoogleCloudPlatform/spring-cloud-gcp#1308 will be obsolete after this change. Also, conflicts needs to be resolved between this pr and #1110 depending on merging order.








Modification of generated autoconfig to use shared properties, as demonstrated here
It will have changes coming from
autoconfig-gen-draft2-array-annotation(should be reviewed first) since it depends on anonymous arrays for annotations.The main changes are in the autoconfig composer and updated golden files.