Skip to content

fix(internal/librarian/java): pass gapic option generate-version-java to gapic generator#5923

Merged
zhumin8 merged 2 commits into
googleapis:mainfrom
zhumin8:java-gapic-new-flag
May 8, 2026
Merged

fix(internal/librarian/java): pass gapic option generate-version-java to gapic generator#5923
zhumin8 merged 2 commits into
googleapis:mainfrom
zhumin8:java-gapic-new-flag

Conversation

@zhumin8
Copy link
Copy Markdown
Contributor

@zhumin8 zhumin8 commented May 8, 2026

Added the generate-version-java flag to resolveGAPICOptions in generate.go to enable generation of Version.java by default. This is a new flag introduced in googleapis/google-cloud-java#12955, intended to pass uniformly for all open source generation.

Fix #5820

gemini-code-assist[bot]

This comment was marked as outdated.

@zhumin8 zhumin8 force-pushed the java-gapic-new-flag branch from 12c25fd to e5b7998 Compare May 8, 2026 15:45
@zhumin8
Copy link
Copy Markdown
Contributor Author

zhumin8 commented May 8, 2026

/gemini review

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 modifies the Java GAPIC generation process to include the "generate-version-java" option, which ensures the generation of the Version.java file. Corresponding test cases in internal/librarian/java/generate_test.go were updated to include this new option in their expected output. I have no feedback to provide.

@zhumin8 zhumin8 marked this pull request as ready for review May 8, 2026 16:03
@zhumin8 zhumin8 requested a review from a team as a code owner May 8, 2026 16:03
@zhumin8 zhumin8 enabled auto-merge (squash) May 8, 2026 19:27
@zhumin8 zhumin8 merged commit 47fab8b into googleapis:main May 8, 2026
26 of 28 checks passed
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: pass in new flag generate_version_java to generate

2 participants