androidkotlinkapt

kapt.use.worker.api is deprecated


After build I get this warning:

'kapt.use.worker.api' is deprecated and scheduled to be removed in Kotlin 1.8 release.

Knowing that I have in my gradle.properties :

kapt.use.worker.api=true

and in my Module level build.gradle :

apply plugin: 'kotlin-kapt'

then, what is the alternative to the deprecated line ?


Solution

  • This option is deprecated and you should simply remove it from your gradle.properties.

    That doesn't break kapt, it is happening to continue supporting next versions of the JDK.

    https://youtrack.jetbrains.com/issue/KT-48827/Remove-kaptuseworkerapi-property