Skip to content

Access the Kotlin metadata API through reflection.#1575

Closed
copybara-service[bot] wants to merge 1 commit intomainfrom
test_main_556951184
Closed

Access the Kotlin metadata API through reflection.#1575
copybara-service[bot] wants to merge 1 commit intomainfrom
test_main_556951184

Conversation

@copybara-service
Copy link
Contributor

Access the Kotlin metadata API through reflection.

This means we don't need a dependency on that API when building AutoValue. Therefore users can freely supply the version of the API that corresponds to the actual Kotlin version they are using. The downside is that they may need to add that dependency explicitly when previously they were getting it through AutoValue. (But possibly getting the wrong version.)

Fixes #1574.

RELNOTES=AutoValue no longer has an explicit dependency on the Kotlin Metadata API. You may need to add an explicit dependency on `org.jetbrains.kotlinx:kotlinx-metadata-jvm. The reason for this change is to avoid problems that occurred when the version of the API that AutoValue bundles was different from the version that the user code expected. See #1574.

This means we don't need a dependency on that API when building AutoValue. Therefore users can freely supply the version of the API that corresponds to the actual Kotlin version they are using. The downside is that they may need to add that dependency explicitly when previously they were getting it through AutoValue. (But possibly getting the wrong version.)

Fixes #1574.

RELNOTES=AutoValue no longer has an explicit dependency on the Kotlin Metadata API. **You may need to add an explicit dependency on `org.jetbrains.kotlinx:kotlinx-metadata-jvm.** The reason for this change is to avoid problems that occurred when the version of the API that AutoValue bundles was different from the version that the user code expected. See #1574.
PiperOrigin-RevId: 556951184
@copybara-service copybara-service bot closed this Sep 16, 2025
@copybara-service copybara-service bot deleted the test_main_556951184 branch September 16, 2025 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auto-value 1.10.2 breaks compatibility with Kotlin 1.6

1 participant