After updating to Kotlin 2.3.0 I'm getting the mes...
# multiplatform
s
After updating to Kotlin 2.3.0 I'm getting the message
warning: The 'org.jetbrains.kotlin.multiplatform' plugin deprecated compatibility with Android Gradle plugin: 'com.android.library'
. I'm waiting for AGP 9.0.0 to migrate. Is there any way to disable this warning in the interim?
m
this has been an issue since 2.3.0-Beta2
AGP deprecated the usage of
com.android.library
on KMP and suggested replacing it with
com.android.kotlin.multiplatform.library
your best course of action is to tolerate the warning until you can perform the official migration
or you would have to ignore all deprecation warnings, which isn't something I would recommend
if you still wish to do that then simply
# In gradle.properties
org.gradle.warning.mode=none
s
Thanks. I might do that until I can switch to AGP 9 and the new plugin. Still waiting on a few other libraries to catch up.
e
To suppress this specific warning, you could add
kotlin.suppressGradlePluginWarnings=NonKmpAgpIsDeprecated
into your project
gradle.properties
file.
m
@Emil Flach I looked forever for a suppress for that I found nothing, where is that mentioned and how long has it been a thing 😅
kodee sad 1
t
initially it was planned to release AGP 9 before Kotlin 2.3.0, but it was delayed
👍 1
@Moe currently it is undocumented as it is hard to derive diagnostic id without looking into KGP code. We will think about better approach to this
👍 1