yes, itβs possible π
at least at my side (
https://github.com/whyoleg/ffi-kotlin/blob/compiler-plugin/build-logic/src/main/kotlin/buildx-multiplatform.gradle.kts#L17) I have a hierarchy (via new
targetHierarchy
API) where native targets has 2 parents:
native
and
platformInt/platformLong
(both of them then depend on
common
). Plus other targets (js, jvm, wasm) has similar with
nonNative
and
platformInt/platformLong
There were some problems with such hierarchies before 1.8.20, but now everything works fine at my side
One more addition, I have enabled new flag there:
kotlin.mpp.import.enableKgpDependencyResolution=true
, not sure if it affects something here in scope of IDE support
And thanks to this new
targetHierarchy
API, such things are super simple to do!