From fe6b3e788d81dcb8cb8b648c55be457d283966dd Mon Sep 17 00:00:00 2001 From: Chris Newland Date: Sun, 29 Oct 2023 19:16:35 +0000 Subject: [PATCH] remove left over gradle files --- ui/build-jdk11.gradle | 25 ----------------------- ui/build-jdk7.gradle | 46 ------------------------------------------- 2 files changed, 71 deletions(-) delete mode 100644 ui/build-jdk11.gradle delete mode 100644 ui/build-jdk7.gradle diff --git a/ui/build-jdk11.gradle b/ui/build-jdk11.gradle deleted file mode 100644 index 5b2d061b..00000000 --- a/ui/build-jdk11.gradle +++ /dev/null @@ -1,25 +0,0 @@ -apply plugin: "org.openjfx.javafxplugin" - -def javaVersion = JavaVersion.current() -def openjfxVersion = "17.0.1" - -def javafxModules = [ - 'javafx.controls', - 'javafx.swing', - 'javafx.web', -] - -javafx { - version = openjfxVersion - modules = javafxModules -} - -dependencies { - javafxModules.each { - def javafxModuleArtifact = it.replace(".", "-") - - runtimeOnly "org.openjfx:$javafxModuleArtifact:$javafx.version:linux" - runtimeOnly "org.openjfx:$javafxModuleArtifact:$javafx.version:win" - runtimeOnly "org.openjfx:$javafxModuleArtifact:$javafx.version:mac" - } -} diff --git a/ui/build-jdk7.gradle b/ui/build-jdk7.gradle deleted file mode 100644 index 28cfa654..00000000 --- a/ui/build-jdk7.gradle +++ /dev/null @@ -1,46 +0,0 @@ -def findJavafxRuntime(String path) { - if (path == null) { - return null - } - - def tree = fileTree(dir: path, include: ['**/jfxrt.jar']) - - if (!tree.files.isEmpty()) { - return tree.singleFile - } - - return null -} - -def potentialJavafxLocations = [ - System.properties['java.home'], - "$rootDir/lib" // Support dropping a JavaFX installation into lib/ -] - -def javafxHome = System.properties['javafx.home'] -if (javafxHome != null) { - potentialJavafxLocations += javafxHome -} - -def jfxrt = potentialJavafxLocations.collect(this.&findJavafxRuntime).find { it != null} - -if (jfxrt == null) { - throw new GradleException( - """ -Unable to locate a JavaFX runtime in the any of the following locations: - -${potentialJavafxLocations.collect { path -> "\t${path}" }.join("\n")} - -Please set the property "javafx.home" to a location containing a JavaFX installation, -or place the JavaFX runtime into "$rootDir/lib". - """ - ) -} - -configurations { - compileOnly -} - -dependencies { - compileOnly(files(jfxrt)) -}