Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BigQuery: google-cloud-bigquery 2.31.0 breaks compatibility with Kotlin 1.6 via dependency on auto-value 1.10.2 #2852

Closed
breun opened this issue Aug 15, 2023 · 4 comments
Assignees
Labels
api: bigquery Issues related to the googleapis/java-bigquery API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: process A process-related concern. May include testing, release, or the like.

Comments

@breun
Copy link

breun commented Aug 15, 2023

Environment details

  • OS type and version: macOS 13.5
  • Java version: 17

Steps to reproduce

  1. Use com.google.cloud:google-cloud-bigquery 2.31.0 in a Kotlin 1.6 project
  2. Project compilation fails with:
    [ERROR] /path/to/.m2/repository/com/google/auto/value/auto-value/1.10.2/auto-value-1.10.2.jar!/META-INF/kotlin-stdlib-common.kotlin_module: (-1, -1) Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.

However, with google-cloud-bigquery 2.30.1 it works.

It seems this is caused by the update to auto-value 1.10.2, which broke compatibility with Kotlin 1.6. It looks like auto-value is exploring a solution that might restore compatibility with these Kotlin versions.

I encountered this issue while using Spring Cloud GCP 3.6.1 or later, because that is the first version that (transitively) includes google-cloud-bigquery 2.31.0. See here for a bug report with a sample reproduction project that demonstrates this issue.

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/java-bigquery API. label Aug 15, 2023
@Neenu1995
Copy link
Contributor

Hi @breun ,
Thanks for bringing this to our attention.

I see the auto-value team is working on it. When auto-value release a fix, the bigquery library will upgrade and release.

@Neenu1995
Copy link
Contributor

@suztomo FYI

@Neenu1995 Neenu1995 added priority: p3 Desirable enhancement or fix. May not be included in next release. type: process A process-related concern. May include testing, release, or the like. labels Aug 15, 2023
@Neenu1995 Neenu1995 self-assigned this Aug 15, 2023
@eamonnmcmanus
Copy link

Updating to the just-released AutoValue 1.10.3 should fix this problem.

@breun breun changed the title BigQuery: google-cloud-bigquery 2.31.0 breaks compatibility with Kotlin 1.6 / 1.7 via dependency on auto-value 1.10.2 BigQuery: google-cloud-bigquery 2.31.0 breaks compatibility with Kotlin 1.6 via dependency on auto-value 1.10.2 Aug 16, 2023
@obada-ab
Copy link
Member

The latest release has updated dependencies and uses auto-value 1.10.4, closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/java-bigquery API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: process A process-related concern. May include testing, release, or the like.
Projects
None yet
Development

No branches or pull requests

4 participants