xpipe-mirror/gradle/gradle_scripts/javafx.gradle

29 lines
825 B
Groovy
Raw Permalink Normal View History

2022-12-18 17:04:51 +00:00
import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
def currentOS = DefaultNativePlatform.currentOperatingSystem;
def platform = null
2022-12-18 17:04:51 +00:00
if (currentOS.isWindows()) {
platform = 'win'
} else if (currentOS.isLinux()) {
platform = 'linux'
} else if (currentOS.isMacOsX()) {
platform = 'mac'
}
if (System.getProperty ("os.arch") == 'aarch64') {
platform += '-aarch64'
2022-12-18 17:04:51 +00:00
}
2023-10-25 14:20:49 +00:00
configurations {
javafx
2023-10-25 14:20:49 +00:00
}
// Always use maven version for now
2022-12-18 17:04:51 +00:00
dependencies {
javafx "org.openjfx:javafx-base:${javafxVersion}:${platform}"
javafx "org.openjfx:javafx-controls:${javafxVersion}:${platform}"
javafx "org.openjfx:javafx-graphics:${javafxVersion}:${platform}"
javafx "org.openjfx:javafx-media:${javafxVersion}:${platform}"
javafx "org.openjfx:javafx-web:${javafxVersion}:${platform}"
2022-12-18 17:04:51 +00:00
}