Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 ?

like image 355
Ab.Ab Avatar asked May 19 '26 16:05

Ab.Ab


1 Answers

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

like image 173
Guillaume Cottenceau Avatar answered May 21 '26 06:05

Guillaume Cottenceau



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!