I see a number of warnings in KMP about `android` ...
# eap
z
I see a number of warnings in KMP about
android
being replaced by
androidTarget
, but strangely it seems Gradle kotlin DSL only sees Kotlin 1.8.21's plugin sources. At runtime it obviously appears to be 1.9.0-Beta, but I’m unable to compile against 1.9.0-Beta APIs because of the wrong indexing. Should I file this on youtrack or would this be a gradle issue? Repro - https://github.com/slackhq/circuit/pull/643
Copy code
w: Please use `androidTarget` function instead of `android` to configure android target inside `kotlin { }` block.
See the details here: <https://kotl.in/android-target-dsl>
👀 1
youtrack 1
image.png
a
@Anton Mefodichev please take a look
a
I have created a ticket - KTIJ-25677 Thank you!
a
It looks like
baselineprofile
plugin somehow forces Gradle to analyse the build script file with the bundled in the Gradle Kotlin version.
z
Interesting. Could that be because it declares an implementation/api dependency on KGP instead of compileOnly?
I think it's more than just an IJ issue, gradle also uses the wrong version if I don't have the profile plugin commented out now
I think this is a bug with the plugin, I can work around it by excluding the baseline profile plugin’s transitive agp/kgp dependencies