Centrally Manage Dependency Versions for google-auth-library and the rest of the libraries in google-cloud-java
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 25/100
- Tipo de issue
- Refatoração
- Clareza
- Precisa de esclarecimento
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- java
- Domínio
- build-system, release
Direção de pesquisa
Compare as propriedades das dependências em google-auth-library-java/pom.xml com as de sdk-platform-java/gapic-generator-java-pom-parent/pom.xml e, em seguida, analise as três abordagens propostas. É necessária uma decisão do maintainer antes da implementação; «done» deve significar que as versões das dependências compartilhadas são gerenciadas de forma consistente sem criar uma dependência circular de staging do Maven Central.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- Java
- Estrelas
- 2.1k
- Forks
- 1.2k
- Merge médio
- 2d 14h
- PRs com merge (30d)
- 192
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de googleapis/google-cloud-java
-
[java-core] Timestamp.of(java.sql.Timestamp) is one second late for a time less than a second before the epochTalvez já em andamento @Vcode2407 assumiu há 4 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
googleapis/google-cloud-java#14636 ·
Mantenedores costumam responder em até 1 dia
-
[java-firestore] UserDataConverter encodes a pre-epoch Date with negative nanos, so the write is refusedTalvez já em andamento @wu-hui assumiu há 23 dias. Abertapriority: p2 type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
googleapis/google-cloud-java#14635 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[java-firestore] UserDataConverter throws IndexOutOfBoundsException on an empty __binary__ valueTalvez já em andamento @wu-hui assumiu há 23 dias. Abertapriority: p2 type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
googleapis/google-cloud-java#14634 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[java-firestore] CustomClassMapper.convertBigDecimal calls .abs() on Double, unintentionally flipping negative values to positiveTalvez livre de novo @wu-hui assumiu há 45 dias e não há nenhum pull request aberto. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
googleapis/google-cloud-java#14533 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Github CI failing when trying to install xmllintTalvez já em andamento @blakeli0 assumiu há 81 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
googleapis/google-cloud-java#14132 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
Todas as issues de googleapis/google-cloud-java
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 80/100
finos/fluxnova-bpm-platform#387 ·
Mantenedores costumam responder em até 4 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100
-
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 84/100
cpp-best-practices/project_validator#251 ·
Mantenedores costumam responder em até 1 dia
-
backend enhancement
Dificuldade 2/5 Meio dia Facilidade para iniciantes 70/100
damodharg6/payledger#16 ·
-
[Bug]: An initiative list with no current entry logs an error on every changeTalvez já em andamento @dwizard0 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia