During variant-aware dependency resolution, all Kotlin Native variants expose the attribute
org.jetbrains.kotlin.platform.type = native
, and are differentiated using the attribute
org.jetbrains.kotlin.native.target = linux_x64
(for example).
I see that I can get the platform type using
org.jetbrains.kotlin.gradle.plugin.KotlinTarget#getPlatformType
, however I don't see how I can access the native target type (other than through parsing
apiElementsConfigurationName
etc).