diff --git a/build.gradle b/build.gradle index c5aa3a2d0..629463e1a 100644 --- a/build.gradle +++ b/build.gradle @@ -138,6 +138,7 @@ project.ext { signingPassword = '' } deeplApiKey = findProperty('DEEPL_API_KEY') + customJavaFxPath = null } if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.LINUX) { diff --git a/gradle/gradle_scripts/javafx.gradle b/gradle/gradle_scripts/javafx.gradle index 47bc81aee..b25a9f935 100644 --- a/gradle/gradle_scripts/javafx.gradle +++ b/gradle/gradle_scripts/javafx.gradle @@ -18,11 +18,26 @@ 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}" +if (customJavaFxPath != null) { + repositories { + flatDir { + dirs customJavaFxPath + } + } + dependencies { + javafx name: "org.openjfx:javafx-base" + javafx name: "org.openjfx:javafx-controls" + javafx name: "org.openjfx:javafx-graphics" + javafx name: "org.openjfx:javafx-media" + javafx name: "org.openjfx:javafx-web" + } +} else { + // 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}" + } }