During variant-aware dependency resolution, all Ko...
# gradle
c
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).
t
it is not possible atm. The value of this attribute is
KonanTarget.name
value. What is your use-case?
c
https://gitlab.com/opensavvy/automation/kotlin-js-resources TL;DR: storing the
src/<platform>/resources
as additional variants to allow downstream projects to get them