googleapis / googleapis/google-cloud-java

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

Đang mở
#12,165 3 bình luận 0 reaction 1 người được giao Được @Neenu1995 nhận Xem trên GitHub
api: bigquery priority: p2 type: cleanup
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

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")
}
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.