-
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
[DRAFT] - Code to generate spring autoconfig modules. (not intended to merge) #1030
Closed
Closed
Changes from all commits
Commits
Show all changes
107 commits
Select commit
Hold shift + click to select a range
ced6302
add ClassComposer to generate spring bean.
zhumin8 be4814a
add composer on top of class composer.
zhumin8 96288f2
add to generator and adding comments.
zhumin8 558f2c5
add conditionOnClass annotation, parameter not set yet.
zhumin8 c2dfbe0
update name for packaga and class produced.
zhumin8 fce0945
producing [name]_java_gapic_srcjar-spring.srcjar.
zhumin8 7051858
adding spring content to produced google-cloud-[name]-v1-java.tar.gz.
zhumin8 f9199fd
added private member and constructor to spring autoconfig composer. c…
zhumin8 8ba06f8
Merge branch 'main' into autoconfig-gen-draft2
zhumin8 fbdc282
use new lambdaExpr infer type feature.
zhumin8 7390d7a
adding writing spring.factories. also adjust output path to google-cl…
zhumin8 b937bb1
added RETRY_PARAM_DEFINITIONS map to generated code.
zhumin8 cc14a8c
added SpringPropertiesClassComposer and test. Added util method to Re…
zhumin8 5882774
added class annotation and interface to SpringProperties class. Also …
zhumin8 05befeb
come code cleanups and added 2 more needed class annotations.- with p…
zhumin8 1d16132
comment out not needed code for constructor.
zhumin8 25f7bb8
create CredentialsProvider Bean method.
zhumin8 0643085
create TransportChannelProvider Bean.
zhumin8 697d89c
building service client bean. Basic settings.
zhumin8 71b66e6
added 2 if statements and todo comments to service client bean.
zhumin8 7b67cfd
adding if statements to client bean creation.
zhumin8 37e5cfa
minor cleanup edits.
zhumin8 53400f6
move added spring composers to new package.
zhumin8 906f9bf
add expected generated property class to test.
zhumin8 a571639
cleanup unused code in test.:
zhumin8 25716ef
move additional code out of gapic RetrySettingsComposer.
zhumin8 f4aa900
separate out spring generator.
zhumin8 a45fd18
back out changes to protowriter/Writer and creat a copy for Spring code.
zhumin8 899a4a7
some cleanups: remove unused code, add comment reminder.
zhumin8 ee62131
Add let writer produce additional-spring-configuration-metadata.json.…
zhumin8 fe5baf1
fix spring.factories package name. fix transport condition to gen spr…
zhumin8 de183ed
messy wip. adding retry settings with null check to autoconfig.
zhumin8 db5af15
complete retry settings in autoconfig and changes in properties. clea…
zhumin8 63ec5d3
minor change: move generated metadate and package.info under spring f…
zhumin8 37be29c
back out unrelated change in RetrySettingsComposer.
zhumin8 bd1f309
Merge branch 'main' into autoconfig-gen-draft2
zhumin8 b0e2908
fix: getter/setters double to Double.
zhumin8 ada6e92
fix(Spring CodeGen): switch to Spring boot 2.7 style in registering a…
zhumin8 3cd3419
fix: Cleanups on code (#1054)
zhumin8 9f44215
fix(Spring CodeGen): Update missing and placeholder annotations (#1045)
emmileaf 8de6c5c
fix(Spring CodeGen): Use service-specific CredentialsProvider in anno…
emmileaf 2b11de7
test(Spring CodeGen): Set up golden file tests for spring class compo…
emmileaf 07dfa79
fix(Spring CodeGen): Update and move naming-related logic into utils …
emmileaf 1818d0b
feat(log): added log statements to gend autocfg (#1053)
diegomarquezp c45ec23
feat(Spring CodeGen): Add customized spring composer for package info…
emmileaf c51d51b
feat(Spring CodeGen): write pom.xml with SpringWriter. (#1057)
zhumin8 cb83057
test(spring): add tests for content-building methods in SpringWriter …
emmileaf 0019265
feat(SpringGen): adding extra annotations at the `SpringComposer` ste…
zhumin8 e754a7c
fix(deps): update dependency org.yaml:snakeyaml to v1.32 (#1037)
renovate-bot dba69f4
fix(deps): update dependency com.google.cloud:google-cloud-shared-dep…
renovate-bot ce93705
chore(deps): update dependency org.apache.maven.plugins:maven-shade-p…
renovate-bot d615305
fix(deps): update dependency org.yaml:snakeyaml to v1.33 (#1043)
renovate-bot e58bf9d
fix(deps): update dependency com.google.cloud:google-cloud-shared-dep…
renovate-bot 4b5eadb
fix: Get numeric value for Enum fields if it is configured as query p…
blakeli0 bd5599f
chore(deps): update dependency com.google.auto.value:auto-value to v1…
renovate-bot eb94f30
fix: update sample region tag to parse host instead of proto package …
alicejli c768691
deps: Upgrade protobuf to 3.21.7 (#1048)
blakeli0 3282e0f
chore(main): release 2.10.1 (#1036)
release-please[bot] 38010fd
fix: update regionTag to use service name (#1047)
alicejli aa1782d
fix(deps): update dependency com.google.cloud:google-cloud-shared-dep…
renovate-bot e8ee82f
chore(main): release 2.10.2 (#1067)
release-please[bot] 6774245
chore(deps): update dependency org.apache.maven.plugins:maven-shade-p…
renovate-bot 2ebe948
refactor: expose parsed api short name and version as fields in Servi…
emmileaf 5346eef
fix: fix REST transport client creation generated javadoc sample (#1077)
vam-google cd35be8
fix: fixes regionTag breakage (#1068)
alicejli 63b9bce
chore(main): release 2.10.3 (#1079)
release-please[bot] 9e4721f
fix(ast): add import generation for annotations on VariableExpr (#1076)
emmileaf 0bbfc59
test: update golden files after annotations import fix
emmileaf a8dfd80
fix: Revert "chore: merge main into autoconfig-gen-draft2" (#1083)
emmileaf 6b462cd
Merge branch 'main' into autoconfig-gen-draft2
emmileaf 9c8c638
test: update golden files after merging annotations import fix from main
emmileaf 38459cc
feat(comment): autoconfig gen draft2 javadoc2 (#1060)
diegomarquezp 4544c72
Merge branch 'main' into autoconfig-gen-draft2
diegomarquezp 5fb9091
fix(Spring CodeGen): To only include options to set to rest transport…
zhumin8 5f637cc
fix(spring): use parsed api shortname as libname (#1084)
emmileaf 86fd9dd
fix(Spring CodeGen): Add user-agent header to generated client for me…
zhumin8 c79dab2
fix(spring codegen): use client-library-artifact-id as pom artifactId…
zhumin8 b873b60
fix(spring): update setters for properties of type Duration (#1093)
emmileaf f877870
feat(bazel): detach spring bazel rules (#1065)
diegomarquezp 0f7d580
fix(spring): add parent and remove maven-jar-plugin from pom string. …
zhumin8 13290c2
fix(spring): eliminate raw-types and remove unnecessary cast (#1095)
burkedavison d5d626a
fix(spring): fix and refactor class names for autoconfiguration and p…
emmileaf ed4b39e
fix(Spring CodeGen): Add Spring dependencies to build files and use s…
zhumin8 8625e7c
fix(spring): fix write pom placeholders. (#1099)
zhumin8 8755403
feat(spring): use shared configuration (#1071)
diegomarquezp cc068c9
fix(spring): remove dependency versions that should be inherited. (#1…
zhumin8 dbb105e
feat: set logging level to trace (#1104)
diegomarquezp 59ecb5b
fix(spring): change @Generated description to spring specific. (#1103)
zhumin8 9fc2a5c
fix(spring): set autoconfig to be enabled by default. (#1107)
zhumin8 405e361
feat: service settings as a bean (#1110)
diegomarquezp 92e3bfa
fix(spring): Replace global properties with CredentialsProvider bean …
zhumin8 63291e0
build(spring): update spring branch with Bazel CI fix from main (#1164)
emmileaf d0b45cc
fix(spring): refactor retry settings to service and method-level nest…
emmileaf cb08241
changed parent and version, removed client library version. (#1141)
zhumin8 7f550b5
fix(spring): add javadoc comments for properties (#1171)
emmileaf 79a288f
fix: remove spring.auto from property prefix. (#1176)
zhumin8 52cf4a8
fix: add name to ConditionalOnMissingBean when creating bean (#1207)
zhumin8 62153dc
fix(spring): Separate out client settings bean and client bean commen…
zhumin8 9b7336d
fix(spring): add AutoConfigureAfter annotation (#1208)
emmileaf bfef416
fix(spring): limit retry settings configuration by method type (#1212)
emmileaf 31d4406
fix(spring): fix method javadoc missing @param and @return (#1226)
zhumin8 8736c61
fix(spring): use newHttpJsonBuilder in settings bean for REST transpo…
emmileaf a3d86b0
fix(spring): switch camelcase conversion logic to use JavaStyle (#1245)
emmileaf e06aa48
chore(spring): add release-please annotations to pom template (#1259)
emmileaf 26c2e12
fix(spring): fix client and settings class names in comments (#1277)
emmileaf 3f5db4d
fix(spring): update hasRestOption to exclude services with no rest-su…
emmileaf dcd0823
fix(spring): extend hasRestOption fix to properties composer and add …
emmileaf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# See https://github.com/bazelbuild/bazelisk | ||
USE_BAZEL_VERSION=4.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Changes in this file are mostly not needed anymore now that we do not plan to go through with the current post-processing steps.