So in my build.gradle file I have this dependencies added.
dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' // https://mvnrepository.com/artifact/org.hibernate/hibernate-core compile group: 'org.hibernate', name: 'hibernate-core', version: '5.3.6.Final' // https://mvnrepository.com/artifact/mysql/mysql-connector-java compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.12' // https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api compile group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.0' // https://mvnrepository.com/artifact/javax.xml/jaxb-impl compile group: 'javax.xml', name: 'jaxb-impl', version: '2.1' // https://mvnrepository.com/artifact/org.openjfx/javafx-controls compile group: 'org.openjfx', name: 'javafx-controls', version: '11' } The class of other dependencies were added except for javafx classes. It wasn't downloaded all I get is just the meta-inf directory. I am using JDK 11, so I really need openjfx repo to use JavaFX. because in JDK 11, javafx is decoupled.
Update: I am using Intellij Idea