mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-25 00:50:31 +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 = ''
|
signingPassword = ''
|
||||||
}
|
}
|
||||||
deeplApiKey = findProperty('DEEPL_API_KEY')
|
deeplApiKey = findProperty('DEEPL_API_KEY')
|
||||||
|
customJavaFxPath = null
|
||||||
}
|
}
|
||||||
|
|
||||||
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.LINUX) {
|
if (org.gradle.internal.os.OperatingSystem.current() == org.gradle.internal.os.OperatingSystem.LINUX) {
|
||||||
|
|
|
@ -18,11 +18,26 @@ configurations {
|
||||||
javafx
|
javafx
|
||||||
}
|
}
|
||||||
|
|
||||||
// Always use maven version for now
|
if (customJavaFxPath != null) {
|
||||||
dependencies {
|
repositories {
|
||||||
javafx "org.openjfx:javafx-base:${javafxVersion}:${platform}"
|
flatDir {
|
||||||
javafx "org.openjfx:javafx-controls:${javafxVersion}:${platform}"
|
dirs customJavaFxPath
|
||||||
javafx "org.openjfx:javafx-graphics:${javafxVersion}:${platform}"
|
}
|
||||||
javafx "org.openjfx:javafx-media:${javafxVersion}:${platform}"
|
}
|
||||||
javafx "org.openjfx:javafx-web:${javafxVersion}:${platform}"
|
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