xpipe-mirror/gradle/gradle_scripts/javafx.gradle
crschnick 3e7fbe89ac Merge branch prefs into master
The changes have been squashed as the commit history and messages were not very carefully crafted. There isn't that much value in preserving random commit messages.

Also due to diverging branches, rebasing or merging it was difficult.
2024-02-28 07:36:31 +00:00

28 lines
825 B
Groovy

import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform
def currentOS = DefaultNativePlatform.currentOperatingSystem;
def platform = null
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'
}
configurations {
javafx
}
// Always use maven version for now
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}"
}