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(spring): use shared configuration #1071

Merged

Conversation

diegomarquezp
Copy link
Contributor

@diegomarquezp diegomarquezp commented Oct 25, 2022

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.

@diegomarquezp diegomarquezp changed the title Autoconfig gen draft2 shared config feat(spring): use shared configuration Oct 25, 2022
@diegomarquezp diegomarquezp force-pushed the autoconfig-gen-draft2-shared-config branch from f5de117 to f1d5577 Compare October 26, 2022 19:35
@diegomarquezp
Copy link
Contributor Author

Force pushed a rebase on autoconfig-gen-draf2-array-annotation

@diegomarquezp diegomarquezp force-pushed the autoconfig-gen-draft2-shared-config branch from f1d5577 to 2f092e5 Compare October 31, 2022 16:53
@diegomarquezp
Copy link
Contributor Author

Another force push to match current changes of autoconfig-gen-draft2-array-annotation

@diegomarquezp diegomarquezp added the spring pr that's related to spring code gen, intend to merge into autoconfig-gen-draft2 branch. label Nov 2, 2022
@diegomarquezp diegomarquezp force-pushed the autoconfig-gen-draft2-shared-config branch from 2f092e5 to 1b68fc3 Compare November 14, 2022 21:26
@diegomarquezp diegomarquezp force-pushed the autoconfig-gen-draft2-shared-config branch from 1b68fc3 to 0b6d3bb Compare November 14, 2022 21:35
@diegomarquezp diegomarquezp marked this pull request as ready for review November 14, 2022 21:44
@diegomarquezp diegomarquezp requested review from a team as code owners November 14, 2022 21:44
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

Copy link
Contributor

@emmileaf emmileaf left a 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!

@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 12 Code Smells

99.1% 99.1% Coverage
0.0% 0.0% Duplication

@diegomarquezp diegomarquezp merged commit 8755403 into autoconfig-gen-draft2 Nov 24, 2022
@diegomarquezp diegomarquezp deleted the autoconfig-gen-draft2-shared-config branch November 24, 2022 17:16
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.
suztomo pushed a commit that referenced this pull request Mar 21, 2023
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.

3 participants