Skip to content

Apply kotlin version compat#9322

Open
yschimke wants to merge 2 commits intosquare:masterfrom
yschimke:kotlin_compat
Open

Apply kotlin version compat#9322
yschimke wants to merge 2 commits intosquare:masterfrom
yschimke:kotlin_compat

Conversation

@yschimke
Copy link
Collaborator

@yschimke yschimke commented Feb 8, 2026

Copy the approach from Okio.

square/okio#1770

Closes #9032

Copy the approach from Okio.
@yschimke
Copy link
Collaborator Author

yschimke commented Feb 8, 2026

@JakeWharton is this correct for matching Okio?

Copy link
Collaborator

@JakeWharton JakeWharton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

}

extensions.configure<TapmocExtension> {
// Fail the build if any api dependency exposes incompatible Kotlin metadata, Kotlin stdlib or Java bytecode version.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Fail the build if any api dependency exposes incompatible Kotlin metadata, Kotlin stdlib or Java bytecode version.
// Fail the build if any api dependency exposes incompatible Kotlin metadata, Kotlin stdlib, or Java bytecode version.

One of my hills...


# Set to lower version than KGP version to maximize compatibility
# Default to matching okio
kotlinCoreLibrariesVersion = "2.1.21"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason to define this here rather than at the sole usage site?

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.

Incompatible Kotlin Version Error with OkHttp v5.1.0

2 participants