Matt Nelson
02/10/2022, 1:45 PM-jvm
variant of a kmp project module?
// javafx sample module build.gradle.kts
plugins {
kotlin("jvm")
application
id("org.openjfx.javafxplugin") version("0.0.11")
}
// java/javafx/application configuration...
dependencies {
implementation(project(":multiplatform-module"))
}
The above keeps importing the -android
variant of my :multiplatform-module
😢Javier
02/10/2022, 3:22 PMkotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.native.enableDependencyPropagation=false
I have seen weird behaviors with those properties if the kmp project is only jvm + androidJavier
02/10/2022, 3:23 PM./gradlew assemble
it should be working with the current setupMatt Nelson
02/10/2022, 4:11 PM-jvm
variant, but using it via the implementation(project(""))
dependency declaration, Android Studio is using the -android
variant still.
I've converted the javafx
sample module to multiplatform with a single jvm
source set and running ./gradlew :samples:javafx:run
works, so. Would still be nice to figure out what is going wrong here though.Javier
02/10/2022, 4:43 PMMatt Nelson
02/10/2022, 7:05 PMMatt Nelson
02/10/2022, 9:38 PM