Skip to content

Commit

Permalink
Updated to JavaFX version 13 and added JFX_VERSION variable to specif…
Browse files Browse the repository at this point in the history
…ically configure version
  • Loading branch information
SergeMerzliakov committed Oct 15, 2019
1 parent d77f885 commit b35f6f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -24,6 +25,7 @@ apply plugin: 'application'
mainClassName = 'org.epistatic.app1.Main'

javafx {
version = JFX_VERSION
modules = [ 'javafx.controls', 'javafx.fxml' ]
}

Expand Down

0 comments on commit b35f6f1

Please sign in to comment.