Skip to content

Commit 6f8311e

Browse files
authored
fix(bigquery): remove duplicate test dependencies from google-cloud-bigquery pom (#14587)
## Why Every PR into `agentic-identities-bound-token` is currently failing CI (for example #14559 and #14557, about 35 jobs each) with: ``` [ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.cloud:google-cloud-storage:jar -> duplicate declaration of version (?) [ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.google.cloud:google-cloud-datacatalog:jar -> duplicate declaration of version 1.102.0-SNAPSHOT [ERROR] The build could not read 1 project ``` `java-bigquery/google-cloud-bigquery/pom.xml` declares `google-cloud-storage` and `google-cloud-datacatalog` twice in `<dependencies>`. This has been the case for a while, but Maven 3.9 only logged a `[WARNING]`. The GitHub `ubuntu-24.04` runner image `20261004` upgraded Maven from 3.9.16 to 3.10.0, which treats it as an error, so any job that loads the reactor now fails immediately. ## Change Remove the second declaration of each dependency (11 lines, one file): - `google-cloud-storage`: drops the later test-scoped entry. This is the same change as #14586 on `main`. - `google-cloud-datacatalog`: drops the second, identical test-scoped entry. `main` no longer has this dependency in this pom, so #14586 doesn't need it. ## Verification - `mvn help:effective-pom` on the module before and after: the effective `<dependencies>` section is identical. `google-cloud-storage` stays test-scoped because the parent's `dependencyManagement` sets `<scope>test</scope>`, and the two datacatalog entries were identical. - Each artifact now appears once in `<dependencies>`; the pom parses as valid XML.
1 parent 2d5f9ed commit 6f8311e

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

  • java-bigquery/google-cloud-bigquery

‎java-bigquery/google-cloud-bigquery/pom.xml‎

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,6 @@
162162
<scope>test</scope>
163163
<version>2.98.0-SNAPSHOT</version><!-- {x-version-update:proto-google-cloud-bigqueryconnection-v1:current} -->
164164
</dependency>
165-
<dependency>
166-
<groupId>com.google.cloud</groupId>
167-
<artifactId>google-cloud-storage</artifactId>
168-
<scope>test</scope>
169-
</dependency>
170165
<dependency>
171166
<groupId>org.junit.jupiter</groupId>
172167
<artifactId>junit-jupiter-api</artifactId>
@@ -192,12 +187,6 @@
192187
<artifactId>mockito-core</artifactId>
193188
<scope>test</scope>
194189
</dependency>
195-
<dependency>
196-
<groupId>com.google.cloud</groupId>
197-
<artifactId>google-cloud-datacatalog</artifactId>
198-
<scope>test</scope>
199-
<version>1.102.0-SNAPSHOT</version><!-- {x-version-update:google-cloud-datacatalog:current} -->
200-
</dependency>
201190
<dependency>
202191
<groupId>com.google.api.grpc</groupId>
203192
<artifactId>proto-google-cloud-datacatalog-v1</artifactId>

0 commit comments

Comments
 (0)