mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 15:10:23 +00:00
Add ability for custom javafx dir
This commit is contained in:
parent
33e75fec2a
commit
9ba4c3115a
2 changed files with 23 additions and 7 deletions
|
@ -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) {
|
||||
|
|
|
@ -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}"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue