This commit is contained in:
crschnick
2026-01-16 17:04:16 +00:00
parent a9ad96b3a4
commit 4b3df920ed
3 changed files with 13 additions and 5 deletions
+2 -1
View File
@@ -300,7 +300,8 @@ project.ext {
useBundledJavaFx = fullVersion
bundledJdkJavaFx = ModuleFinder.ofSystem().find("javafx.base").isPresent()
// Define a custom JavaFX SDK location
// customJavaFxPath = null
// customJavaFxLibsPath = file("C:\\Projects\\jfx\\build\\sdk/lib")
// customJavaFxJmodsPath = file("C:\\Projects\\jfx\\build\\jmods")
// Other
deeplApiKey = findProperty('DEEPL_API_KEY') != null ? findProperty('DEEPL_API_KEY') : ""
+4 -1
View File
@@ -47,9 +47,12 @@ jlink {
options.addAll('--strip-native-debug-symbols', 'exclude-debuginfo-files')
}
if (useBundledJavaFx && !bundledJdkJavaFx) {
if (hasProperty("customJavaFxJmodsPath")) {
addExtraModulePath(customJavaFxJmodsPath.toString())
} else if (useBundledJavaFx && !bundledJdkJavaFx) {
addExtraModulePath(layout.projectDirectory.dir("javafx/${platformName}/${arch}").toString())
}
if (useBundledJna) {
addExtraModulePath(layout.projectDirectory.dir("jna/${platformName}/${arch}").toString())
}
+7 -3
View File
@@ -18,14 +18,18 @@ configurations {
javafx
}
if (hasProperty("customJavaFxPath")) {
if (hasProperty("customJavaFxLibsPath")) {
repositories {
flatDir {
dirs customJavaFxPath
dirs customJavaFxLibsPath
}
}
dependencies {
javafx fileTree(dir: customJavaFxPath, include: '*.jar')
javafx files("$customJavaFxLibsPath/javafx.base.jar")
javafx files("$customJavaFxLibsPath/javafx.controls.jar")
javafx files("$customJavaFxLibsPath/javafx.graphics.jar")
javafx files("$customJavaFxLibsPath/javafx.media.jar")
javafx files("$customJavaFxLibsPath/javafx.web.jar")
}
} else if (!bundledJdkJavaFx) {
// Always use maven version for development