googleapis / googleapis/google-cloud-java

[java-bigquery] auto-value is included in the dependency

未关闭
#12,165 3 条评论 0 个 reaction 已指派 1 人 已被 @Neenu1995 认领 在 GitHub 查看
api: bigquery priority: p2 type: cleanup
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

It seems that the `auto-value` is included in the dependency, and it makes runtime images (e.g. shaded jar files) unexpectedly large.

[This package is used only in compilation time](https://github.com/google/auto/blob/main/value/userguide/index.md), so it is better to remove it from the runtime classpath.

#### Environment details

This issue is not related to the environment.

#### Steps to reproduce

1. Visit https://mvnrepository.com/artifact/com.google.cloud/google-cloud-bigquery/2.30.1 to see dependencies, or
2. run `./gradlew dependencies` or `mvn dependency:tree`

#### Any additional information below

User may apply a workaround as follows:

```kotlin
// build.gradle.kts
dependencies {
implementation("com.google.cloud:google-cloud-bigquery") {
exclude("com.google.auto.value", "auto-value")
}
}
```

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。