Skip to content

ktorfit plugin still use old 'ksp' configuration internally for kotlin multiplatform #1030

@hmy65

Description

@hmy65

Ktorfit version

2.7.2

What happened and how can we reproduce this issue?

[plugins]
ktorfit = { id = "de.jensklingenberg.ktorfit", version.ref = "ktorfit" }
plugins {
    alias(libs.plugins.ktorfit)
}

Gradle complains:
The 'ksp' configuration is deprecated in Kotlin Multiplatform projects. Please use target-specific configurations like 'kspJvm' instead.

What did you expect to happen?

official documentation: https://kotlinlang.org/docs/ksp-multiplatform.html

somthing like:

dependencies {
    listOf(
        "kspCommonMainMetadata",
        "kspJvm",
        "kspAndroid",
        "kspIosArm64",
        "kspIosSimulatorArm64"
    ).forEach { add(it, libs.ktorfit.compiler) }
}

Is there anything else we need to know about?

@Foso
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions