Skip to content

chore(java-shared-config): migrate java-shared-config into monorepo and integrate parent POM#13339

Draft
jinseopkim0 wants to merge 2 commits into
mainfrom
migrate-java-shared-config
Draft

chore(java-shared-config): migrate java-shared-config into monorepo and integrate parent POM#13339
jinseopkim0 wants to merge 2 commits into
mainfrom
migrate-java-shared-config

Conversation

@jinseopkim0
Copy link
Copy Markdown
Contributor

This PR migrates the java-shared-config repository into the google-cloud-java monorepo, resolves a latent argument-limit bug in apply_versions.sh, and updates the foundational parent POM in sdk-platform-java-config to inherit from the new local module rather than external dependencies on Maven Central. Closes b/477663125.

@jinseopkim0 jinseopkim0 requested review from a team as code owners June 2, 2026 21:31
@jinseopkim0 jinseopkim0 marked this pull request as draft June 2, 2026 21:32
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 integrates the java-shared-config module into the monorepo, setting up its build configurations, Dockerfiles, and POM files, and updating parent references and dependency versions across other modules. The review feedback identifies a duplicate team reference in .github/CODEOWNERS and a portability issue with the mktemp command in generation/apply_versions.sh on macOS.

Comment thread .github/CODEOWNERS
/java-bigtable/ @googleapis/bigtable-team @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team
/java-firestore/ @googleapis/firestore-team @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team
/librarian.yaml @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team
/java-shared-config/ @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-java-team
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.

medium

There is a duplicate team reference @googleapis/cloud-sdk-java-team on this line. It should be @googleapis/cloud-sdk-librarian-team instead, matching the pattern of the other entries in this file.

/java-shared-config/ @googleapis/cloud-sdk-java-team @googleapis/cloud-sdk-librarian-team



SED_OPTIONS=""
SED_SCRIPT_FILE=$(mktemp)
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.

medium

Using mktemp without any arguments or templates is not portable and will fail on macOS (BSD mktemp), which requires a template argument. To ensure portability for developers running this script locally on macOS, use a fallback to mktemp -t.

Suggested change
SED_SCRIPT_FILE=$(mktemp)
SED_SCRIPT_FILE=$(mktemp 2>/dev/null || mktemp -t apply_versions.XXXXXX)

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 2, 2026

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.

1 participant