Skip to content

Commit

Permalink
build.gradle: Add dependencies
Browse files Browse the repository at this point in the history
The iP JAR file crashes on Linux

Let's follow nus-cs2103-AY2324S1/forum#173
  • Loading branch information
samuelim01 committed Sep 23, 2023
1 parent d5f5b01 commit 5a1e742
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -49,6 +59,6 @@ javafx {
modules = ['javafx.controls', 'javafx.fxml']
}

run{
run {
standardInput = System.in
}

0 comments on commit 5a1e742

Please sign in to comment.