Skip to content
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: service settings as a bean #1110

Merged
merged 5 commits into from
Dec 14, 2022

Conversation

diegomarquezp
Copy link
Contributor

@diegomarquezp diegomarquezp commented Dec 5, 2022

Enables usage of [Service]Settings as a separate bean, as suggested in GoogleCloudPlatform/spring-cloud-gcp#1364 (comment)

Changes were based on POC by @zhumin8 and POC fixes by @emmileaf

@diegomarquezp diegomarquezp requested a review from zhumin8 December 5, 2022 20:32
@zhumin8 zhumin8 added the spring pr that's related to spring code gen, intend to merge into autoconfig-gen-draft2 branch. label Dec 7, 2022
Copy link
Contributor

@zhumin8 zhumin8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@diegomarquezp diegomarquezp merged commit 405e361 into autoconfig-gen-draft2 Dec 14, 2022
@diegomarquezp diegomarquezp deleted the service-settings-as-bean branch December 14, 2022 15:26
zhumin8 added a commit that referenced this pull request Dec 16, 2022
…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.
@diegomarquezp
Copy link
Contributor Author

@zhumin8 will do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spring pr that's related to spring code gen, intend to merge into autoconfig-gen-draft2 branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants