Skip to content

okhttp 5 Kotlin metadata is too new for "compatible" Gradle versions #1131

@3flex

Description

@3flex

This plugin uses okhttp 5. This is built with Kotlin 2.2.0 (with language version 2.2).

Although this plugin sets language version 1.8, the dependency on okhttp means users must have a Gradle version that embeds a Kotlin version that is compatible with metadata version 2.2 to avoid issues.

In default configurations this is not an issue. Gradle 8.5 introduced a new flag to disable skipping these checks: org.gradle.kotlin.dsl.skipMetadataVersionCheck. When this is set to false these metadata compatibility checks are no longer skipped as they have been in previous versions, and this plugin cannot be used in Gradle versions older than 9.0.0.

Options:

  • Bump minimum Gradle version to 9.0 which embeds Kotlin 2.2
  • Downgrade okhttp to 4.12
  • Use a different library

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions