From 2bd98fad5a4dfbaeded26d6148b96f3ed45ec3a9 Mon Sep 17 00:00:00 2001 From: jphavoc Date: Fri, 20 Oct 2017 16:06:20 +0200 Subject: [PATCH] Fixed javafx dependencies in app/build.gradle #380 --- app/build.gradle | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 7fd289082..460abff14 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,6 +1,15 @@ apply plugin: 'java' apply plugin: 'application' -apply from: 'javafx.plugin' +apply plugin: 'javafx-gradle-plugin' + +buildscript { + dependencies { + classpath group: 'de.dynamicfiles.projects.gradle.plugins', name: 'javafx-gradle-plugin', version: '8.8.2' + } + repositories { + jcenter() + } +} mainClassName = 'net.demilich.metastone.MetaStone' @@ -22,9 +31,12 @@ dependencies { testCompile group: 'org.testng', name: 'testng', version: '6.+' } -javafx { - appName rootProject.name - mainClass = mainClassName +jfx { + // minimal requirement for jfxJar-task + mainClass = 'JavaFXDemo' + + // minimal requirement for jfxNative-task + vendor = '' } test {