Skip to content

fix(internal/librarian/java): collectModules should respect configs to skip certain modules#5983

Open
zhumin8 wants to merge 3 commits into
googleapis:mainfrom
zhumin8:fix-proto-grpc-pom
Open

fix(internal/librarian/java): collectModules should respect configs to skip certain modules#5983
zhumin8 wants to merge 3 commits into
googleapis:mainfrom
zhumin8:fix-proto-grpc-pom

Conversation

@zhumin8
Copy link
Copy Markdown
Contributor

@zhumin8 zhumin8 commented May 13, 2026

Respect configs (generate_proto_grpc, generate_gapic and generate_resource_names) to skip certain module generation when collecting expected modules. collectModules is used to identify new modules to add to versions.txt and to update pom.xml.
context #5730 (comment)

Fix #5730

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces conditional logic for generating Java modules in the librarian service. It updates the module discovery and collection processes to respect configuration flags such as GenerateGAPIC, GenerateResourceNames, and GenerateProtoGRPC, allowing for granular control over which artifacts (Client, Proto, or gRPC) are produced. Additionally, comprehensive test cases have been added to pom_test.go to verify these conditional generation paths. I have no feedback to provide as there were no review comments to evaluate.

@zhumin8 zhumin8 force-pushed the fix-proto-grpc-pom branch from 62c8aa2 to 15baea2 Compare May 13, 2026 18:08
@zhumin8 zhumin8 marked this pull request as ready for review May 13, 2026 20:16
@zhumin8 zhumin8 requested a review from a team as a code owner May 13, 2026 20:16
@zhumin8 zhumin8 requested a review from sofisl May 13, 2026 21:47
if err != nil {
return nil, err
if shouldGenerateClient {
clientDir := filepath.Join(libraryDir, libCoord.GAPIC.ArtifactID)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is it possible this isn't a path? if so should we check that before isPOMMissing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

java: generate for iam and iam-policy

2 participants