Skip to content

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
mounilsankar committed Sep 21, 2023
1 parent f9d2fc7 commit 9aa7fb3
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'checkstyle'
}

Expand All @@ -11,23 +10,26 @@ repositories {
}

dependencies {
String javaFxVersion = '17.0.7'

implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-base', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-controls', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-fxml', version: javaFxVersion, classifier: 'linux'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'win'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'mac'
implementation group: 'org.openjfx', name: 'javafx-graphics', version: javaFxVersion, classifier: 'linux'

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'

// JavaFX 17.0.7 dependencies for macOS on ARM64
implementation 'org.openjfx:javafx-base:17.0.7:mac-aarch64'
implementation 'org.openjfx:javafx-controls:17.0.7:mac-aarch64'
implementation 'org.openjfx:javafx-fxml:17.0.7:mac-aarch64'
implementation 'org.openjfx:javafx-graphics:17.0.7:mac-aarch64'

// JavaFX 17.0.7 dependencies for Linux
implementation 'org.openjfx:javafx-base:17.0.7:linux'
implementation 'org.openjfx:javafx-controls:17.0.7:linux'
implementation 'org.openjfx:javafx-fxml:17.0.7:linux'
implementation 'org.openjfx:javafx-graphics:17.0.7:linux'

// JavaFX 17.0.7 dependencies for Windows
implementation 'org.openjfx:javafx-base:17.0.7:win'
implementation 'org.openjfx:javafx-controls:17.0.7:win'
implementation 'org.openjfx:javafx-fxml:17.0.7:win'
implementation 'org.openjfx:javafx-graphics:17.0.7:win'
}

test {
Expand Down Expand Up @@ -62,8 +64,7 @@ checkstyle {
toolVersion = '10.2'
}

javafx {
version = "17.0.7"
modules = [ 'javafx.controls' , 'javafx.fxml']

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

0 comments on commit 9aa7fb3

Please sign in to comment.