Centrally Manage Dependency Versions for google-auth-library and the rest of the libraries in google-cloud-java
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 重构
- 描述清晰度
- 需要澄清
- 活跃度
- 冷清
- 技术栈
- java
- 领域
- build-system, release
调研方向
将 google-auth-library-java/pom.xml 中的依赖项属性与 sdk-platform-java/gapic-generator-java-pom-parent/pom.xml 中的依赖项属性进行比较,然后审查提出的三种方案。实现前需要 maintainer 作出决定;done 应意味着以一致的方式管理共享依赖项版本,同时不创建循环的 Maven Central staging 依赖项。
由索引模型根据 Issue 内容生成。
描述
The Problem: Auth Dependencies Are Managed Separately
Currently, the google-auth-library-java module manages its third-party dependencies (like Guava, Protobuf, Jackson, and JUnit) separately within its own local <properties> block. The rest of the monorepo manages identical dependencies inside gapic-generator-java-pom-parent.
This duplicates versions and increases the risk of dependency drift across the monorepo:
google-auth-library-java/pom.xmlsdk-platform-java/gapic-generator-java-pom-parent/pom.xml
Because com.google.auth and com.google.cloud deploy under different staging profiles on Maven Central, they are uploaded to separate staging repositories. If google-auth-library-java references unreleased in-development versions of com.google.cloud parent POMs or BOMs, a circular release staging deadlock is created at release time.
Proposed Solutions
Option 1: Extract Version Properties to google-cloud-shared-config
Move shared version properties (like <guava.version>) into the external parent POM com.google.cloud:google-cloud-shared-config from which both modules inherit.
- Pros:
- Single, definitive source of truth at the parent configuration level.
- Completely clean code structure with zero duplicate config.
- Cons:
- Rigid Release Pipeline: Upgrading a dependency (like an urgent security CVE patch) requires releasing a new version of
google-cloud-shared-configto Maven Central first, waiting for Central's CDN to sync, and then updating the parent references in both projects.
- Rigid Release Pipeline: Upgrading a dependency (like an urgent security CVE patch) requires releasing a new version of
Option 2: Extract Versions to a Common Base BOM Module (in Monorepo)
Introduce a lightweight, internal BOM module (e.g., base-shared-dependencies) in this monorepo containing only the third-party library versions. Both the auth library and client library BOMs would import it.
- Pros:
- Prevents circular staging deadlocks by maintaining a strictly acyclic dependency graph.
- Single source of truth located directly within the same monorepo.
- Cons:
- Release Staging Delay: Due to staging profile boundaries, releases must be built sequentially (waiting for the base BOM to fully sync to Maven Central before releasing the auth library, and then repeating before client libraries can release).
Option 3: Keep It as It Is and Use Automation to Update
Keep the properties blocks isolated inside their respective directories, but coordinate updates strictly using Renovate Bot or other CI scripting to bump them in parallel.
- Pros:
- Maximum Autonomy: The auth team can delay upgrades to preserve legacy client compatibility (like Firebase/Android) without blocking the client libraries.
- Zero Release Bottlenecks: No sequential staging wait-times; both projects release in parallel.
- Cons:
- Relies on external tooling and automation scripts to maintain consistency; human error/drift is still possible if manually edited.
- 主要语言
- Java
- 星标
- 2.1k
- 派生
- 1.2k
- 平均合并
- 2 天 14 小时
- 30 天内合并 PR
- 192
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
googleapis/google-cloud-java 的其他 Issue
-
[java-core] Timestamp.of(java.sql.Timestamp) is one second late for a time less than a second before the epoch可能已有人在做 @Vcode2407 于 4 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
googleapis/google-cloud-java#14636 ·
维护者通常 1 天内回复
-
[java-firestore] UserDataConverter encodes a pre-epoch Date with negative nanos, so the write is refused可能已有人在做 @wu-hui 于 23 天前认领。 未关闭priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 75/100
googleapis/google-cloud-java#14635 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[java-firestore] UserDataConverter throws IndexOutOfBoundsException on an empty __binary__ value可能已有人在做 @wu-hui 于 23 天前认领。 未关闭priority: p2 type: bug
难度 2/5 1-3 小时 新手友好度 74/100
googleapis/google-cloud-java#14634 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[java-firestore] CustomClassMapper.convertBigDecimal calls .abs() on Double, unintentionally flipping negative values to positive可能重新可做 @wu-hui 于 45 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 85/100
googleapis/google-cloud-java#14533 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Github CI failing when trying to install xmllint可能已有人在做 @blakeli0 于 81 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
googleapis/google-cloud-java#14132 · 1 条评论 ·
维护者通常 1 天内回复
查看 googleapis/google-cloud-java 的全部 Issue
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
-
难度 2/5 1 小时以内 新手友好度 84/100
cpp-best-practices/project_validator#251 ·
维护者通常 1 天内回复
-
backend enhancement
难度 2/5 半天 新手友好度 70/100
damodharg6/payledger#16 ·
-
[Bug]: An initiative list with no current entry logs an error on every change可能已有人在做 @dwizard0 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复