plugins { id 'application' id 'org.openjfx.javafxplugin' version '0.0.9' } group 'fr.insa.clavardator' version '0.0.1' repositories { mavenCentral() } javafx { version = "11.0.2" modules = ['javafx.controls', 'javafx.fxml'] } dependencies { runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:win" runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:linux" runtimeOnly "org.openjfx:javafx-graphics:$javafx.version:mac" implementation 'org.xerial:sqlite-jdbc:3.32.3' testImplementation("org.junit.jupiter:junit-jupiter-api:5.7.0") testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.7.0") compile 'com.jfoenix:jfoenix:9.0.10' } test { useJUnitPlatform() } jar { manifest { attributes 'Main-Class': 'fr.insa.clavardator.Launcher' } from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } } run { jvmArgs = [ "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED", "--add-exports=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED", "--add-exports=javafx.base/com.sun.javafx.binding=ALL-UNNAMED", "--add-exports=javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED", "--add-exports=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED" ] } mainClassName = 'fr.insa.clavardator.MainApp'