Add dependecies to runtime image with Gradle
问题 I don't know how to add dependency. My module needs Log4j. I added requirement to module info. I added also to gradle dependencies. I can run project, but I can't create custom runtime image. plugins { id 'java' id 'application' id 'org.openjfx.javafxplugin' version '0.0.5' } group 'eu.sample' version '2.0' repositories { mavenCentral() } javafx { modules = [ 'javafx.controls', 'javafx.fxml' ] } mainClassName = "$moduleName/eu.sample.app.Main" def lin_java_home = hasProperty('org.gradle.java