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:20.0.1:${platform}"
    dep "org.openjfx:javafx-controls:20.0.1:${platform}"
    dep "org.openjfx:javafx-graphics:20.0.1:${platform}"
    dep "org.openjfx:javafx-media:20.0.1:${platform}"
    dep "org.openjfx:javafx-web:20.0.1:${platform}"
}
