Add ability for custom javafx dir

This commit is contained in:
crschnick 2024-05-07 04:35:18 +00:00
parent 33e75fec2a
commit 9ba4c3115a
2 changed files with 23 additions and 7 deletions

View file

@ -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) {

View file

@ -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}"
}
}