Skip to content

Commit

Permalink
Fixed javafx dependencies in app/build.gradle demilich1#380
Browse files Browse the repository at this point in the history
  • Loading branch information
jphavoc committed Oct 20, 2017
1 parent 8cbf123 commit 2bd98fa
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -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 {
Expand Down

1 comment on commit 2bd98fa

@zc813
Copy link

@zc813 zc813 commented on 2bd98fa Dec 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works! Thanks~~~

Please sign in to comment.