8000 Module name changes structure change by zhumin8 · Pull Request #1394 · GoogleCloudPlatform/spring-cloud-gcp · GitHub
[go: up one dir, main page]

Skip to content

Module name changes structure change #1394

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

Merged
merged 24 commits into from
Dec 29, 2022
Merged

Conversation

zhumin8
Copy link
Contributor
@zhumin8 zhumin8 commented Dec 15, 2022

This is part 1 of implementation for #1383.
Changes include:

  • Change folder name for generator scripts to 'spring-cloud-generator'
    • generation script changes to adapt to new folder names.
    • generate-one.sh change to add generated module to spring-cloud-gcp-starters
  • Generated modules target destination renamed to spring-cloud-previews folder.
    • Changes to pom.xml to make it an aggregator for generated modules.
  • Moved fmt-maven-plugin to spring-cloud-gcp/pom with default set to skip.
  • Fix spring-cloud-gcp-dependencies version inheritance issue.
  • spring-cloud-gcp-starters/pom.xml format change: replaced tabs with whitespaces, added comment marker for inserting generated modules.

Changes that needs to happen on the generator side:

@zhumin8 zhumin8 marked this pull request as ready for review December 20, 2022 18:28
zhumin8 added a commit to googleapis/sdk-platform-java that referenced this pull request Dec 21, 2022
This is part 2 of implementation for repo structural changes in [PoC](GoogleCloudPlatform/spring-cloud-gcp#1383).
Changes in Pom string:
- changed parent to `spring-cloud-gcp-starters` and version with "-preview" suffix
- removed client library version (should inherit from Libraries BOM).

Corresponding changes in spring-cloud-gcp: GoogleCloudPlatform/spring-cloud-gcp#1394
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.

One additional note that doesn't have to be a part of this PR: given the folder name changes, we should also update the github actions IT suppression from earlier (cc/ @diegomarquezp):

- 'generator/**'
- 'generated/**'

@@ -73,40 +73,46 @@ bazel build //$googleapis_folder:"$client_lib_name"_java_gapic_spring
cd -

## copy spring code to outside
mkdir -p ../generated
cp googleapis/bazel-bin/$googleapis_folder/"$client_lib_name"_java_gapic_spring-spring.srcjar ../generated
mkdir -p ../spring-cloud-previews
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: could we maybe use an exit code to condition these post-process / add to pom steps on the success status of the bazel build call above?

Copy link
Contributor Author
@zhumin8 zhumin8 Dec 22, 2022

Choose a reason for hiding this comment

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

Added exit on error option to address this for now (commit).
I will keep track of a separate task to improve error handling overall.

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

No Coverage information No Coverage information
0.0% 0.0% Duplication

@zhumin8 zhumin8 merged commit e206907 into main Dec 29, 2022
@zhumin8 zhumin8 deleted the module-name-changes-structure-change branch December 29, 2022 16:15
zhumin8 added a commit that referenced this pull request Jan 3, 2023
- Integration tests: update path to ignore affected by change in #1394 (review)
- Sonar: also disable sonar workflow for generated modules.
zhumin8 added a commit that referenced this pull request Jan 5, 2023
This folder/file is not needed anymore.
it must have fall through the cracks and missed in #1394.
diegomarquezp pushed a commit that referenced this pull request Jan 20, 2023
This folder/file is not needed anymore.
it must have fall through the cracks and missed in #1394.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0