Kashismails
08/05/2023, 12:25 PMKapil Yadav
08/05/2023, 12:56 PMandylamax
08/05/2023, 1:53 PMkotlin("jvm")
pluginSeikoDes
08/05/2023, 2:10 PMcompileOnly
it in shared.
val desktopMain by getting {
dependencies {
// javafx
val hostOs = System.getProperty("os.name")
val platform = when {
hostOs == "Mac OS X" -> "mac"
hostOs == "Linux" -> "linux"
hostOs.startsWith("Windows") -> "win"
else -> throw GradleException("Host OS is not supported javafx.")
}
compileOnly("org.openjfx:javafx-base:${Versions.Java.java}:$platform")
compileOnly("org.openjfx:javafx-graphics:${Versions.Java.java}:$platform")
compileOnly("org.openjfx:javafx-swing:${Versions.Java.java}:$platform")
compileOnly("org.openjfx:javafx-web:${Versions.Java.java}:$platform")
}
}
Kashismails
08/05/2023, 2:16 PMMichael Paus
08/05/2023, 2:45 PMandylamax
08/05/2023, 4:06 PMplugins
block
plugins {
// some javafx plugin
}
That is the section that doesn't work with the android pluginKapil Yadav
08/05/2023, 4:42 PMKashismails
08/05/2023, 4:43 PMKapil Yadav
08/05/2023, 4:47 PMKapil Yadav
08/05/2023, 5:18 PM