diff --git a/build.gradle b/build.gradle index 58f38a09b8..bacf656410 100644 --- a/build.gradle +++ b/build.gradle @@ -14,6 +14,16 @@ repositories { dependencies { testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.10.0' testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.10.0' + + // Used for loops to clean up the imports + def platforms = ["win", "linux", "mac"] + def javafxDependency = ["javafx-graphics", "javafx-controls", "javafx-fxml"] + + for (plt in platforms) { + for (dep in javafxDependency) { + runtimeOnly "org.openjfx:$dep:$javafx.version:$plt" + } + } } test { @@ -49,6 +59,6 @@ javafx { modules = ['javafx.controls', 'javafx.fxml'] } -run{ +run { standardInput = System.in }