diff --git a/README.md b/README.md index 99ab833..1574cf1 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ All the code samples are not meant to be production quality and I use the follow You will need to install: * Java 11 or 12 SDK (Oracle or Open JDK) -* [OpenJFX 12](https://gluonhq.com/products/javafx/) +* [OpenJFX 11,12 or 13](https://gluonhq.com/products/javafx/) If you want to edit FXML and keep your sanity: @@ -49,15 +49,14 @@ Gradle is bundled as part of the project - no need to install anything. *The projects does NOT need Gradle to be installed as this is included inside the project via a gradle wrapper* -##### Set JFX_INSTALL variable in build.gradle file +##### Set JFX_VERSION and JFX_INSTALL variable Values in build.gradle file Find the section in the build.gradle: // BEGIN YOUR SETUP - - def JFX_INSTALL = ** YOUR JFX_INSTALL DIR HERE ** - + def JFX_VERSION = "13" // or "12" or "11" + def JFX_INSTALL = ** YOUR JFX_INSTALL DIR HERE ** // END YOUR SETUP and update the JFX_INSTALL value with your OpenJFX install directory. diff --git a/build.gradle b/build.gradle index 6cfee30..b531bde 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,8 @@ plugins { def KOTLIN_VERSION = "1.3.50" def JAVA_HOME = System.properties['java.home'] -// BEGIN YOUR SETUP // e.g. /libs/javafx/13.0 +// BEGIN YOUR SETUP - set location of JFX 13 (or older version) +def JFX_VERSION = "13" def JFX_INSTALL = '/Library/Java/javafx/13.0' // END YOUR SETUP @@ -24,6 +25,7 @@ apply plugin: 'application' mainClassName = 'org.epistatic.app1.Main' javafx { + version = JFX_VERSION modules = [ 'javafx.controls', 'javafx.fxml' ] }