xpipe-mirror/gradle/gradle_scripts/javafx.gradle
2023-01-27 02:34:46 +00:00

27 lines
734 B
Groovy

import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
def currentOS = DefaultNativePlatform.currentOperatingSystem;
def platform
if (currentOS.isWindows()) {
platform = 'win'
} else if (currentOS.isLinux()) {
platform = 'linux'
} else if (currentOS.isMacOsX()) {
platform = 'mac'
def macArch = System.getProperty ("os.arch");
if (macArch == 'aarch64') {
platform = 'mac-aarch64'
}
}
configurations {
dep
}
dependencies {
dep "org.openjfx:javafx-base:19:${platform}"
dep "org.openjfx:javafx-controls:19:${platform}"
dep "org.openjfx:javafx-graphics:19:${platform}"
dep "org.openjfx:javafx-media:19:${platform}"
dep "org.openjfx:javafx-web:19:${platform}"
}