I'm writing a helper Gradle plugin for a Kotlin Mu...
# gradle
a
I'm writing a helper Gradle plugin for a Kotlin Multiplatform project, and I want to dynamically add a dependency any time the
org.jetbrains.kotlin:kotlin-stdlib
dependency is present. I thought I could do this with a ComponentMetadataRule, but I guess this doesn't work with the Kotlin platform type variant selector? I can see that the atomicfu dependency is added by running
./gradlew dependencies
, but code I have in commonMain doesn't compile because
import kotlinx.atomicfu.*
can't be found. I guess Gradle doesn't realise it needs to select the -jvm or -js variant? Can this be fixed, or is there another way?