Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to build with JDK 11 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.DS_Store
build/
private/
gradle/
.nb-gradle/
.gradle/
.nb-gradle*
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ When Searching

## Download FontAwesomeFX 8.15
[from Bintray](https://bintray.com/jerady/maven/FontAwesomeFX/8.15/view)

## Requirements

JDK 11
43 changes: 33 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
buildscript {
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'org.openjfx:javafx-plugin:0.0.8'
}
}

apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'org.openjfx.javafxplugin'

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

repositories {
jcenter()
Expand All @@ -20,26 +39,30 @@ task fatJar(type: Jar) {
version '1.3.0'

mainClassName = 'de.jensd.fx.glyphs.browser.GlyphsBrowserApp'
sourceCompatibility = '1.8'
sourceCompatibility = '11'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'

if (!hasProperty('mainClass')) {
ext.mainClass = 'de.jensd.fx.glyphs.browser.GlyphsBrowserApp'
}

run {
jvmArgs "--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED", "--add-opens=javafx.base/com.sun.javafx.runtime=ALL-UNNAMED"
}

task execute(type:JavaExec) {
main = mainClass
classpath = sourceSets.main.runtimeClasspath
}

dependencies {
compile 'de.jensd:fontawesomefx-emojione:2.2.7-2'
compile 'de.jensd:fontawesomefx-fontawesome:4.7.0-5'
compile 'de.jensd:fontawesomefx-icons525:3.0.0-4'
compile 'de.jensd:fontawesomefx-materialdesignfont:1.7.22-4'
compile 'de.jensd:fontawesomefx-materialicons:2.2.0-5'
compile 'de.jensd:fontawesomefx-octicons:4.3.0-5'
compile 'de.jensd:fontawesomefx-weathericons:2.0.10-5'
compile 'de.jensd:fontawesomefx-controls:8.15'
compile 'org.controlsfx:controlsfx:8.40.11'
compile 'de.jensd:fontawesomefx-emojione:3.1.1-9'
compile 'de.jensd:fontawesomefx-fontawesome:4.7.0-9'
compile 'de.jensd:fontawesomefx-icons525:4.2.0-9'
compile 'de.jensd:fontawesomefx-materialdesignfont:2.0.26-9'
compile 'de.jensd:fontawesomefx-materialicons:2.2.0-9'
compile 'de.jensd:fontawesomefx-octicons:4.3.0-9'
compile 'de.jensd:fontawesomefx-weathericons:2.0.10-9'
compile 'de.jensd:fontawesomefx-controls:9.0.0'
compile 'org.controlsfx:controlsfx:9.0.0'
}
7 changes: 7 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists