openjfx / samples

JavaFX samples to run with different options and build tools
BSD 3-Clause "New" or "Revised" License
578 stars 1.52k forks source link

build fails after adding more modules to build.gradle #29

Closed oxmon-2500 closed 5 years ago

oxmon-2500 commented 5 years ago

After adding a module to build.gradle: javafx { version = "12" modules = [ 'javafx.controls' ] modules = [ 'javafx.media' ] } "./gradlew build" produces an error "package javafx.scene.control does not exist"

OS: centos 64, java 12.0.1

jperedadnr commented 5 years ago

You need to add all the required JavaFX modules to the same list:

javafx {
    version = "12"
    modules = [ 'javafx.controls', 'javafx.media' ]
}
oxmon-2500 commented 5 years ago

Thank you for your answer. Shame of me, I oversaw the 's' in modules! Everything works fine.